Difference between revisions of "Machine/aslo-web"
< Machine
Jump to navigation
Jump to search
m (reorder) |
m (update path) |
||
Line 29: | Line 29: | ||
ServerAdmin webmaster@sugarlabs.org | ServerAdmin webmaster@sugarlabs.org | ||
− | DocumentRoot / | + | DocumentRoot /var/www/site/app/webroot |
CacheEnable mem / | 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 / | + | CustomLog /var/www/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 | ||
</VirtualHost> | </VirtualHost> | ||
</pre> | </pre> | ||
− | |||
===Log rotate=== | ===Log rotate=== | ||
===Parse logs=== | ===Parse logs=== |
Revision as of 04:44, 10 November 2009
php
hostname: aslo-phpl.sugarlabs.org ip address: 140.186.70.144
Install needed packages
sudo apt-get install apache2 php5 php5-dev php5-gd php5-cli php-pear php5-mysql sudo apt-get install git subversion
Install required php modules
pear config-set preferred_state beta pear install Archive_Zip
Checkout our fork
git-clone git://git.sugarlabs.org/slo-activities/mainline.git /var/www
Create user to run scripts
activities
Fetch one external dependency
cd /var/www/site/vendors/ svn co http://svn.mozilla.org/libs/product-details product-details
Create vhost
<VirtualHost *:80 *:443> ServerName activities.sugarlabs.org ServerAlias activities.sugarlabs.* ServerAdmin webmaster@sugarlabs.org DocumentRoot /var/www/site/app/webroot CacheEnable mem / LogFormat "%h %V %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" \"%{HTTP_COOKIE}i\"" addons CustomLog /var/www/data/access addons CustomLog /var/log/apache2/all-access.log vhost_combined #CustomLog /var/log/apache2/performance.log performance </VirtualHost>