Manual:Running MediaWiki on Slackware Linux

'Warning: no promises of security are made in this guide. It was intended to be run on an offline workstation.'

Settings
For this guide, I will make the following assumptions about names, directories, and the like, but you will want to make some of them different:


 * name - The wiki needs a name; this example is called vicuna.
 * database - It also needs a database, which will also be called vicuna in this example.
 * passwords - There are several passwords involved, most importantly the password for the wiki database, and the initial administrator account you'll create when running the configuration page.
 * directory - The directory where the wiki will be installed. In this example, it's /var/wiki.

Configuration of Apache
At a minimum, the webserver must access your wiki on demand. There are better and more complex ways of setting it up, but this will suffice. In /etc/httpd/httpd.conf, in the  section: , add the following line:

Alias /wiki/ /var/wiki

Replace  with the directory you've chosen.

Apache will not be configured to use PHP by default, so you may need to do the following.


 * 1) Edit   by uncommenting the line:
 * 2) Edit   by adding:   to the line
 * 3) Edit   by adding:   to the line
 * 4) Make sure Apache is set to run at startup:
 * 5) Test your httpd.conf syntax:
 * 6) Restart/Start Apache:.

Configuration of MySQL
Perform the following commands as root.


 * 1) Copy one of the MySQL configuration files in /etc to my.cnf:
 * 2) Initialize the MySQL databases (only necessary once per system, but harmless):
 * 3) Set the Mysql server to start at boot:
 * 4) Set ownership of the files in /var/lib/mysql/:
 * 5) Start the MySQL daemon:
 * 6) Secure your Installation with the script provided:

You'll be prompted for a root mysql password. (This and all other mysql user passwords are completely independent from the system passwords so don't confuse them!)

Follow the prompts and choose the most secure options that suit your situation.