Changes

Jump to navigation Jump to search
1,221 bytes removed ,  12:23, 1 March 2010
m
move configureation to puppet
Line 1: Line 1:  
==Set up==
 
==Set up==
Below is the recipe that we used to set up the php server.  Please see machine for up to date configuration details.
+
Below is the recipe that we used to set up the php server.  Please see puppet for up to date configuration details.
 
      
===Install required php modules===
 
===Install required php modules===
Line 17: Line 16:     
  sudo -i -u activities
 
  sudo -i -u activities
  −
===Checkout ASLO sources===
  −
  −
git clone git://git.sugarlabs.org/slo-activities/mainline.git ~
  −
git checkout production -b production
  −
  −
===Fetch external dependencies===
  −
  −
cd ~/site/vendors/
  −
svn co http://svn.mozilla.org/libs/product-details
  −
svn co http://svn.mozilla.org/libs/fizzypop.mozdev fizzypop
  −
svn co http://svn.mozilla.org/libs/phorms
  −
svn co http://svn.mozilla.org/libs/zxtm-api
        Line 50: Line 36:  
  define('DEV', false);
 
  define('DEV', false);
 
  define('QUERY_CACHE', true);
 
  define('QUERY_CACHE', true);
  −
Create directories
  −
mkdir -p ~/site/app/tmp/cache/persistent
  −
mkdir -p ~/site/app/tmp/cache/models
  −
mkdir -p ~/site/app/tmp/cache/views
  −
mkdir -p ~/files/temp
  −
mkdir -p ~/files/extracted
  −
mkdir -p ~/data
      
Minify css/js stuff
 
Minify css/js stuff
Line 70: Line 48:  
  # do not use @daily to make sure that we start job after aslo-proxy
 
  # do not use @daily to make sure that we start job after aslo-proxy
 
  01 08 * * * $HOME/aslo/cron/daily
 
  01 08 * * * $HOME/aslo/cron/daily
  −
===Create vhost===
  −
vim /etc/apache2/sites-available/activities.sl.org
  −
<pre>
  −
<VirtualHost *:80 *:443>
  −
        ServerName activities.sugarlabs.org
  −
        ServerAlias activities2.sugarlabs.org # for test/install
  −
        ServerAdmin webmaster@sugarlabs.org
  −
  −
        DocumentRoot /srv/activities/site/app/webroot
  −
  −
        LogFormat "%h %V %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" \"%{HTTP_COOKIE}i\"" addons
  −
        CustomLog /srv/activities/data/access addons
  −
        CustomLog /var/log/apache2/all-access.log vhost_combined
  −
        #CustomLog /var/log/apache2/performance.log performance
  −
</VirtualHost>
  −
</pre>
 
2,751

edits

Navigation menu