Greetings and salutations,
I hope this thread will be helpful to those who follow in my foot steps as well as getting any advice based on what I have done / documented.
To discuss this thread, please participate here: Ubuntu Forums
High-level overview
This thread will cover install and configuration of a MediaWiki web site on a dedicated Ubuntu server and will utilize a separate dedicated database server. The server will be installed inside a virtual machine vSphere running on ESXi servers. Although there are some VMware-specific steps, they are very few and the majority of this documentation will work for other environments such as VirtualBox, Proxmox or even directly installed onto a physical machine. Please excuse any ignorance on my part and if you have any advice on doing things better, please let me know. I love feedback and learning better ways of doing things!
After Ubuntu is installed and configured, Apache web server will be installed and configured. Next will be the installation and configuration of MediaWiki which will utilize an existing remote database server (MariaDB/MySQL). Some extensions will then be installed and tested.
The last step will cover some custom scripts to help automate tasks such as backing up, automatically growing the file system when free space is low, etc.
Tools utilized in this process
- Ubuntu Server 22.04 LTS, 64-bit
- Apache 2.4.52
- PHP 8.1.2
- MariaDB 10.5.5 (or MySQL)
- MediaWiki 1.38.4
- Portable PuTTY 0.77
- VMware vSphere 6.0.0
The list below are sources of information that helped me configure this system as well as some places that might be helpful to me later on as this process continues.
- Ubuntu Documentation
- Ubuntu MediaWiki package
- MediaWiki downloads
- MediaWiki Extension Distributor
- MediaWiki Upload Security
This documentation will need to make use of some very-specific information that will most-likely be different for each person / location. And as such, I will note some of these in this section. They will be highlighted in red throughout the document as a reminder that you should plug-in your own value rather than actually using my "place-holder" value.
Under no circumstance should you use the actual values I list below. They are place-holders for the real thing. This is just a checklist template you need to have answered before you start the install process.
Wherever you see RED in this document, you need to substitute it for what your company uses. Use the list below as a template you need to have answered before you continue.
- Ubuntu Server name: srv-wiki
- Internet domain: mydomain.com
- Ubuntu Server IP address: 192.168.107.30
- Ubuntu Admin ID: administrator
- Ubuntu Admin Password: myadminpass
- Email Server (remote): 192.168.107.25
- Database Server (remote): 192.168.107.20
- Database root Password: mysqlrootpass
- Database wiki user: mediawikiuser
- Database wiki Password: mediawikiuserpass
- Database wiki admin: mediawikiadmin
- Database wiki admin Password: mediawikiadminpass
MySQL/MariaDB server - Setup a separate and dedicated database server. This tutorial assumes the server was configured according to this tutorial: How to install and configure MariaDB
I also assume the reader knows how to use the VI editor. If not, you will need to beef up your skill set or use a different editor in place of it.