Opened 15 years ago

Closed 15 years ago

#108 closed task (fixed)

activities.sugarlabs.org

Reported by: dfarning Owned by: krstic
Priority: minor Milestone:
Component: infrastructure Version:
Severity: Keywords:
Cc: Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description (last modified by dfarning)

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 setup notes 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

Change History (2)

comment:1 Changed 15 years ago by dfarning

  • Description modified (diff)

comment:2 Changed 15 years ago by dfarning

  • Bug Status set to Unconfimed
  • Distribution/OS set to Unspecified
  • Resolution set to fixed
  • Status changed from new to closed

This is now working on sunjammer.

Note: See TracTickets for help on using tickets.