MediawikiDev

From Cheaha
Revision as of 20:34, 25 January 2012 by Ppreddy@uab.edu (talk | contribs) (copy developer content from Mediawiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Attention: Research Computing Documentation has Moved
https://docs.rc.uab.edu/


Please use the new documentation url https://docs.rc.uab.edu/ for all Research Computing documentation needs.


As a result of this move, we have deprecated use of this wiki for documentation. We are providing read-only access to the content to facilitate migration of bookmarks and to serve as an historical record. All content updates should be made at the new documentation site. The original wiki will not receive further updates.

Thank you,

The Research Computing Team

For developers interested in customizing Mediawiki (themes, plugins etc), an AMP (Apache, MySQL, PHP) stack is required. Recommended here, is one easy way to set up an AMP stack on Mac OS X with XAMPP developed by Apache Friends.

Mac OS X

XAMPP

1. Install and configure XAMPP for Mac.
NOTE: Mediawiki requires atleast PHP version of 5.3.2 or later. PHP - 5.3.1 version is incompatible with Mediawiki and this is the version which comes with the current stable releases of XAMPP.
So, for Mediawiki development, use XAMPP beta.
2. Start up xampp as root, either from xampp's control or from command line. This starts both Apache and mysql services.
$ sudo /Applications/XAMPP/xamppfiles/xampp start

Database

1. Set up a database for mediawiki using xampp's phpmyadmin console. Go to http://localhost/phpmyadmin/ to open up phpmyadmin console
2. Create a database with name wikidb
3. Click on the wikidb in the list of databases to the left. You should see a set of tabs for this database appear in the right frame.
4. Click on the Privileges tab and click on Add a new User
5. Mention the following details
User name: wikiuser
Host: localhost
Password: <type in a password>
Re-type: <re-type the above password>
6. Click on Check All in the Global Privileges section in the same page and then click Go

Download Mediawiki

Download mediawiki, extract to ~/Sites and create a symbolic link

$ wget http://noc.wikimedia.org/mediawiki-1.16.0.tar.gz

$ tar -xf mediawiki-1.16.0.tar.gz ~/Sites

$ cd ~/Sites

$ ln -s mediawiki-1.16.0 mediawiki

Run Mediawiki installer

The following steps are a concise form of the detailed steps mentioned in the mediawiki installation guide for mac os x.
1. Browse to http://localhost/~short-username/mediawiki. Fill in the details it asks for and wait while the installer does its work. Pay attention to the default values of database name and username. Change this to whatever you have defined.
2. Refer steps 7-13 to finish the rest of the setup.