System Information:
# Cat/etc/RedHat-release
Centos release 6.4 (final)
Mediawiki Official Website:
Http://www.mediawiki.org/wiki/MediaWiki
1. install required software
Yum install httpd PHP-mysql PHP-Gd mysql-server PHP-XML MySQL
Service mysqld start
Mysql_secure_installation
2. Database authorization
Mysql-u root-P
Create Database wikidatabase; grant all privileges on wikidatabase. * To 'wiki '@ 'localhost' identified by 'wiki'; flush privileges;
Mysql-u wiki-P
Show databases;
3. Auto Start
Chkconfig httpd on
Chkconfig mysqld on
4. Copy the Installation File
CD/var/www/html
Tar-zxf/soft/mediawiki-1.23.1.tar.gz
Ln-s mediawiki-1.23.1/mediawiki
Chown-r Apache: Apache/var/www/mediawiki *
5. Add a VM
Vim/etc/httpd/CONF/httpd. conf
--------------------------------------
Directoryindex index.html. var index. php
--------------------------------------
Vim/etc/httpd/CONF. d/virtual. conf
--------------------------------------
<Virtualhost *: 80> serveradmin [email protected] DocumentRoot "/var/www/html/mediawiki" servername wiki.ncg.com errorlog "logs/wiki-error_log" customlog "logs/wiki-access_log" common </virtualhost>
--------------------------------------
6. Add a Host Name
Vim/etc/hosts
--------------------------------------
192.168.16.249 wiki.ncg.com
--------------------------------------
7. Restart and access
Service httpd restart
Http://wiki.ncg.com
8. Install the configuration in the browser
Refer:
Http://www.mediawiki.org/wiki/Manual:Installation_guide/zh-hanshttp://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Red_Hat_Linuxhttp://wiki.linuxdeepin.com/index.php? Title = mediawiki % E5 % 85% a5 % E9 % 97% A8
This article from the "Do not do evil" blog, please be sure to keep this source http://vflong.blog.51cto.com/8622347/1531223