As I said earlier I will work on Wikimedia Foundation on the project MediaWiki Homepage Redesign. So the first thing I did was kill my curiosity, I downloaded the MediaWiki code and put to run on my machine. MediaWiki has been created using PHP and I need to run some MAMP solution because nowadays I ‘m using Mac OS X Mavericks (10.9). The MediaWiki works with multiple databases, but I chose the MySQL because it comes with MAMP.
First you will need to obtain the MAMP, install normally and start the service.
Now you need create a user to database. To do this you can access the http://localhost:8888/MAMP and in phpMyAdmin section create a user named mediawiki and choose a password.
After this you need get the source code of MediaWiki, extract the content and copy to folder of MAMP, like that:
cd /Applications/MAMP/htdocs/ cp -R ~/Downloads/mediawiki-X.X.X . mv mediawiki-X.X.X mediawiki
So, now if you access the http://localhost:8888 page you should see this:
And if you click at link you will see the page to start the installation of MediaWiki:
Installation is very simple, but you need to pay attention in connection with the database. Make sure that:
- selected MySQL as database type
- give a name for your database
- inform the credentials of user database previously created
To finish the process of installation some file named LocalSettings.php will be generated and the last step is put it inside mediawiki folder:
cp ~/Downloads/LocalSettings.php .
And is ready!!! You can access your wiki http://localhost:8888/mediawiki/index.php.
That’s all folks 😉