Jump to content

Postgres Plus MediaWiki Tutorial

This tutorial will take you through the steps required to get MediaWiki installed and working on Postgres Plus.

MediaWiki requires that you have an application stack installed and working on your computer, if any of these questions apply to you:

  • What is a Stack?
  • How do I install the Postgres Plus Stack?
  • What ports are my Database and Web Server running on?
  • How do I get my stack started?

Then the following tutorials will help you with either Windows, or Linux, .

When you have a stack installed and active and know what ports it is using, installing MediaWiki is straightforward.

The steps that you will go through will be to:

  1. Download and Extract MediaWiki to a web accessible directory on your server.
  2. Create a User and Database to hold your data.
  3. Configure MediaWiki.

Step 1. Download and Extract MediaWiki.

Download the latest stable MediaWiki from here.

 

 

If you are using Windows, you should extract MediaWiki to the C:\Postgres Plus\8.3\apache\htdocs directory and call it wiki (i.e. ..\htdocs\wiki).

On Linux extract the compressed file with the following command

tar -xvzf mediawiki-1.12.0.tar.gz

Copy this directory to your apache webservers htdocs or /usr/var/www directory, and make sure that the privileges on the <mediawiki>/config directory are read and write with the following command

chmod -R a+w config

Make sure that your Postgres Plus database is up and running because the MediaWiki installer will be connecting to it.

Step 2. Create the MediaWiki Database and User.

If you need help setting up new database objects (like Users, Database and Tables), here is a quick cheat sheet for Windows. Here's a cheat sheet for Linux.

You should go into the database and set up a new Wiki user (i.e. wikiuser), see below:

 

 

Then you should create a database called wikidb to hold your Wiki data.

 

 

The database user and the database will be used in the MediaWiki configuration step below.

Step 3. Configure MediaWiki.

Start your browser and go to http://localhost:8080/wiki

You should see the following web page:

 

 

You are now ready to set up MediaWiki.

When you click on the set up the wiki link, you will be transferred to the MediaWiki Installation page.

 

  There's a lot on it, but don't worry, we'll step you through each option.

First of all you have to configure the wiki site by providing the wiki name, contact e-mail address, language of your wiki's interface, and the administrative account for performing maintenanace tasks.

 

Then you should customize the email setting for your wiki by simply enabling or disabling the options.

 

 

Finally you have to configure database which stores the content of wiki site and click "Install Media Wiki" button.

 

 

When you have installed mediawiki, you'll see the following confirmation:

 

 

Go ahead and move the config\LocalSettings.php config file, then follow the highlighted link on the MediaWiki Installation screen to see your wiki running on Postgres Plus.