Difference between revisions of "Machine/aslo-web"

From Sugar Labs
Jump to: navigation, search
m (update ip)
m (ip address)
Line 1: Line 1:
  hostname:  aslo-web.sugarlabs.org
  hostname:  aslo-web.sugarlabs.org
  ip address:
  ip address:

Revision as of 11:44, 11 November 2009


hostname:   aslo-web.sugarlabs.org
ip address:

Install needed packages

sudo apt-get install apache2 php5 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

Create user to run scripts

sudo useradd -d /srv/activities activities

Checkout our fork

switch to user: activities

git clone git://git.sugarlabs.org/slo-activities/mainline.git /srv/activities

Fetch one external dependency

cd /srv/activities/site/vendors/
svn co http://svn.mozilla.org/libs/product-details product-details

Create vhost

vim /etc/apache2/sites-available/activities.sl.org

<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

Log rotate

Parse logs