Howto: Configuring session expiry time in Chamilo

Note: this article was originally written for Chamilo 1.9 but it is also valid for all versions 1.10 and 1.11. We seldom receive a request from users of Chamilo LMS saying their sessions are cut in the middle of their activity. And sure, it might so happen that you are in the middle of the redaction of a very large answer to an open question, or diserting on how the course is going to help you in the forum. And we get that it's super-frustrating to click "submit" and then get an error page.

Creating new tasks in chamilo course-sessions

In the category of little scripts that can make your life easier when managing huge Chamilo portals, this is a little one that creates one tasks-folder called "ALP" for the "Assignments" (work) tool in each active course for a portal where you have thousands of sessions, with one course per session. The script works for version 1.9.8 of Chamilo, but might need some adaptations to run on an older version, in particular considering the addDir() function from the main/work/work.lib.php library which was created there recently. You should put the file into any "one-level" directory under the Cha

Upgrade Chamihost to 1.9.6

For those having started a Chamihost hosting before the 1.9.6, you can easily upgrade your version using the following script, uploading it to your Chamilo directory (through FTP) and loading it from your browser.
<html>
<body>
Downloading upgrade&nbsp;<?php
ini_set('display_errors',true);
ini_set('error_reporting',6143);

$d = __DIR__.'/';
$f = @fopen('http://zap.beeznest.com/temp/chamilo-1.9.6-upg.tar.gz','r');
if ($f === false) {
  die($php_errormsg);
}
$l = @fopen($d.'archive/chamilo.tar.gz','w');
if ($l === false) {
  die($php_errormsg);
}
while ($line = fread($f,1

Xhprof + PHP5.4 + Ubuntu + Chamilo 1.10dev

(Read the update below before starting to copy-paste) To install Xhprof on PHP5.4 on Ubuntu (assuming you've already got PHP5.4 from Andrej or somewhere safe) in order to measure the load of Chamilo 1.10 dev (you need to have a mercurial clone, otherwise the "tests" directory will not exist), follow this procedure (all lines prefixed with # are comments):
cd /tmp
sudo apt-get install php5-dev php-pear
pecl bundle xhprof
cd xhprof
# Here you will have to apply the patch mentioned here: https://bugs.php.net/bug.php?id=61674 to your extension/xhprof.c file (otherwise it won't compile