Difference between revisions of "Media Wiki installation guide"

From RHS Wiki
Jump to navigation Jump to search
Tag: visualeditor
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Media Wiki Installation Guide ==
+
==Media Wiki Installation Guide==
=== Download MediaWiki ===
+
===Download MediaWiki===
 
     <nowiki>https://www.mediawiki.org/wiki/Download</nowiki>
 
     <nowiki>https://www.mediawiki.org/wiki/Download</nowiki>
  
=== Install Apache Web Server ===
+
===Install Apache Web Server===
 
If not installed already you must install it.
 
If not installed already you must install it.
 
  <nowiki> apt-get install apache2</nowiki>
 
  <nowiki> apt-get install apache2</nowiki>
Line 10: Line 10:
 
  <nowiki>sudo ifconfig eth0 | grep inet | awk '{ print $2 }'</nowiki>
 
  <nowiki>sudo ifconfig eth0 | grep inet | awk '{ print $2 }'</nowiki>
  
=== Install MySQL server ===
+
===Install MySQL server===
 
  apt-get install mysql-server
 
  apt-get install mysql-server
 
  mysql_secure_installation
 
  mysql_secure_installation
  
=== Install php ===
+
===Install php===
 
  <nowiki>apt-get install php5 php-pear php5-mysql</nowiki>
 
  <nowiki>apt-get install php5 php-pear php5-mysql</nowiki>
==== Instalar pear ====
+
====Instalar pear====
 
  <nowiki>
 
  <nowiki>
sudo apt-get install php-pear #instalamos pear
+
sudo apt-get install php-pear #instalamos pear
sudo pear channel-update pear.php.net #actualizamos los canales
+
sudo pear channel-update pear.php.net #actualizamos los canales
sudo pear list #nos muestra los paquetes instalados
+
sudo pear list #nos muestra los paquetes instalados
pear remote-list #muestra la lista de paquetes disponibles para instalar
+
pear remote-list #muestra la lista de paquetes disponibles para instalar
</nowiki>
+
  </nowiki>
  
=== Extract MediaWiki ===
+
===Extract MediaWiki===
 
Extract MediaWiki files to your apache web home directory, now you can open your browser and follow the initial configuration settings.<br />
 
Extract MediaWiki files to your apache web home directory, now you can open your browser and follow the initial configuration settings.<br />
 
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
 
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 ===
+
===Mail set up===
 
This will enable the MediaWiki to send e-mails
 
This will enable the MediaWiki to send e-mails
 
  <nowiki>sudo pear install mail
 
  <nowiki>sudo pear install mail
sudo pear install net_smtp</nowiki>
+
sudo pear install net_smtp</nowiki>
  
==== Config mail ====
+
====Config mail====
 
Add at the bottom of LocalSettings.php
 
Add at the bottom of LocalSettings.php
 
  <nowiki>
 
  <nowiki>
    $wgSMTP = array(
+
    $wgSMTP = array(
        'host' => 'ssl://smtp.gmail.com',
+
        'host' => 'ssl://smtp.gmail.com',
        'IDHost' => 'gmail.com',
+
        'IDHost' => 'gmail.com',
        'port' => 465,
+
        'port' => 465,
        'username' => 'yourEmailAccount@gmail.com',
+
        'username' => 'yourEmailAccount@gmail.com',
        'password' => 'yourEmailPassword',
+
        'password' => 'yourEmailPassword',
        'auth' => true
+
        'auth' => true
    );</nowiki>
+
    );</nowiki>
== Uploading files ==
+
==Uploading files==
 
http://www.mediawiki.org/wiki/Manual:Configuring_file_uploads#Upload_permissions
 
http://www.mediawiki.org/wiki/Manual:Configuring_file_uploads#Upload_permissions
  
== Permissions ==
+
==Permissions==
 
http://www.mediawiki.org/wiki/Manual:User_rights<br />
 
http://www.mediawiki.org/wiki/Manual:User_rights<br />
 
http://www.mediawiki.org/wiki/Manual:Preventing_access
 
http://www.mediawiki.org/wiki/Manual:Preventing_access
 +
 +
==Password change without email configuration==
 +
cd /var/www/wiki/maintenance/
 +
php changePassword.php --user=usuario --password=contraseña
 +
<br />
 +
 +
== Backup ==
 +
[[mediawikiwiki:Manual:Backing_up_a_wiki/es|Backup]]

Latest revision as of 19:21, 2 March 2019

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

Password change without email configuration

cd /var/www/wiki/maintenance/
php changePassword.php --user=usuario --password=contraseña


Backup

Backup