Installation and configuration of MediaWiki

Source: Internet
Author: User
Tags mediawiki vps server

Configuration of Apache:

1. Turn on the PHP module

To see if the mods-enabled/php5.load exists and does not exist, copy one to mods-enabled from the mods-avaliable.

Settings for 2.apache2.conf:

<directory/>        Options followsymlinks        allowoverride None        #Require all denied        Order deny, Allow        to </Directory>

Settings for 3.sites-available/000-default.conf:

/var/www/html

From the above you can see that the root directory is:/var/www/html, then you can copy the source code of mediaphp to this directory and rename it to MediaWiki.

4. Resolve 403 Errors

If HTTP access localhost:80/mediawiki/still has a 403 error, it is most likely because the Apache2 startup execution user does not have permission to run the PHP source file under that directory.

Chmod-r 555 mediawiki/

5. Configuration of MediaWiki:

Open your server to set up the site address, will automatically jump to the first page, and then follow the prompts step by step setting the database, etc., and finally generate a configuration file called: "LocalSettings.php", put the file into the MediaWiki root directory, or Mw-config (different version, it seems that the address is different), and then set the access rights of the file.

See the bandwagon on the VPS server to buy a real-world profile.

Reference Links:

1. Apache2 403 Error: http://jingyan.baidu.com/article/9158e0006581d1a2541228b5.html

Installation and configuration of MediaWiki

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.