How to install MediaWiki 1.38.1 on Ubuntu Server 22.04 LTS

Post Reply
User avatar
LHammonds
Site Admin
Site Admin
Posts: 1067
Joined: Fri Jul 31, 2009 6:27 pm
Are you a filthy spam bot?: No
Location: Behind You
Contact:

How to install MediaWiki 1.38.1 on Ubuntu Server 22.04 LTS

Post: # 1037Post LHammonds »

=-=-=-=-=-=-=-=-=-= WORK-IN-PROGRESS =-=-=-=-=-=-=-=-=-=

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
Helpful links

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.
Assumptions

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
Web Server - Setup an Ubuntu server for use as the MediaWiki server. This tutorial assumes the server was configured according to this tutorial: How to install Apache web server

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.
User avatar
LHammonds
Site Admin
Site Admin
Posts: 1067
Joined: Fri Jul 31, 2009 6:27 pm
Are you a filthy spam bot?: No
Location: Behind You
Contact:

WAITING ON MARIADB REPO FOR 22.04

Post: # 1038Post LHammonds »

WAITING ON MARIADB REPO FOR 22.04
Post Reply