Installing MediaWiki on CentOS 6
-
Begin with a minimalist install of CentOS 6. You will need to get your networking configured before continuing. Make sure that you can reach your YUM repositories.
Install the RHEL 6 EPEL:
rpm -ivh http://mirrors.xmission.com/fedora/epel/6/i386/epel-release-6-7.noarch.rpm
Now you can install the basic packages that will be needed for MediaWiki.
yum -y install httpd php php-mysql php-gd mysql-server mysql yum -y install system-config-firewall-tui service mysqld start; mysql_secure_installation chkconfig httpd on; chkconfig mysqld on yum install mediawiki119
MediaWiki will install to /var/www/mediawiki119 which is not the most convenient location for the files but there are several options there. You will need to edit:
DocumentRoot "/var/www" <Directory "/var/www"> DirectoryIndex index.html index.html.var index.php
Once you have Apache configured as you would like it all you need to do is to restart Apache to pick up the new changes that you have made.
service httpd restart
You will also need to adjust your firewall to allow web connections. I find it easiest to handle this using the System Config Text UI.
system-config-firewall-tui
Once everything is complete you will have a working MediaWiki installation. However, there is an error in the MediaWiki 1.19 RPM and there are missing links in the /var/www/mediawiki119 directory that leave you with a basically working, but ugly un-themable wiki system and some significant confusion. So to fix this all we need to do is to manually create some missing links. In order to do so, simply run these commands and you will be all set.
Originally posted on my Linux blog in 2012 here: http://web.archive.org/web/20140822224153/http://www.scottalanmiller.com/linux/2012/11/20/installing-mediawiki-on-centos-6/
-
I need to get this updated to CentOS 7.
-
@scottalanmiller Would be great. Looking into creating a wiki for documentation purposes.
-
Do they have a tui for firewall-cmd yet?
-
@travisdh1 said in Installing MediaWiki on CentOS 6:
Do they have a tui for firewall-cmd yet?
Not that I have seen.
-
@scottalanmiller said in Installing MediaWiki on CentOS 6:
@travisdh1 said in Installing MediaWiki on CentOS 6:
Do they have a tui for firewall-cmd yet?
Not that I have seen.
I want to down vote RedHat.