MediaWiki
From wiki.vincentkong.com
Contents |
Website
Installing MediaWiki
Download and extract
$ cd /opt/mediawiki $ wget http://download.wikimedia.org/mediawiki/1.16/mediawiki-1.16.0.tar.gz $ tar -zxvf mediawiki-1.16.0.tar.gz
Preparing directories
$ chmod 777 /opt/mediawiki/config
Creating database
mysql> create database mediawiki; mysql> grant index, create, select, insert, update, delete, alter, lock tables on mediawiki.* to 'mediawiki'@'localhost' identified by 'mediawiki';
Initialize the configuration script
Using your browser go to
http://localhost/index.php to complete the setup.
Configuring MediaWiki
Main article: Configuring MediaWiki
Formatting Pages
Main article: MediaWiki Formatting Pages
List of MediaWiki extensions
Some useful extensions:
Reference: http://www.mediawiki.org/wiki/Extension_Matrix/AllExtensions
Show count for each page
Log into the mysql database:
mysql> select page_title, page_counter from page;
Troubleshooting
Saving new templates goes to blank page
Increase the memory usage for PHP. Refer to PHP wiki page.
Enabling SSL causes bad request
After enabling SSL entering http://wiki.vincentkong.com redirects to http://wiki.vincentkong.com:443/wiki/Main_Page causing a bad request error:
Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please.
Solution:
Edit LocalSettings.php and add the line:
$wgServer = $wgProto.'://' . $wgServerName;