installation_guide.html 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  1. <html lang="en">
  2. <head>
  3. <meta charset="utf-8" />
  4. <title>Chamilo Installation Guide</title>
  5. <link rel="stylesheet" href="../web/assets/bootstrap/dist/css/bootstrap.css" type="text/css" media="screen,projection" />
  6. <link rel="stylesheet" href="default.css" type="text/css" media="screen,projection" />
  7. <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
  8. <link href="js/prettify.css" type="text/css" rel="stylesheet" />
  9. <script src="js/prettify.js" type="text/javascript"></script>
  10. </head>
  11. <body>
  12. <nav class="navbar navbar-default navbar-fixed-top">
  13. <div class="container">
  14. <div class="navbar-header">
  15. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  16. <span class="sr-only">Toggle navigation</span>
  17. <span class="icon-bar"></span>
  18. <span class="icon-bar"></span>
  19. <span class="icon-bar"></span>
  20. </button>
  21. <a class="navbar-brand" href="#">Chamilo - Documentation</a>
  22. </div>
  23. <div class="collapse navbar-collapse">
  24. <ul class="nav navbar-nav">
  25. <li class="active"><a href="index.html">Home</a></li>
  26. <li ><a href="readme.html">About</a></li>
  27. <li><a href="license.html">License</a></li>
  28. <li><a href="credits.html">Credits</a></li>
  29. <li ><a href="dependencies.html">Dependencies</a></li>
  30. <li><a href="changelog.html">Changelog</a></li>
  31. </ul>
  32. </div><!--/.nav-collapse -->
  33. </div>
  34. </nav>
  35. <div class="container">
  36. <h1>Chamilo 1.10 - Installation Guide</h1>
  37. <p>Thank you for downloading Chamilo</p>
  38. <ul>
  39. <li>You can test Chamilo LMS, as teacher, without installing it, on <a href="http://campus.chamilo.org">Free Campus</a></li>
  40. </ul>
  41. <p>This guide explains how to install Chamilo FREE. Please read this fully before proceeding with the installation.</p>
  42. <p>Spanish: También puede leer <a href="installation_guide_es_ES.html">esta guía de instalación en español</a>.</p>
  43. <p>French: Vous pouvez aussi lire <a href="installation_guide_fr_FR.html">ce guide d'installation en français</a>.</p>
  44. <p>Italian: You can also read <a href="installation_guide_it_IT.html">this guide in Italian</a>.</p>
  45. <h2><b>Contents</b></h2>
  46. <ol>
  47. <li><a href="#1._Pre-requisites">Pre-requisites</a></li>
  48. <li><a href="#2._Installation_of_Chamilo_LMS">Installation of Chamilo LMS</a></li>
  49. <li><a href="#3._Upgrade_from_a_previous_version_of">Upgrade from a previous version of Chamilo/Dok€os</a></li>
  50. <li><a href="#4._Troubleshooting">Troubleshooting</a></li>
  51. <li><a href="#5._Administration_section">Administration section</a></li>
  52. <li><a href="#6._LDAP">LDAP&nbsp;</a></li>
  53. <li><a href="#9._WIRIS_mathematical_formulas">Mathematical formulas with WIRIS</a></li>
  54. <li><a href="#10._Xapian_fulltext_indexing">Full-text indexation with Xapian</a></li>
  55. <li><a href="#11._Chamilo_rapid_ppt_conversion">Chamilo Rapid - PPT conversion system</a></li>
  56. <li><a href="#12._Setting_cron_up">Setting chronological tasks</a></li>
  57. <li><a href="#13._Changing_language_names_order">Changing the language's firstname/lastname order</a></li>
  58. <li><a href="#14._Improving_files_download">Improving files download time</a></li>
  59. <li><a href="#15._Videoconference">Videoconference</a></li>
  60. <li><a href="#16._Rewrite">Rewrite configurations</a></li>
  61. <li><a href="#17._Git_Upgrade">Upgrading from Git</a></li>
  62. </ol>
  63. <br />
  64. <hr style="width: 100%; height: 2px;" />
  65. <h2><a name="1._Pre-requisites"></a>1. Pre-requisites</h2>
  66. Chamilo
  67. can be installed on Windows, Linux, Mac OS X and UNIX servers
  68. indifferently. However, we recommend the use of Linux server for
  69. optimal flexibility, remote control and scalability. <br />
  70. <br />
  71. Chamilo is mainly a LMS running (the so called <span style="font-weight: bold;">AMP</span> trilogy): <br />
  72. <ul>
  73. <li><span style="font-weight: bold;">Apache 2.2+</span></li>
  74. <li><span style="font-weight: bold;">MySQL 5.1+ or MariaDB 5+</span></li>
  75. <li><span style="font-weight: bold;">PHP 5.4+ (5.6 recommended for greater efficiency) (support for PHP7 has not been thoroughly tested)</span></li>
  76. </ul>
  77. <br />
  78. All these pieces of software are free software and freely available. <br />
  79. <br />
  80. To run Chamilo <span style="font-weight: bold;">LMS</span> on your server, you need to install WAMP, LAMP or MAMP:
  81. <ul>
  82. <li>To install <span style="font-weight: bold;">WAMP</span> (AMP on Windows), we recommend the <a href="http://www.apachefriends.org/en/xampp.html">XAMPP</a> .exe installer<a href="http://www.apachefriends.org/en/xampp.html"></a></li>
  83. <li>To install <span style="font-weight: bold;">LAMP</span>
  84. (AMP on Linux), use the Package manager of your favourite distribution (Synaptic, RPMFinder etc.).
  85. For instance, on a Ubuntu server,&nbsp;use Shell or Synaptic following the
  86. <a href="http://ubuntuguide.org/wiki/Ubuntu:Feisty#Apache_HTTP_Server">Ubuntuguide on Apache</a> and the following sections</li>
  87. <li>To install <span style="font-weight: bold;">MAMP</span> (AMP on Mac OS X), refer to the <a href="http://www.mamp.info/en/index.php">MAMP</a> dedicated website<a href="http://www.mamp.info/en/index.php"></a></li>
  88. <li>Make sure you check the <a href="dependencies.html" title="Dependencies">Dependencies page</a> if you need to know the requirements in more precise way.
  89. </ul>
  90. <br />
  91. <h3><span style="font-weight: bold;">MySQL or MariaDB database server</span></h3>
  92. You will need a login and password allowing you to manage and create a database. Usually, the default configuration on local computers is
  93. to allow you to connect as root with an empty password. It is <b>HIGHLY RECOMMENDED</b> to change the password and define a user with access to
  94. only a specific database. Please refer to the MySQL or MariaDB documentation in order to do this.<br />
  95. <br />
  96. <span class="text-muted">Chamilo versions prior to 1.9.0 required to choose between multiple databases and a deprecated single-database mode.
  97. This has been cleaned up and simplified to one single database.</span><br />
  98. <hr style="width: 100%; height: 2px;" />
  99. <h2><a name="2._Installation_of_Chamilo_LMS"></a><span style="font-weight: bold;">2. Installation of Chamilo LMS</span></h2>
  100. <p>
  101. Before you start installing Chamilo LMS, you must understand that, because we provide Chamilo as free software, many services providers
  102. have been able to develop extensions of Chamilo, which have made it possible to install Chamilo in many ways:<br />
  103. <ul>
  104. <li>As an all-in-one package through an official provider, certified by the Chamilo Association</li>
  105. <li>As an installable solution from one of many hosting providers who support cPanel with Scriptaculous</li>
  106. <li>At your preferred hosting provider using remote installers like Installatron</li>
  107. <li>On your own server, downloading and installing manually</li>
  108. <li>On your own computer, at home or at the office, just for testing or development</li>
  109. </ul>
  110. This guide only covers these 2 last methods. For other methods, you can always ask more information from the provider you will choose.
  111. <br /><br />
  112. To install, follow these 6 simple steps:
  113. <ol>
  114. <li><a href="https://chamilo.org/chamilo-lms/">Download Chamilo LMS</a></li>
  115. <li>Unzip it</li>
  116. <li>Copy the Chamilo directory in your web server's root directory. This can be
  117. <span style="font-weight: bold;">C:\xampp\htdocs\</span> on a Windows server or <span style="font-weight: bold;">/var/www/html/</span> (or /var/www/chamilo/) on a Linux server</li>
  118. <li>Verify your web server supports .htaccess files (see Rewrite section below)</li>
  119. <li>Open your web browser (Internet Explorer, Firefox...) and type
  120. <span style="font-weight: bold;">http://localhost/chamilo/</span> if you install locally or
  121. <span style="font-weight: bold;">http://www.domain.com/chamilo/</span> if you install remotely*
  122. </li>
  123. <li>Follow the web installation process. You can accept all default values. Consider changing the admin password to remember it.&nbsp;</li>
  124. </ol>
  125. <span class="text-muted">* We recommend defining a specific Virtual Host for this installation if you have the skills to do so</span>
  126. <br /><br />
  127. <span class="text-muted">
  128. Note: if installing Chamilo locally using localhost or the IP address of your computer during the installation, you might get issues
  129. while accessing from another computer. To avoid this, you can
  130. <a href="https://beeznest.com/blog/2013/01/15/answering-to-different-addresses-with-chamilo/">apply a little change to your configuration file</a>.
  131. </span>
  132. <br /><br />
  133. The following directories need to be <b>readable, writeable and executable</b> by your web server.
  134. <span class="text-muted">This usually requires no specific action on Windows servers, but will require a "chmod" under Linux and Mac. See instructions below.</span><br /><br />
  135. Replace [chamilo] with the directory where your Chamilo installation is located):
  136. <ul>
  137. <li>[chamilo]/app/</li>
  138. <li>[chamilo]/vendor/ (only needs to be readable and executable)</li>
  139. <li>[chamilo]/web/</li>
  140. <li>[chamilo]/main/default_course_document/images/</li>
  141. </ul>
  142. Optionally, you can do the same to the following directory if you want to
  143. enable sub-languages definition:
  144. <ul>
  145. <li>[chamilo]/main/lang/</li>
  146. </ul>
  147. <br />
  148. <span class="text-muted">If you find a tests/ directory at the root of your package, please delete it.
  149. This is a development directory that has not been checked for security issues,
  150. an it should *never* be accessible to final users on a production server.</span>
  151. <br /><br />
  152. <p><span class="text-muted">On Linux, Mac OS X and BSD operating systems you can use the <em>chmod 0775</em> command for this (although we recommend you seek advice from an
  153. experienced system administrator to avoid security issues). On Windows, you may need to check the properties of the folders (by right-clicking on them).</span></p>
  154. <h3>Post-installation security checklist</h3>
  155. <ul>
  156. <li><strong>Protect your configuration folder: </strong>
  157. make sure no one (but you) can overwrite it. You can find the config directory in
  158. <em>(chamilo folder)</em>/app/config.
  159. Make it read-only (windows/xwindows: right-click the file to edit the
  160. properties. linux/bsd/macosx: use the chmod 0555 command). The config
  161. file is created by your web server (Apache + PHP, usually) so you may
  162. need to be root user to change its permissions.</li>
  163. <li><strong>Configure your Chamilo portal: </strong>
  164. in the administration section of Chamilo, you can use the Chamilo Configuration
  165. Settings to adjust the behavior of your installation.</li>
  166. <li>For stronger security tips, please check our new <a href="./security.html">security guide</a> for more</li>
  167. </ul>
  168. <br />
  169. <h3>PHP configuration</h3>
  170. To get the best out of Chamilo, you need to finetune your PHP settings. Consider : <br />
  171. <ul>
  172. <li>Configuring Chamilo mail: Most of Chamilo uses the mail settings from the php.ini file. However,
  173. if you use a distinct e-mail server, you might need to adjust the
  174. e-mail setting in <em>(chamilo folder)</em>/app/config/mail.conf.php.</li>
  175. <li>Editing php.ini file (on Windows can usually be located at
  176. <span style="font-weight: bold;">C:\xampp\php\php.ini</span>,
  177. on Ubuntu Linux :
  178. <span style="font-weight: bold;">/etc/php5/apache2/php.ini</span></li>
  179. <li>search the word "_max" and increase the following values to optimise the server</li>
  180. </ul>
  181. <div class="code">
  182. max_execution_time = 300 ;Maximum execution time of each script, in seconds<br />
  183. max_input_time = 600 ;Maximum amount of time each script may spend parsing request data<br />
  184. memory_limit = 256M ;Maximum amount of memory a script may consume (128MB)<br />
  185. post_max_size = 100M<br />
  186. upload_max_filesize = 100M;<br />
  187. short_open_tag = Off<br />
  188. safe_mode = Off<br />
  189. magic_quotes_gpc = Off<br />
  190. magic_quotes_runtime = Off<br />
  191. </div>
  192. <br />
  193. <p><strong>Important:</strong> You need to set
  194. your <em>date.timezone</em> setting to whatever your server's timezone is. For example, if your server is in the 'America/New_York' timezone,
  195. set the date.timezone parameter to this value in your php.ini:</p>
  196. <div class="code">
  197. date.timezone = 'America/New_York'
  198. </div>
  199. <br />
  200. <p><strong>Note:</strong> <span class="text-muted">PHP 5.3.9 introduces a new setting "max_input_vars", which limits the number of elements you can send in one single form. If you are dealing with numerous users or very long learning paths (many items), make sure you set this setting higher than its default value of 1000.</span></p>
  201. <p><strong>BSD and CentOS users:</strong> these php libraries have to be included during the PHP installation (php5 might have to be replaced by php in some instances):</p>
  202. <ul>
  203. <li>php5-session: The session shared extension for php</li>
  204. <li>php5-mysqlnd (or php5-mysqli): The mysql shared extension for php</li>
  205. <li>php5-zlib: The zlib shared extension for php</li>
  206. <li>php5-pcre: The pcre shared extension for php</li>
  207. <li>php5-xml</li>
  208. <li>php5-json</li>
  209. <li>php5-mcrypt</li>
  210. <li>php5-iconv or php5-mbstring (either one of them)</li>
  211. <li>php5-gd The graphics-generation extension for PHP</li>
  212. <li>php5-intl The international behaviours extension for PHP</li>
  213. </ul>
  214. <p>You might also add the following php modules and packages:</p>
  215. <ul>
  216. <li>php5-ctype</li>
  217. <li>php5-ldap</li>
  218. <li>php5-xapian</li>
  219. <li>php5-curl</li>
  220. <li>php5-xsl</li>
  221. </ul>
  222. <hr />
  223. <h2><a name="3._Upgrade_from_a_previous_version_of"></a>3. Upgrade from a
  224. previous version of Chamilo LMS (1.*) or Dok€os (&lt;2.0)</h2>
  225. Before upgrading, we <b>heavily</b> recommend you do a full backup of the previous
  226. Chamilo directories and databases. If you are unsure how to achieve this
  227. please ask your hosting provider for advice <b>before</b> you continue further.<br /><br />
  228. <em>Chamilo LMS 1.10 comes with a new database structure in comparison to 1.9,
  229. as was the case between 1.9 and 1.8.
  230. Although the upgrade script takes the migration in charge, it might be generating
  231. a very heavy load on your server during the upgrade, and will change your
  232. database considerably, preserving the data as well as possible (we have tested
  233. the procedure many times, but remember this is GNU/GPLv3 and we cannot be held
  234. responsible for what would happen to your data without professional supervision).
  235. This is why we *really* recommend you take a full backup of your system before
  236. you upgrade.</em>
  237. <br />
  238. <br />
  239. Also note that Chamilo LMS 1.10 unites all language files from the
  240. main/lang/ directory into one single file by language.
  241. If you have changed language files directly (instead of
  242. using the recommended way: sub-languages), you should take a backup copy of
  243. these changed translations before you upgrade. Sublanguages might also require
  244. som manual work, but the upgrade procedure will not touch sublanguages directly.
  245. <br /><br />
  246. <div class="text-muted"> NOTE: For very heavy Chamilo databases, some of our official
  247. providers have developed improved migration procedures that use more memory but
  248. process the upgrades much faster. If this is the kind of thing you
  249. need, we highly recommend you contact them (see reference below).</div>
  250. <br />
  251. <div class="text-muted"> NOTE: This version of Chamilo can only be used to upgrade
  252. from earlier versions of Chamilo 1.9.*. For example, you cannot use the normal
  253. upgrade scripts from Chamilo 1.10 to upgrade from Chamilo 1.8.* or even Dok€os 2.0
  254. (which was born after the split with Chamilo). If you need this, please contact one
  255. of the Chamilo Association's <a href="https://chamilo.org/providers">official providers</a>)</div>
  256. <p></p>
  257. <h3>3.1 Upgrading from Chamilo 1.10.x (minor upgrade)</h3>
  258. As this is only a minor version change from previous 1.10.* versions of Chamilo, the only thing you need to do is:
  259. <ul>
  260. <li> check that you haven't left any customised stylesheet or image <span class="text-muted">(if you have, make sure you keep a copy on the side*)</span></li>
  261. <li> download the Chamilo 1.10 install package from the <a href="http://www.chamilo.org/download">Chamilo download page</a></li>
  262. <li> unzip the new files of Chamilo 1.10 over the files of the older version
  263. (or unzip the files in one folder and then copy the files from there to the
  264. older version's directory). Note that you should remove the "home" and
  265. "searchdb" directories from the package before you overwrite the previous
  266. files.</li>
  267. <li> edit the app/config/configuration.php file: at the en of the file, locate the previous version number (e.g. '1.10.4') and change it to this new version (e.g. '1.10.8')</li>
  268. <li> clean your app/cache/twig directory: delete all the contents *in* this directory (do NOT remove the directory itself, only its contents!). It will all be re-generated. You can also delete the contents of this directory through the "Archive directory cleanup" option in the "System" box of the Administration page.</li>
  269. <li> you're done! No other upgrade procedure is required</li>
  270. </ul>
  271. Please note that if you (unluckily) upgraded from any of the 1.9 versions to 1.10.0 against our recommendations, we
  272. provide a patch script that should get most of it in order. The script is available here:<br />
  273. <a href="https://raw.githubusercontent.com/chamilo/chamilo-lms/1.10.x/tests/scripts/fix_migrations_1.9.x_1.10.0.php">https://raw.githubusercontent.com/chamilo/chamilo-lms/1.10.x/tests/scripts/fix_migrations_1.9.x_1.10.0.php</a> or, if
  274. you are using a development version of Chamilo, directly into you tests/scripts/ folder. You should place the file
  275. in the /tests/scripts/ folder, then edit it to remove the "die();" line, then launch it from your browser (after
  276. connecting to your Chamilo site as admin). You should also remove the scripts afterwards.<br />
  277. This script is provided without warranty. Please *always* take a backup before you use it.
  278. <br />
  279. <h3>3.2 Upgrading from Chamilo 1.9.x</h3>
  280. <ul>
  281. <li> make sure you don't have tables from previous versions of Chamilo still hanging around. These can cause the upgrade to fail. In particular, tables from versions 1.8.* could have multiple tables for each course, resulting in many tables with the same prefix. Only tables without prefix or with a "c_" prefix exist in 1.9 and superior versions. Make sure none of these tables persist. Take a backup of your database (just in case) and delete these prefixed tables (drop table ...).</li>
  282. <li> check that you haven't left any customised stylesheet or image <span class="text-muted">(if you have, make sure you keep a copy on the side*)</span></li>
  283. <li> download the Chamilo 1.10 install package from the <a href="http://www.chamilo.org/download">Chamilo download page</a></li>
  284. <li> unzip the new files of Chamilo 1.10 over the files of the older version (or unzip the files in one folder and then copy the files from there to the older version's directory)</li>
  285. <li> make *absolutely sure* that the .htaccess file of version 1.10 is copied as well</li>
  286. <li> make sure "AllowOverride All" is present in your Apache configuration, as interpreting the .htaccess files is very important for Chamilo to work (note that the Order-Allow directive has been replaced by "Require all granted" in Apache 2.4)</li>
  287. <li> point your browser on your portal URL + main/install/</li>
  288. <li> click&nbsp;<span style="font-style: italic;">Install</span>, then choose <span style="font-style: italic;">Upgrade from 1.9.*</span></li>
  289. <li> once your portal is upgraded, clean your app/cache/twig directory: delete all the contents *in* this directory (do NOT remove the directory itself, only its contents!). It will all be re-generated. You can also delete the contents of this directory through the "Archive directory cleanup" option in the "System" box of the Administration page.</li>
  290. </ul>
  291. <br />
  292. <span class="text-muted">* Styles and images are located in the main/css or main/img
  293. directories. You can still recover them from your backup if you have made it.
  294. Any modified style or image that uses the default style/image name will be
  295. overwritten by the next step. To avoid loosing your customisations, always
  296. ensure you copy the styles/images under a new name and use and modify the
  297. copy, not the original. The original will always be overwritten by newer
  298. versions. In Dok€os 1.8.5, we have changed the name of several CSS themes.
  299. Backwards compatibility is ensured by the fact that an upgrade only adds the
  300. new themes, but you should try and use these new themes rather than sticking
  301. to the old ones which will be deprecated shortly (not maintained).</span>
  302. <br />
  303. <p></p>
  304. <p>
  305. <b>WARNING:</b><br />
  306. Do not delete the previous Chamilo installation directory before installing
  307. the new one. The upgrade process should take care of all unrequired folders.</p>
  308. <h3>3.2 Upgrading from Chamilo 1.8.x</h3>
  309. To upgrade from version of Chamilo prior to 1.9.0, you will need to first upgrade them to 1.9.10.x, then upgrade again (separately) to 1.10.x.
  310. You can find the 1.9.10.x packages here: <a href="https://github.com/chamilo/chamilo-lms/releases">https://github.com/chamilo/chamilo-lms/releases</a>
  311. <p></p>
  312. <h3>3.5 In both last cases</h3>
  313. The following directories need to be readable, writeable and executable for the web server:
  314. <ul>
  315. <li>[chamilo]/main/lang/ (in order to delete unnecessary language files)</li>
  316. <li>[chamilo]/courses/ (in order to move the courses files to the app/courses folder)</li>
  317. <li>[chamilo]/archive/ (in order to remove unnecessary files or move them to app/cache/)</li>
  318. <li>[chamilo]/home/ (in order to move files to app/home)</li>
  319. <li>[chamilo]/app</li>
  320. <li>[chamilo]/web</li>
  321. <li>[chamilo]/vendor</li>
  322. <li>[chamilo]/main/default_course_document/images/</li>
  323. </ul>
  324. On Linux, Mac OS X and BSD operating systems you can quick-fix this using the
  325. <em>chmod 0777</em> command, but if you are unsure, we recommend you seek advice for
  326. your own OS on <a href="https://chamilo.org/forum">our forum</a>.
  327. In Windows, you may need to check the properties of the folders.
  328. <p></p>
  329. <hr style="width: 100%; height: 2px;" />
  330. <h2><a name="4._Troubleshooting"></a>4. Troubleshooting</h2>
  331. <p>If you have&nbsp;problems, go to the <a href="https://chamilo.org">Chamilo website</a> and ask a question on the
  332. <a href="https://chamilo.org/forum">support forum</a>. Please read the previous messages first to see if there is
  333. already an answer to your question.</p>
  334. <h2></h2>
  335. <hr style="width: 100%; height: 2px;" />
  336. <h2><a name="5._Administration_section"></a>5. Administration section</h2>
  337. <p>To access the Chamilo administration section, open browser, go to your Chamilo adress and log in with the admin user.
  338. Then you will see a "Administration" tab in the webpage header. You can manage users, courses, sessions, portal look
  339. and feel, homepage content, course categories etc. there&nbsp;</p>
  340. <p></p>
  341. <hr style="width: 100%; height: 2px;" />
  342. <h2><a name="6._LDAP"></a>6. LDAP</h2>
  343. <p>
  344. <i>This part is optional, only organisations with an LDAP server will need to read this.</i><br />
  345. An LDAP module is already provided in Chamilo, but it has to be configured to make it work.</p>
  346. <h3><b>Compiling</b></h3>
  347. <p>
  348. Linux servers: It's possible that you have to recompile php with ldap support.
  349. Newer distributions also allow downloading rpms for additional packages.</p>
  350. <h3><b>Activating LDAP in Chamilo</b></h3>
  351. <p class="text-muted">Note: Please check
  352. the LDAP configuration settings inside Chamilo to learn the details.</p>
  353. <p>
  354. In [Chamilo folder]/app/config/configuration.php, around line 93, you'll find settings like the following: <br />
  355. // -> Uncomment the two lines below to activate LDAP AND edit main/inc/conf/auth.conf.php for configuration<br />
  356. // $extAuthSource["extldap"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/login.ldap.php";<br />
  357. // $extAuthSource["extldap"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/newUser.ldap.php";<br />
  358. <br />
  359. remove the // from the last two lines to activate LDAP.<br />
  360. </p>
  361. <h3><b>Settings</b></h3>
  362. <p>
  363. Ask the LDAP server admin for the settings:</p>
  364. <ul>
  365. <li>ldap server name</li>
  366. <li>ldap server port (usually 389)</li>
  367. <li>ldap dc</li>
  368. </ul>
  369. Since 1.8.5, you have to change the LDAP settings inside the "Portal
  370. administration" panel, under "Chamilo configuration settings", section
  371. "LDAP".
  372. <br />
  373. As an example, you should find the following kind of values:<br />
  374. LDAP main server's address: "myldapserver.com"; // your ldap server<br />
  375. LDAP main server's port: 389; // your ldap server's port number<br />
  376. LDAP domain: "dc=xx, dc=yy, dc=zz"; //domain<br />
  377. <br />
  378. <h3><b>Teacher/student status</b></h3>
  379. <p>
  380. By default, Chamilo will check if the "employeenumber" field has a value. If it has, then Chamilo will
  381. consider this user as being a teacher.<br />
  382. If you want to change this behaviour, you can edit main/auth/ldap/authldap.php, function ldap_put_user_info_locally(),
  383. and change the <em>if (empty($info_array[$tutor_field]))</em> condition to whatever suits you.<br />
  384. You can also remove this check by removing the condition and leaving only the <em>$status = STUDENT;</em> line.</p>
  385. <h3><b>Protected LDAP servers</b></h3>
  386. <p>
  387. Some LDAP servers do not support anonymous use of the directory services.<br />
  388. In this case, you should fill in the appropriate fields in the
  389. administration panel (e.g. "manager" and "mypassword") and Chamilo will
  390. try to authenticate using these, or fall back to anonymous mode before
  391. giving up.</p>
  392. <h3>LDAP import into sessions</h3>
  393. <p>There is a new set of scripts now that allow you to insert users
  394. from LDAP directly into a Chamilo session. This, however, relies on a
  395. set of static choices in the LDAP contact attributes.<br />
  396. The fields used intensively by the Chamlio module are:<br />
  397. </p>
  398. <ul>
  399. <li>uid, which is matched to the username in Chamilo</li>
  400. <li>userPassword, which is matched to the user password, although
  401. this part will only work for non-encrypted passwords for now, but it
  402. shouldn't be necessary if using the LDAP server as authentication</li>
  403. <li>ou should end with the year of the person registration or any
  404. criteria you will use to filter users, so that they can be retrieved on
  405. that criteria</li>
  406. <li>sn is used as the lastname field in Chamilo</li>
  407. <li>givenName is used as the firstname field in Chamilo</li>
  408. <li>mail is used as the email field in Chamilo</li>
  409. </ul>
  410. <hr style="width: 100%; height: 2px;" />
  411. <h2><a name="9._WIRIS_mathematical_formulas"></a>Mathematical formulas with WIRIS</h2>
  412. <p>Installing this plugin you get WIRIS editor and WIRIS CAS. <br/>
  413. This activation will not be completed unless you have previously downloaded the <a href="http://www.wiris.com/plugins/editors/download?filter=fckeditor" target="_blank">PHP plugin for FCKeditor WIRIS</a> and unzipped its contents into the main/inc/lib/fckeditor/editor/plugins/fckeditor_wiris/ directory. <br/>This is necessary because Wiris is proprietary software and its services are <a href="http://www.wiris.com/store/who-pays" target="_blank">commercial</a>. To make adjustments to the plugin, edit configuration.ini file or replace his content by configuration.ini.default Chamilo file.</p>
  414. <hr style="width: 100%; height: 2px;" />
  415. <h2><a name="10._Xapian_fulltext_indexing"></a>Full-text indexation with Xapian</h2>
  416. <p>
  417. <em>Note</em>: This step will require a dedicated server or a virtual dedicated server as the packages involved are not available on most shared hosting solutions.<br />
  418. On Debian or Ubuntu 10.04 and superior, you will simply need to install the php5-xapian package and restart your web server:
  419. <pre>
  420. sudo apt-get install php5-xapian
  421. sudo /etc/init.d/apache2 restart
  422. </pre>
  423. Then go to your administration page -&gt; Configuration settings -&gt; Search
  424. and enable the search tool. Follow the recommendations on the page to get the
  425. complete indexing suite installed. Once you're done, all documents you import
  426. into your Chamilo portal in a recognized format will be indexed and searchable.
  427. Chamilo intermediate Administrators training (which you can ask any <a href="http://www.chamilo.org/en/providers">Chamilo's Official Provider</a> for) include a full review of the full-text search feature.</p>
  428. <p class="text-muted">
  429. Note: Xapian's licensing for the PHP extension is a bit different than what is necessary to enter the Debian repositories, so it has been excluded. You can, however, generate your own package by following the <a href="http://trac.xapian.org/wiki/FAQ/PHP%20Bindings%20Package">packaging instructions on Xapian's wiki</a>.
  430. </p>
  431. <hr style="width: 100%; height: 2px;" />
  432. <h2><a name="11._Chamilo_rapid_ppt_conversion"></a>Chamilo Rapid - PPT conversion system</h2>
  433. <p>
  434. <em>Note</em>: This step will require a dedicated server or a virtual dedicated server as the packages involved are not available on most shared hosting solutions.<br />
  435. On Debian or Ubuntu 11.10 and superior, install LibreOffice v3 (or v4) and start it as a headless server:
  436. <pre>
  437. sudo apt-get install libreoffice screen
  438. sudo screen
  439. su - www-data
  440. soffice --accept="socket,host=127.0.0.1,port=2002,tcpNoDelay=1;urp;" --headless --nodefault --nofirststartwizard --nolockcheck --nologo --norestore
  441. CTRL+a, CTRL+d
  442. </pre>
  443. Please note that this will effectively launch LibreOffice in a "headless" mode (thanks to the --headless option), in a "headless" terminal (thanks to screen). You can later get back into your "headless" terminal by launching:
  444. <pre>
  445. sudo screen -r
  446. </pre>
  447. You can then go to your administration page -&gt; <i>Chamilo Rapid</i> and set the host to "localhost" and the port to "2002". Save. Go to your course, learning path tool and see the new icon appeared. Import your PPT. This should work.
  448. <em>Note</em>: Sometimes, this doesn't work out so easily. You can probably ask for the assistance of any system administrator around with a bit of Java and PHP experience, or you can always ask one of the Chamilo's Official Providers for assistance (ask for a guaranteed commercial contract). The above is *not* meant for production servers with a high load. You should get a real system administrator to look at it and develop init scripts, in a way that makes monitoring and relaunching feasable. If any sysadmin wants to contribute this, feel free to contribute it to Chamilo: send us an e-mail at info@chamilo.org.
  449. <em>Note</em>: If you use LibreOffice 4, please note that version 4.2 (available in Ubuntu 14.04) has demonstrated to be more successfull at converting documents than version 4.1, which tended to crash when sending a document for conversion.
  450. </p>
  451. <hr style="width: 100%; height: 2px;" />
  452. <h2><a name="12._Setting_cron_up"></a>Setting chronological tasks</h2>
  453. <p>
  454. Since Chamilo 1.8.8, a few tasks need to be executed regularly in order to get
  455. the best out of your server resources. One of such tasks (and the only one
  456. around at the time of Chamilo 1.8.8) is the sending of internal messaging
  457. notifications by e-mail, i.e. when you receive an e-mail from another person or
  458. from a group inside the internal messaging system of Chamilo, if all e-mails are
  459. sent immediately, then you might not have the chance to receive them at your
  460. pace, once a day or even once a week. For cases like this you, as a Chamilo
  461. administrator, should setup a cron process on the server to check the queue of
  462. e-mails and send is timely.</p>
  463. <p>
  464. Setting up a cron task is easy and there are several ways to do it. We recommend
  465. you have a look at the <a href="http://drupal.org/cron">Drupal documentation
  466. for setting up cron</a> and define your own cron process as:
  467. <pre>
  468. 35 * * * * wget -O - -q -t 1 http://campus.example.com/main/cron/run.php
  469. </pre>
  470. Make sure you have a look into run.php as maybe you want to change a few
  471. settings there.
  472. </p>
  473. <hr style="width: 100%; height: 2px;" />
  474. <h2><a name="13._Changing_language_names_order"></a>Changing the language's firstname/lastname order</h2>
  475. <p>
  476. As Chamilo becomes more popular and crosses many borders now, it frequently happens that administrators want to re-order the firstname and lastname fields in tables, and also on which field it is sorted first.<br/><br />
  477. This can easily be modified by editing the app/config/configuration.php file, finding the following section, uncommenting the PHP lines and adapting it to your language:<br />
  478. <pre>// Custom name_order_conventions
  479. //$_configuration['name_order_conventions'] = array(
  480. // 'french' => array('format' => 'title last_name first_name', 'sort_by' => 'last_name')
  481. //);</pre><br />
  482. Feel free to change this to<br />
  483. <pre>// Custom name_order_conventions
  484. $_configuration['name_order_conventions'] = array(
  485. 'french' => array('format' => 'first_name last_name', 'sort_by' => 'last_name')
  486. );</pre><br />
  487. for example. The effect should be immediate.
  488. </p>
  489. Please note that, although Chamilo allows you to define its position, the "title" field does not exist at this time, so no need to worry about it.
  490. <hr style="width: 100%; height: 2px;" />
  491. <h2><a name="14._Improving_files_download"></a>Improving files download efficiency</h2>
  492. <p>
  493. File download can be very slow when passing through a PHP script to control permissions. One solution to this
  494. is to use the X-Sendfile header, which depends on a module on the webserver. <a href="http://stackoverflow.com/a/3731639/1406662">Check http://stackoverflow.com/a/3731639/1406662 for more details on implementing Sendfile</a>.
  495. Chamilo LMS 1.9.8 (and following versions) supports the X-Sendfile headers, but requires a specific line of configuration to be
  496. added to configuration.php:
  497. <pre>
  498. $_configuration['enable_x_sendfile_headers'] = true;
  499. </pre>
  500. If you have issues with files taking a long time to download, make sure you reconfigure your webserver and add this line. You should see an notable difference in download time.
  501. </p>
  502. <hr style="width: 100%; height: 2px;" />
  503. <h2><a name="15._Videoconference"></a>Videoconference</h2>
  504. <p>
  505. Chamilo supports the connection to two different videoconference servers: BigBlueButton (versions 0.81 and 0.9) and OpenMeetings.<br />
  506. While BigBlueButton seem easier to install, more clearly documented and more
  507. esthetically finished, some users have manifested that OpenMeetings
  508. consumes less bandwidth, is less restrictive in terms of running environments
  509. and offers more tools and connectors.<br />
  510. The decision is up to you, but in any case you will have to install a
  511. videoconference server separately from the normal Chamilo LMS installation
  512. process.<br />
  513. You will find the <a href="http://docs.bigbluebutton.org/install/install.html">installation guide for BigBlueButton here</a>. Once installed,
  514. issue a "bbb-conf --secret" on the command line to get the parameters to
  515. indicate in the "Videoconference" plugin in Chamilo (platform settings page).<br />
  516. This should make an additional "Videoconference" tool icon appear in every course.<br />
  517. </p>
  518. <hr style="width: 100%; height: 2px;" />
  519. <h2><a name="16._Rewrite"></a>Rewrite</h2>
  520. <p>
  521. Chamilo LMS 1.10 is the first version to require the web server to allow redirections of requests.<br />
  522. For Apache, this is done through enabling the Rewrite module and either allowing overrides (through .htaccess) or adding a specific configuration section to the VirtualHost defined for Apache.<br />
  523. For Nginx, this is done through specific redirection rules in the corresponding virtual host (server clause).<br /><br />
  524. To make sure this isn't too complex for anyone, we recommend a configuration below to help you out in both cases.
  525. Please note that using .htaccess is the easiest way but might affect your server load considerably,
  526. given .htaccess files are interpreted on *every* request, while a configuration block in your VirtualHost
  527. section is compiled at configuration reload time.
  528. <h3>Apache + .htaccess</h3>
  529. <p>
  530. To enable .htaccess on Apache, you just need to check 1 thing: In a &lt;Directory&gt; block of the root folder of Chamilo, ensure the following lines are present:
  531. <pre>
  532. AllowOverride All
  533. Order allow,deny
  534. allow from all
  535. </pre>
  536. or, if you are working with Apache 2.4, that syntax changed a little and looks more like this:
  537. <pre>
  538. AllowOverride All
  539. Require all granted
  540. </pre>
  541. </p>
  542. <h3>Apache RewriteRules</h3>
  543. <pre>
  544. &lt;LocationMatch "/.git*"&gt;
  545. order deny,allow
  546. deny from all
  547. &lt;/LocationMatch&gt;
  548. &lt;Directory ~/.&gt;
  549. AllowOverride None
  550. Options -Indexes
  551. &lt;/Directory&gt;
  552. &lt;Directory "/var/www/chamilo"&gt;
  553. RewriteEngine On
  554. RewriteCond %{QUERY_STRING} ^id=(.*)$
  555. RewriteRule ^([^/.]+)/?$ user.php?$1 [L]
  556. RewriteRule ^certificates/$ certificates/index.php?id=%1 [L]
  557. RewriteRule ^courses/([^/]+)/$ app/course_home/course_home.php?cDir=$1 [QSA,L]
  558. RewriteRule ^courses/([^/]+)/index.php$ main/course_home/course_home.php?cDir=$1 [QSA,L]
  559. RewriteRule ^courses/([^/]+)/document/(.*)$ main/document/download.php?doc_url=/$2&cDir=$1 [QSA,L]
  560. RewriteRule ^courses/([^/]+)/work/(.*)$ main/work/download.php?file=work/$2&cDir=$1 [QSA,L]
  561. RewriteRule ^courses/([^/]+)/upload/(.*)$ main/courses/$1/upload/$2 [QSA,L]
  562. RewriteRule ^courses/([^/]+)/course-pic85x85.png$ main/courses/$1/course-pic85x85.png [QSA,L]
  563. RewriteRule ^courses/([^/]+)/course-pic.png$ app/courses/$1/course-pic.png [QSA,L]
  564. RewriteRule ^session/(\d{1,})/about/?$ main/session/about.php?session_id=$1 [L]
  565. RewriteRule ^badge/(\d{1,})/user/(\d{1,}) main/badge/issued.php?skill=$1&user=$2 [L]
  566. &lt;/Directory&gt;
  567. </pre>
  568. <h3>Nginx</h3>
  569. Nginx doesn't support .htaccess rules, so you have no other option than to apply the following rules (note that your PHP backend configuration may vary).
  570. These are only the redirection rules to be placed inside a server{} block, as other settings might differ from one installation to another.
  571. <pre>
  572. # Add your own "server {" header here with listen, server_name, access_log, error_log, index, root and error_page params
  573. charset utf-8;
  574. location @rewrite{
  575. rewrite ^/courses/([^/]+)/scorm/(.*)$ /main/document/download_scorm.php?doc_url=/$2&cDir=$1 last;
  576. rewrite ^/courses/([^/]+)/document/(.*)$ /main/document/download.php?doc_url=/$2&cDir=$1 last;
  577. rewrite ^/courses/([^/]+)/work/(.*)$ /main/work/download.php?file=work/$2&cDir=$1 last;
  578. rewrite ^/courses/([^/]+)/upload/(.*)$ /app/courses/$1/upload/$2 last;
  579. try_files $uri /index.php;
  580. break;
  581. }
  582. location / {
  583. rewrite ^/courses/([^/]+)/$ /main/course_home/course_home.php?cDir=$1 last;
  584. rewrite ^/courses/([^/]+)/index.php$ /main/course_home/course_home.php?cDir=$1 last;
  585. rewrite ^/badge/(\d+)/user/(\d+)$ /main/badge/issued.php?skill=$1&user=$2 last;
  586. try_files $uri @rewrite;
  587. }
  588. location /main {
  589. rewrite ^/main/admin/$ /main/admin/index.php last;
  590. }
  591. location ~ \.php$ {
  592. client_max_body_size 20M;
  593. try_files $uri /index.php$is_args$args;
  594. rewrite ^/certificates/$ /certificates/index.php?id=%1 last;
  595. rewrite ^/courses/([^/]+)/$ /main/course_home/course_home.php?cDir=$1 last;
  596. rewrite ^/courses/([^/]+)/index.php$ /main/course_home/course_home.php?cDir=$1 last;
  597. rewrite ^/session/([^/]+)/about/?$ /main/session/about.php?session_id=$1 last;
  598. fastcgi_pass unix:/var/run/php5-fpm.sock;
  599. fastcgi_split_path_info ^(.+\.php)(/.*)$;
  600. include fastcgi_params;
  601. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  602. fastcgi_param HTTPS off;
  603. }
  604. # Serve static files directly
  605. location ~* \.(png|jpe?g|gif|ico)$ {
  606. expires 1y;
  607. access_log off;
  608. rewrite ^/courses/([^/]+)/course-pic85x85.png$ /app/courses/$1/course-pic85x85.png last;
  609. rewrite ^/courses/([^/]+)/course-pic.png$ /app/courses/$1/course-pic.png last;
  610. rewrite ^/courses/([^/]+)/scorm/(.*)$ /main/document/download_scorm.php?doc_url=/$2&cDir=$1 last;
  611. rewrite ^/courses/([^/]+)/document/(.*)$ /main/document/download.php?doc_url=/$2&cDir=$1 last;
  612. rewrite ^/courses/([^/]+)/work/(.*)$ /main/work/download.php?file=work/$2&cDir=$1 last;
  613. rewrite ^/courses/([^/]+)/upload/(.*)$ /app/courses/$1/upload/$2 last;
  614. try_files $uri @rewrite;
  615. }
  616. location ~ ~\.(ht|git){
  617. deny all;
  618. }
  619. location ^~ /tests/ {
  620. deny all;
  621. }
  622. </pre>
  623. <h3>Apple on OS X servers</h3>
  624. <p>
  625. Scott Steven reports that Apache on OS X requires specific actions<br />
  626. <ul>
  627. <li>First, make sure you have the .htaccess file present at the root of your Chamilo folder</li>
  628. <li>Get to your Apache"s HTTPd.conf file and configure your domain and the fact that mod_rewrite is loaded</li>
  629. <li>In your Apple Server app, Advanced Settings, check the box to allow .htaccess</li>
  630. </ul>
  631. Alternatively, you can find the settings file for your domain in Apple's settings folder under
  632. /Library/Server/Web/Settings to update it manually.<br />
  633. You cannot, however, only allow .htaccess files in the main httpd.conf file, as OS X will override it with the
  634. domain-specific configuration file.
  635. </p>
  636. <hr style="width: 100%; height: 2px;" />
  637. <hr style="width: 100%; height: 2px;" />
  638. <h2><a name="17._Git_Upgrade"></a>Upgrading from Git</h2>
  639. <p>If you have sufficient experience with Git and have installed your initial Chamilo portal
  640. from the Git version, you might want to upgrade from 1.9.x to 1.10.x using Git directly.<br />
  641. Here are a few tips that might help you:<br />
  642. <ul>
  643. <li>Get into your Chamilo Git repository</li>
  644. <li>Make sure you have no additional elements that were not commited (git status/git stash)</li>
  645. <li>If you have issues, you can always save your code somewhere else and ask Git to put you exactly at the most recent 1.9.x stage ("git pull"/"git reset --hard origin/1.9.x")</li>
  646. <li>Once you're sure you have a "clean" local Chamilo repository, create a 1.10.x branch with "git checkout -b 1.10.x"</li>
  647. <li>In the new branch, download all code from the 1.10.x branch upstream: "git pull origin 1.10.x"</li>
  648. <li>If you never used composer or used it only a few times in the past, you might need to update it (rm -rf ~/.composer/vendor; composer global require "fxp/composer-asset-plugin:1.0.3"; composer clear-cache) before trying the following command</li>
  649. <li>Update composer: "composer update" (you might need to give a Github token here)</li>
  650. <li>Change permissions on folders app, web, main/lang and main/default_course_document/images</li>
  651. <li>Go to your portal install page (main/install/) and follow the upgrade procedure</li>
  652. </ul></p>
  653. <p>
  654. <br />
  655. <br />
  656. Contact address<br />
  657. Mail: info@chamilo.org<br />
  658. <br />
  659. </p>
  660. <hr />
  661. </div>
  662. <hr />
  663. <a href="http://validator.w3.org/check?uri=referer"><img src="//www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Transitional" style="margin: 1em; float: right;" height="31" width="88" /></a>
  664. <a href="http://jigsaw.w3.org/css-validator/">
  665. <img src="//jigsaw.w3.org/css-validator/images/vcss-blue" style="margin: 1em; float: right;" alt="Valid CSS" />
  666. </a>
  667. </body>
  668. </html>