Changes

Jump to navigation Jump to search
1,003 bytes added ,  19:57, 30 May 2011
no edit summary
Line 22: Line 22:  
* [[User:Bernie|Bernie Innocenti]] for host issues
 
* [[User:Bernie|Bernie Innocenti]] for host issues
   −
== Notes ==
+
== Wiki instances ==
   −
The main wiki  
+
The main wiki lives here:
    
  /srv/www-sugarlabs/wiki/  
 
  /srv/www-sugarlabs/wiki/  
Line 35: Line 35:  
performed by various wiki helpers. Do not sync changes blindly to the
 
performed by various wiki helpers. Do not sync changes blindly to the
 
production wiki!
 
production wiki!
 +
 +
== Creating a Local Labs wiki ==
 +
 +
* Add a group for the wiki (vigr)
 +
 +
cd /srv/www-sugarlabs
 +
cp -a co.sugarlabs.org pe.sugarlabs.org
 +
chown -R icarito:sugarwiki-pe pe.sugarlabs.org
 +
cd pe.sugarlabs.org/wiki
 +
rm -r images/*
 +
vim LocalSettings.php
 +
vim SecretSettings.php
 +
 +
* Create apache virtual host:
 +
 +
  cp -a /etc/apache2/sites-available/pe.sugarlabs.org /etc/apache2/sites-available/ar.sugarlabs.org
 +
  vim /etc/apache2/sites-available/ar.sugarlabs.org
 +
  a2ensite ar.sugarlabs.org
 +
 +
* Create DB with some clever trick. I reused <code>config/index.php</code> to setup a new MediaWiki instance and then I've thrown away the generated <code>LocalConfig.php</code>:
 +
 +
  mv LocalConfig.php LocalConfig.good
 +
  cp -a /srv/www-sugarlabs/co.sugarlabs.org/config .
 +
  (go to http://ar.sugarlabs.org/wiki/config/index.php)
 +
  rm -r config LocalConfig.php
 +
  mv LocalConfig.good LocalConfig.php
 +
 +
* Create tables for OpenID:
 +
 +
mysql -u root -p pe_sugarlabswiki < extensions/OpenID/openid_table.sql
 +
 
   
 
   
 
== Upgrade notes ==
 
== Upgrade notes ==

Navigation menu