Sysadmin global wikizam 12102011 - Seizam/seizamcore GitHub Wiki

Table of Contents

Infos

Made by : bedhed

Date: 12/10/2011

Currently applied on : papilusion

Comments

Here is how wikizam is deployed. From regular apache config (webroot at /var/www/) to working wikizam with pretty url (www.seizam.com/pageName).

Logs

Session

  • user : root
  • host : ns304832.ovh.net
  • date : 12/10/11 22:40
  • curpath : /root

Commands

  • Copying seizam trunk to a better place (so we separate wikizam from git and production wikizam)
 [email protected]# cp -R /root/seizam/seizamcore/WikiZam/ /usr/share/seizam/wikizam-0.1
  • Making symbolic link from webroot (/var/www/) to production wikizam (/usr/share/seizam/)
    • This is supposed to be better for security
    • This is useful for upgrades
    • This might actually be useless as we later make an alias with apache2.conf
 [email protected]# ln -s /usr/share/seizam/wikizam-0.1/ /var/www/w/
  • Now, wikizam is available at www.seizam.com/w, let's drop the /w :
  • Edit /usr/share/seizam/wikizam-0.1/LocalSettings.php, see [1] (Telling wikizam to use pretty url)
  • Edit /etc/apache2/apache2.conf, see [1] (Telling Apache to Alias /w/ to /)
  • Reload apache2
 [email protected]# apache2ctl graceful

Files

  • [1] Edit /usr/share/seizam/wikizam-0.1/LocalSettings.php
--- old	2011-10-12 23:00:01.000000000 +0200
+++ new	2011-10-12 23:00:24.000000000 +0200
@@ -41,3 +41,3 @@
-$wgScriptPath       = '/w';
+$wgScriptPath       = '';
+$wgArticlePath      = '/$1';
+$wgUsePathInfo      = true;
  • [2] Edit /etc/apache2/apache2.conf
--- old	2011-10-12 23:17:30.000000000 +0200
+++ new	2011-10-12 23:18:31.000000000 +0200
@@ -232,2 +232,8 @@
+# Alias to put wikizam at root, as seen on mediawiki.org/wiki/Manual:Short_URL
+<IfModule mod_alias.c>
+   Alias /images      /var/www/w/images #Might be useless
+   Alias /skins       /var/www/w/skins #Might be useless
+   Alias /robots.txt  /var/www/w/robots.txt
+   Alias /favicon.ico /var/www/w/favicon.ico
+   Alias /            /var/www/w/index.php/ #The important line
+</ifmodule>
⚠️ **GitHub.com Fallback** ⚠️