Build a mediawiki Server

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.