Changes

How to Set Up a MediaWiki 1.23 Server on CentOS 6

903 bytes added, 15:52, 20 July 2014
no edit summary
####hit ''y'' and enter to remove the test database
####hit ''y'' and enter to reload the privilege table
####run ''mysql -u root -p'' to log into MySQL monitor
#####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 ''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-mysqlphp-gd php-xml'' to install required php, php-mysql, and components dependencies
###run ''sudo vi /var/www/html/info.php'' to create and edit a new webpage & populate the file with the following:
###*<?php
###If you don't already have it, install wget via ''sudo yum install wget''
###Visit the [http://www.mediawiki.org/wiki/Download MediaWiki Download] page to find the latest version. Substitute the path to the latest version in the next command if necessary
###run ''cd ~'' to navigate to your home directory
###run ''wget https://releases.wikimedia.org/mediawiki/1.23/mediawiki-1.23.1.tar.gz'' to download the latest version of MediaWiki
###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
 
==References==
*https://www.digitalocean.com/community/tutorials/how-to-install-mediawiki-on-centos-6-4
*https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-centos-6
*https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Red_Hat_Linux