Chamilo 1.8.7 - Dev starting pack -

seaurchininterpreterInternet και Εφαρμογές Web

7 Δεκ 2013 (πριν από 3 χρόνια και 10 μήνες)

99 εμφανίσεις

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
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
4. Get Chamilo in Eclipse
from and put it
in /var/www/chamilo
File > New > Project > Clone repository using Mercurial
> Create New Repository
> Finish
> (set it as /var/www/chamilo)
5. Configure a Virtual Host for Apache2
cd /etc/apache2/sites-available/
sudo cp default
sudo gedit (change settings to match url)
sudo a2ensite
sudo gedit /etc/hosts (add at end of line 1)
6. Configure MySQL account
mysql -u root -p
> GRANT ALL PRIVILEGES ON `cha\_%`.* TO 'cha'@'localhost'
> 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 and install
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
3. Always keep a safe copy of the scripts you are going
to hack.
4. Start small
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
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] (global forum) (my blog)
2. [Development tools] (our bug-tracking system) (dev portal updated /1h)

Existent hacks