MediaWiki website Erection

Source: Internet
Author: User
Tags mediawiki

MediaWiki site 1 Installation system environment

# yum Install httpd php php-mysql php-gd mysql-server php-xml MySQL

2 MySQL Database User Configuration

Start and configure
# service Mysqld Start
# mysql_secure_installation


Log in to MySQL database
# mysql-u Root-p
CREATE USER ' wiki ' @ ' localhost ' identified by ' thispasswordshouldbechanged '; New MySQL User
Grant all privileges on * * to ' wiki ' @ ' localhost ' identified by ' thispasswordshouldbechanged ' with GRANT OPTION; and Grant database permissions
FLUSH privileges; Refresh
Exit Quit MySQL

3 new MySQL database and test

# mysql-u wiki-p login MySQL with the database user just built
CREATE database name; New Database (Example:create wikidatabase; )
SHOW DATABASES; Check if successful
GRANT all privileges on wikidatabase.* to ' wikiuser ' @ ' localhost ' identified by ' Pippo123456? '  With GRANT OPTION; Permissions granted to newly created database
FLUSH privileges; Refresh
SHOW GRANTS for ' wiki ' @ ' localhost '; See what permissions users have
Exit MySQL

4 Plus for boot start

Chkconfig httpd on
Chkconfig mysqld on

5 Download MediaWiki package

# wget http://releases.wikimedia.org/mediawiki/1.25/mediawiki-1.25.1.tar.gz

6 unzip and make a soft link

# cd/var/www
# tar-zxf/root/mediawiki-1.25.1.tar.gz
# ln-s Mediawiki-1.25.1/mediawiki

7 Apache webserver Configuration

# vi/etc/httpd/conf/httpd.conf Modify the following
DocumentRoot "/var/www"
<directory "/var/www" >
DirectoryIndex index.html Index.html.var index.php

Change permissions
# Chown-r apache:apache/var/www/mediawiki-1.25.1
# Chown-r apache:apache/var/www/mediawiki-1.25.1

8 Restart Apache Service

# Service httpd Restart

9 Open Browser to configure MediaWiki web site

Open Http://yourMEDIAWIKIcomputerIP/mediawiki Step-by-step setup

Finally generate a localsettings.php document, copy this file to the site root directory/var/www/mediawiki.

Done


Bo Master personal website www.davis-wiki.com

This article is from the "Forever C" blog, please be sure to keep this source http://4011746.blog.51cto.com/4001746/1676767

MediaWiki website Erection

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.