Mediawiki/Installing/CentOS7
Installing | Multiple Instances | Ubuntu Installation | CentOS7 Installation
Contents |
Overview
Installing Mediawiki 1.33 on CentOS7 as of 8/21/2019.
Requirements
- Mediawiki 1.33
- Apache httpd webserver
- PHP 7.0.13
- MariaDB
You will also want to make sure your Centos instance is accessible by hostname, either publishing a DNS A record or updating your local hosts file. This needs to be done as Apache HTTPD will parse the http request and look at the servername submitted by the browser. if you use the IP address, the server name in the http request will be the IP, not the hostname. Combine that with the HTTPD conf file with a servername entry as the Hostname, you can see the issue. NOTE: Yes, you can implement the ServerName in the httpd config as the IP address, however that is not what normal production servers do, so i generally avoid these practices.
Operating System Basics
Skip this if needed.
Create user
Create a new user, give them a home directory, and add them to the wheel group which by default in centos gives sudo access. After, change the password.
~$ useradd wikiuser -d /home/wikiuser -G wheel ~$ passwd wikiuser
Update system
~$ sudo yum upgrade -y
Install basic packages
~$ sudo yum install -y telnet net-tools vim tcpdump bind-utils redhat-lsb-core wget nfs-utils policycoreutils-python setroubleshoot setools
For an explanation of each package, look at: Common Packages