Media Wiki installation guide

From RHS Wiki
Jump to navigation Jump to search

Media Wiki Installation Guide

Download MediaWiki

   https://www.mediawiki.org/wiki/Download

Install Apache Web Server

If not installed already you must install it.

 apt-get install apache2

To see the server ip:

sudo ifconfig eth0 | grep inet | awk '{ print $2 }'

Install MySQL server

apt-get install mysql-server
mysql_secure_installation

Install php

apt-get install php5 php-pear php5-mysql

Instalar pear

sudo apt-get install php-pear #instalamos pear
sudo pear channel-update pear.php.net #actualizamos los canales
sudo pear list #nos muestra los paquetes instalados
pear remote-list #muestra la lista de paquetes disponibles para instalar
 

Extract MediaWiki

Extract MediaWiki files to your apache web home directory, now you can open your browser and follow the initial configuration settings.
Once finished and with your MediaWiki working is recomended to remove the config directory (at least move it to some were where nobody can access it

Mail set up

This will enable the MediaWiki to send e-mails

sudo pear install mail
sudo pear install net_smtp

Config mail

Add at the bottom of LocalSettings.php

    $wgSMTP = array(
        'host' => 'ssl://smtp.gmail.com',
        'IDHost' => 'gmail.com',
        'port' => 465,
        'username' => 'yourEmailAccount@gmail.com',
        'password' => 'yourEmailPassword',
        'auth' => true
    );

Uploading files

http://www.mediawiki.org/wiki/Manual:Configuring_file_uploads#Upload_permissions

Permissions

http://www.mediawiki.org/wiki/Manual:User_rights
http://www.mediawiki.org/wiki/Manual:Preventing_access