Chamilo 1.8.7 - Dev starting pack - WordPress.com

seaurchininterpreterInternet and Web Development

Dec 7, 2013 (3 years and 11 months ago)

103 views

Chamilo 1.8.7 - Dev starting pack
Setting up your system
Hacking Chamilo
1. For practical reasons, we recommend Ubuntu Linux as a
development environment. Download from
http://www.ubuntu.com/getubuntu/download
2. Get Apache2, MySQL and PHP
installed. In a terminal:
sudo apt-get install apache2 mysql-server apache2-mod-php5
3. Install Eclipse
, PHPEclipse and Mercurial for Eclipse
See http://beeznest.wordpress.com/2008/07/24/
4. Get Chamilo in Eclipse
from code.google.com and put it
in /var/www/chamilo
File > New > Project > Clone repository using Mercurial
> Create New Repository
> https://classic.chamilo.googlecode.com/hg/
> Finish
> (set it as /var/www/chamilo)
5. Configure a Virtual Host for Apache2
cd /etc/apache2/sites-available/
sudo cp default my.chamilo.net
sudo gedit my.chamilo.net (change settings to match url)
sudo a2ensite my.chamilo.net
sudo gedit /etc/hosts (add my.chamilo.net at end of line 1)
6. Configure MySQL account
mysql_secure_installation
mysql -u root -p
> GRANT ALL PRIVILEGES ON `cha\_%`.* TO 'cha'@'localhost'
IDENTIFIED BY 'p4s5wOrd';
> FLUSH PRIVILEGES;
> exit;
7. Configure Chamilo
For a development environment, you can *temporarily*
forget about security for *this* install and use
sudo chmod -R 0777 /var/www/chamilo
8. Direct your browser to http://my.chamilo.net/ and install
Chamilo.
9. Use XDebug, if possible
sudo apt-get install php5-xdebug
1. Chamilo is programmed using PHP. Make sure you
understand the bases of this language before you start
hacking it
2. Use Chamilo's Quick reference sheets
(see http://beeznest.wordpress.com)
3. Always keep a safe copy of the scripts you are going
to hack.
4. Start small
Examples:
a. Edit the user_portal.php page to hide some data
b. Edit a page to add your own data
c. Find bugs to fix on http://support.chamilo.org
d. Develop better reporting interfaces using stats DB
e. Add a new upload method to the documents tool
f. Develop your own plugin (see plugins quickref sheet)
5. Always report on your progress. Although it doesn't
look like it, a simple hack may put someone on the way
to becoming a great hacker
Information is key
1. Watch frequent info sources
[Info sources]
http://www.chamilo.org/forum/ (global forum)
http://support.chamilo.org/projects/chamilo-18/wiki
http://beeznest.wordpress.com/ (my blog)
2. [Development tools]
http://support.chamilo.org (our bug-tracking system)
http://chamilodev.beeznest.com (dev portal updated /1h)

Existent hacks
1. http://www.chamilo.org/en/extensions
2. http://drupal.org/project/dokeos