How to set up a wiki on freehostia
Add a free wiki to your free site!
+
- Set up the mySQL database
- login to freehostia
- click site management -> mySQL databases
- under database name, enter wikidb
the full name of the database will be username_wikidb (where username is your
freehostia login name); you can put anything you want here
- Get the right mediawiki wiki software
- freehostia uses PHP 4.x, but the latest mediawiki requires PHP 5.x, so you
need to find an older version
- follow the link on the mediawiki
site to the download archive
- click on "View older releases" and locate version 1.6.1
this is the last version that supports PHP 4.x
- extract the file you just downloaded, mediawiki-1.6.1.tar.gz
put it in some temporary directory; use 7-zip or Winzip if you are on Windows
- rename the folder from mediawiki-1.6.1 to wiki
- Upload the wiki software to your freehostia site
- on freehostia, use Site Management -> FTP Manager to set up an FTP user and password
- using your FTP client (such as filezilla),
connect to your freehostia site, and go into your site's directory (e.g., example.freehostia.com)
- upload the entire wiki directory
- when the upload is complete, go into the wiki directory; click on the configs directory
and change the permissions to make it writeable -- in filezilla, you would right-click,
choose "file attributes" and check the "write" box for group and public permissions.
- point your browser to your new wiki site, such as http://example.freehostia.com/wiki/
- fill out the form to configure your wiki
- if you click on your database in freehostia and enter the phpMyAdmin interface,
you'll see the mySQL server name at the top; for me it was mysql3.freehostia.com
- the mySQL username is the same as the databaes name, username_wiki; the password
is what you used to get into the phpMyAdmin interface
- when you've filled out the form correctly, it should say that the setup was successful
- using FTP, copy the file LocalSettings.php from the config/ directory,
up one level to your base wiki/ directory
also, you may want to keep a backup copy for yourself
- point your browser at the wiki URL again and you should see the default page!
- you probably want to lock down your wiki if you don't want random edits; use
the following settings at the bottom of your LocalSettings.php file:
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgShowIPinHeader = false;
- in your FTP client, you can delete the config/ directory when you're done
That's it. Hope it works for you.
- Jeff Ahrenholz
(c)2007 www.jeffnikki.com, all rights reserved.