Difference between revisions of "Machine/aslo-web"
< Machine
Jump to navigation
Jump to search
m (moved Machine/Discovery One/Web to Machine/treehouse/aslo-web) |
m (moved Machine/treehouse/aslo-web to Machine/aslo-web) |
(No difference)
|
Revision as of 12:04, 9 November 2010
Set up
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
pear config-set preferred_state beta pear install Archive_Zip
Create user to run scripts
Make sure that all files in /srv/activities
- has apache(web-data) user
- activities group
- group write access
- umask is 002
Switch to activities user
sudo -i -u activities
Set up NFS mount points
Create directories
mkdir -p ~/files mkdir -p ~/staging
Add the following lines to the end of `/etc/fstab'
sunjammer.sugarlabs.org:/srv/nfs/activities/files /srv/activities/files nfs rsize=8192,wsize=8192,timeo=14,intr sunjammer.sugarlabs.org:/srv/nfs/activities/staging /srv/activities/staging nfs rsize=8192,wsize=8192,timeo=14,intr
Clone ASLO repository
git clone git://git.sugarlabs.org/slo-activities/mainline.git -b production .
Checkout 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
ASLO configuration
Using ~/aslo/config.php as template, setup ASLO settings in file ~/site/app/config/config.php. Template file was configured for dev environment, switch it to production by setting SITE_STATE variable to production.
Setup other env defines in file ~/site/app/config/config-local.php
define('DEBUG', 0); define('DEV', false); define('QUERY_CACHE', true);
All local configuration should happen in files
~/site/app/config/config.php ~/site/app/config/config-local.php
Update ASLO repository
git pull origin production