Tutorial: Install MediaWiki on FreeNAS

- FreeNAS Services|Webserver configuration
This is a step by step tutorial on how to go from “spare computer” to NAS w/MediaWiki for home.
Let’s get all our prerequisites together first: A copy of freeNAS (www.freenas.org), a burnable CDROM, and a burner.
Burn FreeNAS onto your cdrom, and boot FreeNAS from the CDROM.
FreeNAS is quite easy to configure and setup – so I won’t cover it here.
Once you have a running FreeNAS setup, you must enable the webserver.
For simplicity, I changed my managment inteface to run on https (port 443), and my wiki page is the default http (port 80). To do this you can easily go to “System -> General” on the FreeNAS gui, then under WebGUI change the “Protocol” to HTTPS and the Port to 443.
Enable webserver under “Services -> Webserver” and put it’s “Document root” somewhere useful. I put mine on my default public drive.

- Configuration settings for your WebGUI
Now I need a user to login to FreeNAS on the command prompt. My default user can do this by setting the “Shell access” in the “Access -> Users -> Edit” menus.
Also note that I am part of the “Admin” group, which allows me to run “su” to become root.

SSH to FreeNAS and become root
Now, open up an SSH session to the FreeNAS server and become root. Your root password is the same one for the “admin” GUI.
Go to http://www.mediawiki.org and download the latest version of MediaWiki. I did it with “fetch” on my command prompt.

using fetch, I downloaded mediawiki
Then decompress it: (tar -vxzf mediawiki-1.15.0.tar.gz &&mv mediawiki-1.15.0/* . && rm -rf mediawiki-1.15.0)

Do what it says, configure it.
Then browse to your mediawiki page (it would be the root address of your NAS server).

MediaWikis database.
Fill out the questions that MediaWiki asks; but in “database config” you must configure a database and add a db to the “SQLite data directory”. I used a directory that cannot be browsed to on the web.
Then you should get a screen telling you that the installation was sucessful; next you move the “config/LocalSettings.php” file to the web-root. and change ownership of all the

Move the config, finalise the wiki
web files. (mv config/LocalSettings.php . && chown -R www *)
Now that that’s all configured, you can remove you “config” directory (if you’re making it external. )

[...] Related links: Tutorial: Install MediaWiki on FreeNAS « ejes consulting [...]
Learn FreeNAS » Tutorial: Install MediaWiki on FreeNAS
July 8, 2009 at 2:46 am
[...] Related links: Tutorial: Install MediaWiki on FreeNAS « ejes consulting [...]
Tutorial: Install MediaWiki on FreeNAS « Network Attached Storage News
July 8, 2009 at 2:46 am
It’s interesting, but screenshots is too small.
Victor Kaplunov
July 8, 2009 at 12:32 pm
apologies on the screenshots; i’ll redo some bigger ones next week.
ejes
July 9, 2009 at 11:19 am
Thanks a lot!
Victor Kaplunov
July 17, 2009 at 2:06 pm