Install mediawiki and wordpress in pure green

Source: Internet
Author: User
Tags install wordpress mediawiki

All the work in this article is based on bigtall's previous article "Install bugzilla in pure green". Please read this article and continue with this article.

Because of the company's knowledge management needs, bigtall needs to establish wiki and blog. After selection, I chose the old mediawiki and wordpress with a strong header. They are all open source, and there are a lot of users, and problems are easy to solve.

Before the installation, we still need to prepare for the installation. download the following content:

  • Mediawiki
  • Wordpress 2.3
  • Wordpress Chinese package

Note: There are many Chinese packages available inHereAs you can see, please select a suitable download. In addition, our "Great Firewall" makes the mediawiki and wordpress main sites inaccessible. If you cannot download wordpress, download it directly here.Chinese Version.

After the download is complete, follow these steps to install mediawiki:

  1. Decompress mediawiki to a specific directory. Here, bigtall is decompressed to d: \ tools \ net \ mediawiki (this document uses this directory as the standard. Please adjust it as needed during installation ).
  2. Create a file named apache-mediawiki.conf in the conf/extra directory of apache and enter the following content:

    Alias/wiki "d:/tools/net/mediawiki"
    <Directory "d:/tools/net/mediawiki">
    Options ExecCGI
    AllowOverride None
    Order allow, deny
    Allow from all
    </Directory>

  3. Modify httpd. conf In the conf directory of apache and add the following line to the end of the file:

    Include conf/extra/apache-mediawiki.conf

  4. Use phpMyAdmin or manually create a mysql database. Here I create a wikidb database and a new user wikiuser, and set this user to have all permissions for wikidb.
  5. Access http: // localhost/wiki in the browser, automatically go to The mediawiki installation page, enter the wiki name, database name, logon name, and password, and then install. After that, move LocalSettings. php In the config directory of mediawiki to the upper layer. bigtall moves it to d: \ tools \ net \ mediawiki.
  6. Then modify d: \ tools \ net \ mediawiki \ LocalSettings. php at the end of the file?> Insert the following content before the row:

    # You can also set that the user must log in before posting or publishing a table.
    $ WgWhitelistEdit = "yes ";

    # You can also use the self-built Wiki Logo. Original Logo in/var/www/wiki/skins/common/images/wiki.png
    $ WgLogo = "{$ wgScriptPath}/skins/common/images/an image file name copied by myself ";

  7. Test whether mediawiki works properly.

Next, we will start to install wordpress. follow these steps:

  1. Decompress wordpress to a specific directory. Here, bigtall is decompressed to d: \ tools \ net \ wordpress (this document uses this directory as the standard. Please adjust it as needed during installation ).
  2. Create a file named apache-wordpress.conf in the conf/extra directory of apache and enter the following content:

    Alias/blog "d:/tools/net/wordpress"
    <Directory "d:/tools/net/wordpress">
    Options ExecCGI
    AllowOverride None
    Order allow, deny
    Allow from all
    </Directory>

  3. Modify httpd. conf In the conf directory of apache and add the following line to the end of the file:

    Include conf/extra/apache-wordpress.conf

  4. Use phpMyAdmin or manually create a mysql database. Here I create a blogdb database and a new user bloguser, and set this user to have all the permissions of blogdb.
  5. Modify the wp-config.php file under the wordpress directory and set database-related parameters correctly, DB_NAME, DB_USER, DB_PASSWORD, DB_HOST. Here we are blogdb, bloguser, 123456, and localhost respectively.
  6. Access http: // localhost/blog in the browser, automatically enter the wordpress installation page, enter the blog name and other parameters, and then install. It should be noted that after the installation, wordpress will automatically generate an admin account and assign it a password. Remember this password and then change it after logging on, so that you do not forget it.
  7. Create a ages directory under wordpress's wp-content directory, copy the downloaded zh_CN.mo to it, and modify the value of the WPLANG parameter in the wp-config.php file to zh_CN. Refresh the browser and you will be able to see Chinese characters.

Note: If you need to set up a VM, refer to the relevant content in the document, which is not described in this article.

References:

  1. Http://tetralet.luna.com.tw/index.php? Op = ViewArticle & articleId = 24 & blogId = 1
  2. Http://www.nabble.com/wgLogo-t3468432.html
  3. Https://en.wiki.aktivix.org/MediaWiki_Install
  4. A study note on media wiki Permissions
  5. Mediawiki + LDAP server Construction
  6. Install wordpress
  7. Wordpress installation FAQ
  8. Install wordpress

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.