I’ve done light exploration of wikis in the past. These have included:
Recently I downloaded MediaWiki which I’ve loaded up on my localhost. This little post will review the steps of setting up a local installation on your computer. MediaWiki is a very powerful opensource software package that was written with internationalization and scalability in mind. It is licensed under the General Public License and as such is free to download, use, and alter. The software was originally written by Lee Daniel Crocker.
Downloading MediaWiki and playing with it locally is a great way for nonprofits and individuals to become familiar with this Wiki package and review it’s usefulness.
- The first step to setting up MediaWiki on your local environment is to set up a *AMP environment on your computer. Many Windows users use WAMP and Mac users often use MAMP. I’m largely a Mac user, so the instructions will be more Mac angled but should work for Windows users too.
- Download the latest copy of MediaWiki from MediaWiki.org
- Extract the tar file
- Pop extracted directory into MAMP's htdocs folder-- /applications/MAMP/htdocs
- Fire up MAMP and click on "Open Start Page"
- Click on phpMyAdmin in the menu bar at the top of the page
- Click on the "databases" link in the main body of the page
- At the bottom of this page is a text box that reads "create new database", type in a name for your new database and choose a "collation". Use utf8_bin
- Create a user for the database--click on the sql tab up top and use the following command "grant all on database_name.* to user_name@localhost identified by 'password';" with no quotes and replacing database_name with the database, user_name with any name you care to put in, and password with an password you care to use
- In your browser go to http://localhost:8888 and click twice on the directory with MediaWiki in it. You will come to a page that reads “Please set up the wiki first.”
- MediaWiki will check your environment and indicate if there are any installation issues related with your version of PHP, MySQL, PHP’s memory and so forth. If your environment will work, you will see in green, “Environment checked. You can install MediaWiki.” and you will be offered a longish configuration page.
- Your Wiki’s Name
- A Contact Email
- Your Language
- The license you’d like to use for content on your site (this isn’t all that important for a local install)
- An Admin name and Password
- Choose “No caching” for a local install
- Leave the email settings all on the defaults
- When you get down to Database config choose:
- MySQL (presuming you are running MySQL)
- Leave the host as localhost
- Enter the database name, username, and password you set up in step 7
- Create a superuser account (user the username and password you set up in step 7)
- Click Install MediaWiki!
- At this point you will, if the installation worked, “Installation Successful!”
- There is also the instruction to “Move the config/LocalSettings.php file to the parent directory”
- Go to your MediaWiki directory in your htdocs directory in your *AMP directory
- Go into your config directory
- Move LocalSettings.php up one directory so it sits in your MediaWiki parent directory
- There will be a link on the MediaWiki page in step 11 that says “follow this link to your wiki”. Click on it
- You now have a working instance of MediaWiki on your computer!