MediWiki/Linuxmint

From Wsms

Jump to: navigation, search

These directions are for Linux Mint 6 Felicia

Contents

install with synaptic

synaptic brings in the necessary dependencies.

During the install process, it prompts you to set the mysql root password.

configure mysql

Login to the mysql console as root using the password you specified above:

mysql -p -u root

Add a database a wikiuser for mysql:

mysql> create database wikidb;
Query OK, 1 row affected (0.07 sec)

mysql> GRANT ALL PRIVILEGES ON wikidb.* to 'wikiuser' identified by 'Password' ;
Query OK, 0 rows affected (0.17 sec)

configure PHP

refer to: http://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Debian_GNU/Linux#Configure_PHP

root@roosevelt:/etc/php5/apache2# mkdir -p ~/hold/etc/php5/apache2
root@roosevelt:/etc/php5/apache2# cp -p php.ini ~/hold/etc/php5/apache2/
root@roosevelt:/etc/php5/apache2# emacs -nw php.ini

My php.ini file has:

...
memory_limit = 20M
...

configure apache

root@roosevelt:/etc/php5/apache2# apache2ctl graceful
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

Refer to http://httpd.apache.org/docs/2.2/mod/core.html#servername

Set the ServerName in apache's main configuration file, /etc/apache2/apache2.conf:

ServerName roosevelt.sdlinuxguy.com:80

Now apache2ctl is graceful silent.

Made a config file, /etc/apache2/sites-available/ggeller.wikiplanet.com, defining the new website:

<VirtualHost *>
    ServerAdmin webmaster@sdlinuxguy.com
    DocumentRoot /var/www/ggeller.wikiplanet.com
    ServerName ggeller.wikiplanet.com
    ServerAlias ggeller.wikiplanet.com
    ErrorLog /var/log/apache2/ggeller.wikiplanet.com-error_log
    CustomLog /var/log/apache2/ggeller.wikiplanet.com-access_log common
    Options FollowSymLinks

    RedirectMatch ^.?$  http://ggeller.wikiplanet.com/mediawiki

<Directory /var/www/ggeller.wikplanet.com/mediawiki>
        Options +FollowSymLinks
        AllowOverride All
        order allow,deny
        allow from all
</Directory>

# some directories must be protected
<Directory /var/www/ggeller.wikiplanet.com/mediawiki/config>
        Options -FollowSymLinks
        AllowOverride None
</Directory>
<Directory /var/www/ggeller.wikiplanet.com/mediawiki/upload>
        Options -FollowSymLinks
        AllowOverride None
</Directory>

<Directory /var/www/ggeller.wikiplanet.com/html>
        Options -FollowSymLinks
        AllowOverride All
        IndexOptions FancyIndexing
</Directory>


</VirtualHost>
Personal tools