[Bugs] #108 MINO: activities.sugarlabs.org

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Thu Dec 11 00:42:57 EST 2008


#108: activities.sugarlabs.org
---------------------+------------------------------------------------------
Reporter:  dfarning  |       Owner:  krstic        
    Type:  task      |      Status:  new           
Priority:  minor     |   Component:  infrastructure
Keywords:            |  
---------------------+------------------------------------------------------
 would you please set up a machine for developing activities.sugarlabs.org.
 The preferred distro is cent0S5.2, as that is what mozilla used for a.m.o.
 With access root access on the machine I can set it up myself.  Otherwise
 my set up note are below.
 ------------------------------------------------------------------

 install centos52 as server-gui

 --set up apache

 start apache on system boot
         chkconfig --levels 235 httpd on

 create index.php to test apache server
         vim /var/www/html/index.php
                 <?php phpinfo(); ?>

 start apache
         service httpd start

 install firefox
         yum install firefox

 test 127.0.0.1
         verify mod_rewrite and mod_expires are loaded

 --set up php

 look for PHP5.1.6
         rpm -q php

 look for php-gettext ( in php-common)
         rpm -q php-common

 install php-pear
 install php-gd
 install php-mbstring

 pear config-set preferred_state beta
 pear install Archive_Zip

 --install amo

 Install subversion
         yum install subversion

 checkout amo trunk via svn
         svn co http://svn.mozilla.org/addons/trunk /var/www

 Install mysql
         yum install mysql-server
         yum install php-mysql

 start mysql on system boot
         chkconfig --levels 235 httpd on

 start mysql
         service mysqld start

 setup mysql
         mysqladmin -u root passward remora
         mysqladmin -u root -p create remora
         mysqladmin -u root -p create remora-test
         mysql -u root -p
                 GRANT ALL ON *.* TO 'remora'@'localhost' IDENTIFIED BY
 'remora';

 populate tables
         mysql -u remora -p -D remora
 </var/www/site/app/config/sql/remora.sql
         mysql -u remora -p -D remora-test
 </var/www/site/app/config/sql/remora.sql
         mysql -u remora -p -D remora </var/www/site/app/tests/data/remora-
 test-data.sql
         mysql -u remora -p -D remora-test </var/www/site/app/tests/data
 /remora-test-data.sql

 --set up server

 edit DocumentRoot
         cd /ect/httpd/conf/httpd.conf
                 Edit DocumentRoot /var/www/site/app/webroot
                 Edit AllowOverrides All

 --set permissions
      chown -R apache:apache app/webroot/files
      chown -R apache:apache app/tests/data
      chown -R apache:apache app/tmp


 --configure amo

 edit config.php
         cp /var/www/site/app/config/config.php/default
 /var/www/site/app/config/config/php
         vim /var/www/site/app/config/config.php

 edit config-local.php
         vim /var/www/site/app/config/config-local.php

 --create repo directories

 mkdir /var/www/files
 mkdir /var/www/files/temp
 mkdir /var/www/files/extracted
 chown -R apache:apache /var/www/files

 -add to hosts
         vim /etc/hosts
                 127.0.0.1 activities.sugarlabs.org

 -install php-memcache

         yum install php-devel
         yum install gcc
         yum install zlib-devel
         pecl install memcache
         vim /etc/php.ini



 -install memcached
         rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS
 /rpmforge-release-0.3.6-1.el5.rf.i386.rpm
         service memcached start

-- 
Ticket URL: <http://dev.sugarlabs.org/ticket/108>
SugarLabs <http://dev.sugarlabs.org>
Sugar Labs bug tracking system


More information about the Bugs mailing list