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:
- 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 ).
- 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>
- 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
- 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.
- 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.
- 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 ";
- Test whether mediawiki works properly.
Next, we will start to install wordpress. follow these steps:
- 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 ).
- 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>
- 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
- 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.
- 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.
- 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.
- 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:
- Http://tetralet.luna.com.tw/index.php? Op = ViewArticle & articleId = 24 & blogId = 1
- Http://www.nabble.com/wgLogo-t3468432.html
- Https://en.wiki.aktivix.org/MediaWiki_Install
- A study note on media wiki Permissions
- Mediawiki + LDAP server Construction
- Install wordpress
- Wordpress installation FAQ
- Install wordpress