Changes

Jump to navigation Jump to search
Line 17: Line 17:  
== Installing activities.sugarlabs.org ==
 
== Installing activities.sugarlabs.org ==
   −
Mozilla.org runs a.m.o on CentOS5.0.  For capability reasons these instructions will also use CentOS5.2.
+
'''NOTE''' The followed instructions tested on Ubuntu 9.04(Jaunty).
   −
===Install centOS5.2 as server===
+
Install apache, php and mysql.
It is handy to set up a development system as a server-gui in a virtual machine.
+
  sudo apt-get install php5 php-dev apache2 mysql-server php5-gd php5-cli php-pear php5-mysql
 
  −
===Set up Apache===
  −
Apache is pre-installed on CentOS.
  −
 
  −
Configure Apache to start on system boot.
  −
 
  −
<code>
  −
chkconfig --levels 235 httpd on
  −
</code>
  −
 
  −
===Create Apache test page===
  −
 
  −
<code>
  −
vim /var/www/html/index.php
  −
 
  −
<?php phpinfo(); ?>
  −
</code>
  −
 
  −
===Start Apache===
  −
 
  −
<code>
  −
service httpd start
  −
</code>
  −
 
  −
===Install Firefox===
  −
 
  −
<code>
  −
yum install firefox
  −
</code>
  −
 
  −
===Test 127.0.0.1===
  −
 
  −
verify mod_rewrite and mod_expires are loaded
  −
 
  −
===Set up php===
  −
 
  −
look for PHP5.1.6
  −
 
  −
<code>
  −
  rpm -q php
  −
</code>
  −
 
  −
look for php-gettext ( in php-common)
  −
 
  −
<code>
  −
rpm -q php-common
  −
</code>
  −
 
  −
install required php modules
  −
 
  −
<code>
  −
yum install php-pear php-gd php-mbstring
      +
Install required php modules.
 
  pear config-set preferred_state beta  
 
  pear config-set preferred_state beta  
 
  pear install Archive_Zip
 
  pear install Archive_Zip
</code>
  −
  −
===Install git===
  −
  −
<code>yum install git</code>
  −
  −
===Checkout our fork===
  −
The repo with the latest sources is http://git.sugarlabs.org/projects/slo-activities/repos/mainline
  −
  −
<pre>
  −
git-clone git://git.sugarlabs.org/slo-activities/mainline.git /var/www
  −
</pre>
  −
  −
Add these lines to /var/www/.git/info/exclude:
     −
<pre>
+
To check out sources you need git and subversion.
/site/vendors/product-details
+
sudo apt-get install git subversion
/site/app/config/config-local.php
  −
/site/app/config/config.php
  −
/site/app/tmp
  −
</pre>
     −
Create some empty dirs needed at runtime:
+
Checkout our fork.
 
+
git-clone git://git.sugarlabs.org/slo-activities/mainline.git /var/www
<pre>
  −
mkdir /var/www/site/app/tmp/
  −
mkdir /var/www/site/app/tmp/cache
  −
mkdir /var/www/site/app/tmp/cache/persistent
  −
mkdir /var/www/site/app/tmp/cache/models
  −
mkdir /var/www/site/app/tmp/cache/views
  −
</pre>
      
Fetch one external dependency:
 
Fetch one external dependency:
 
+
cd /var/www/site/vendors/
<pre>
+
svn co http://svn.mozilla.org/libs/product-details product-details
cd /var/www/site/vendors/
  −
svn co http://svn.mozilla.org/libs/product-details product-details
  −
</pre>
      
==Set up server==
 
==Set up server==

Navigation menu