Home > Chamilo, English > Upgrade Chamihost to 1.9.6

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,16384)) {
  echo ". ";
  fwrite($l,$line);
  flush();
}
fclose($f);
fclose($l);
?>
<br />
Finished downloading!<br />
Extracting archive...
<?php
$bdir = getcwd();
chdir($d);
$e = @exec('tar zxf chamilo.tar.gz');
if ($e === false) {
  @unlink('chamilo.tar.gz');
  die('Could not uncompress file: '.$php_errormsg);
}
chdir($bdir);
echo "Uncompressed successfully<br />";
flush();
echo "Overwriting current installation...";
$c = @exec('cp -r '.$d.'archive/chamilo-1.9.6-upg/* .');
if ($e === false) {
  die('Error copying files: '.$php_errormsg);
}
?>
<br />
Finished upgrading! Please change the version number at the end of main/inc/conf/configuration.php and delete this script (it could be dangerous in the future)!
</body>
</html>

That should be enough :-)

Advertisements
Categories: Chamilo, English Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: