Line 11: |
Line 11: |
| pear config-set preferred_state beta | | pear config-set preferred_state beta |
| pear install Archive_Zip | | pear install Archive_Zip |
| + | |
| + | ===Create user to run scripts=== |
| + | sudo useradd -d /srv/activities activities |
| | | |
| ===Checkout our fork=== | | ===Checkout our fork=== |
− | git-clone git://git.sugarlabs.org/slo-activities/mainline.git /var/www | + | sudo su activities |
− | | + | git-clone git://git.sugarlabs.org/slo-activities/mainline.git /srv/activities |
− | ===Create user to run scripts===
| |
− | sudo useradd -d /var/www activities
| |
| | | |
| ===Fetch one external dependency=== | | ===Fetch one external dependency=== |
− | cd /var/www/site/vendors/ | + | cd /srv/activities/site/vendors/ |
| svn co http://svn.mozilla.org/libs/product-details product-details | | svn co http://svn.mozilla.org/libs/product-details product-details |
| | | |
Line 26: |
Line 27: |
| <VirtualHost *:80 *:443> | | <VirtualHost *:80 *:443> |
| ServerName activities.sugarlabs.org | | ServerName activities.sugarlabs.org |
− | ServerAlias activities.sugarlabs.*
| |
| ServerAdmin webmaster@sugarlabs.org | | ServerAdmin webmaster@sugarlabs.org |
| | | |
− | DocumentRoot /var/www/site/app/webroot | + | DocumentRoot /srv/activities/site/app/webroot |
− | CacheEnable mem /
| |
| | | |
| LogFormat "%h %V %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" \"%{HTTP_COOKIE}i\"" addons | | LogFormat "%h %V %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" \"%{HTTP_COOKIE}i\"" addons |
− | CustomLog /var/www/data/access addons | + | CustomLog /srv/activities/data/access addons |
| CustomLog /var/log/apache2/all-access.log vhost_combined | | CustomLog /var/log/apache2/all-access.log vhost_combined |
| #CustomLog /var/log/apache2/performance.log performance | | #CustomLog /var/log/apache2/performance.log performance |