Changes

How to Set Up a MediaWiki 1.23 Server on CentOS 6

812 bytes added, 01:07, 22 July 2014
no edit summary
#####run ''CREATE USER <nowiki>'</nowiki>wiki<nowiki>'</nowiki>@<nowiki>'</nowiki>localhost<nowiki>'</nowiki> IDENTIFIED BY <nowiki>'</nowiki><Your_Secure_Password><nowiki>'</nowiki>;'' to create the wiki user
#####run ''CREATE DATABASE wikidb;'' to create the wiki database
#####runQQQQQQQQQQQQQQQQQ run ''GRANT ALL PRIVILEGES ON wikidb.* TO <nowiki>'</nowiki>wiki<nowiki>'</nowiki>@<nowiki>'</nowiki>localhost<nowiki>'</nowiki> IDENTIFIED BY <nowiki>'</nowiki><Your_Secure_Password><nowiki>'</nowiki> WITH GRANT OPTION;'' to give the ''wiki'' user correct access to ''wikidb''
##Install [https://php.net/ PHP]
###run ''sudo yum install php php-mysql php-gd php-xml'' to install required php components dependencies
###run ''tar xvzf mediawiki-1.23.1.tar.gz'' to unpack the downloaded file
###run ''sudo mv ~/mediawiki-1.23.1 /etc/mediawiki'' to move the mediawiki directory to a non-version specific general location
###run ''sudo ln -s /etc/mediawiki/ /var/www/'' to create a symbolic link from Apache's document root to the MediaWiki directory###run ''sudo chown -h apache:apache /var/www/mediawiki'' to ensure that the symbolic link is owned by the apache user###run ''sudo chown -R apache:apache /var/www/mediawiki/'' to make the apache user the owner of all of the mediawiki files so that can properly serve the documents###Backup and modify ''/etc/httpd/conf/httpd.conf''####change ''DocumentRoot "/var/www/html"'' to ''DocumentRoot "/var/www/mediawiki"''####change ''<Directory "/var/www/html">'' to ''<Directory "/var/www/mediawiki">''####change ''DirectoryIndex index.html index.html.var'' to ''DirectoryIndex index.html index.html.var index.php''###run ''sudo service httpd restart'' to restart apache using the new configuration
==References==