Skip to content

Instantly share code, notes, and snippets.

@ionixjunior
Last active September 4, 2015 01:22
Show Gist options
  • Save ionixjunior/e8d65ec335bb323a738d to your computer and use it in GitHub Desktop.
Save ionixjunior/e8d65ec335bb323a738d to your computer and use it in GitHub Desktop.
MediaWiki installation for CentOS
#
# SCRIPT NOT FINISHED
#
# Dependencies
yum -y install wget
yum -y install php
yum -y install php-mysql
yum -y install php-gd
yum -y install php-intl
yum -y install httpd
yum -y install mysql
yum -y install mariadb-server
yum -y install mariadb
yum -y install git
yum -y php-pear
yum -y php-devel
yum -y httpd-devel
yum -y pcre-devel
yum -y gcc
yum -y make
pecl install apc
systemctl start mariadb
mysql_secure_installation
systemctl enable mariadb.service
# MediaWiki
wget http://releases.wikimedia.org/mediawiki/1.23/mediawiki-1.23.6.tar.gz
#curl -O https://releases.wikimedia.org/mediawiki/1.25/mediawiki-1.25.2.tar.gz
tar -zxf mediawiki-1.23.6.tar.gz
mv mediawiki-1.23.6 wiki
mv wiki /var/www/html
echo 'LC_CTYPE="en_US.UTF-8"' >> /etc/sysconfig/i18n
source /etc/sysconfig/i18n
system-config-firewall-tui
getenforce
restorecon -FR /var/www/html/wiki
service httpd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment