You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the official Chamilo installation guide for version 2+.
12
12
</p>
13
-
<h2>Requirements</h2>
13
+
<h2>1. Requirements</h2>
14
14
<aid="requirements" class="anchor"></a>
15
15
16
16
This version of Chamilo requires the following software stack.
@@ -44,22 +44,22 @@ <h2>Requirements</h2>
44
44
<li>redis (optional)</li>
45
45
<li>xapian (optional)</li>
46
46
</ul>
47
-
<h2>Web-panel installation</h2>
47
+
<h2>2. Web-panel installation</h2>
48
48
<aid="web-install" class="anchor"></a>
49
-
<h3>Database</h3>
49
+
<h3>2.1. Database</h3>
50
50
<aid="web-install-db" class="anchor"></a>
51
51
52
52
Make sure you have a database available with full permissions.<br>
53
53
Do not share that database with another application as Chamilo might need to create
54
54
a table that has the same name as a table in the other application.
55
55
56
-
<h3>Virtual host</h3>
56
+
<h3>2.2. Virtual host</h3>
57
57
<aid="web-install-vhost" class="anchor"></a>
58
58
Define a new virtual host/subdomain name you will use for Chamilo (Chamilo 2 does *not* work as a sub-folder of an existing website, you need a subdomain like "elearning.yourdomain.com").<br>
59
59
Upload and/or unzip your Chamilo files inside your web folder (usually inside a folder called "public_html/").<br>
60
60
Configure a virtual host pointing at the "public" directory inside your Chamilo directory. For example, this could be "/home/elearning.yourdomain.com/public_html/chamilo2/public/".<br>
You are ready to go. Open your browser on your subdomain (elearning.yourdomain.com in the example above), keep your database credentials at hand, and let the Chamilo installer guide you.
95
95
96
-
<h3>Sessions and Redis</h3>
96
+
<h3>2.6. Sessions and Redis</h3>
97
97
<aid="web-install-sessions" class="anchor"></a>
98
98
In this beta version, there are known issues with sessions not getting updated fast enough, which can be solved (temporarily) by using a Redis server. Check the command line instructions for more about this. This is a temporary situation that we expect to fix before the stable release.
99
99
100
-
<h2>Command line installation</h2>
100
+
<h2>3. Command line installation</h2>
101
101
<aid="cli-install" class="anchor"></a>
102
102
103
-
<h3>Software stack</h3>
103
+
<h3>3.1. Software stack</h3>
104
104
<aid="cli-install-stack" class="anchor"></a>
105
-
106
105
<p>Assuming you are using a dedicated Ubuntu 24.04 LTS, these commands should help you have the software stack installed in a breeze. Otherwise, please review the requirements above and make sure they are met before moving on to the next section.</p>
107
106
<pre>
108
107
sudo -s
@@ -124,9 +123,8 @@ <h3>Software stack</h3>
124
123
# give a MariaDB root password twice and answer the default "Y" to anything else. The root password is *not* the one you gave above here.
125
124
</pre>
126
125
127
-
<h3>Database</h3>
126
+
<h3>3.2. Database</h3>
128
127
<aid="cli-install-db" class="anchor"></a>
129
-
130
128
<p>You will need a database user with privilege to fully use (and optionally create) a database.<br>
131
129
Although progress has been made to support multiple database management systems, Chamilo
132
130
currently only supports MariaDB and MySQL.<br>
@@ -143,7 +141,7 @@ <h3>Database</h3>
143
141
<li>[db-host] is the name of the database server (use <em>localhost</em> when using the same machine for web server and database server - if you use a hosted service, your hosting provider will usually give you this name somewhere)</li>
144
142
<li>[db-password] is the password this user will use to connect to this database on this host. Use common sense to not make it too easy to guess (use special characters, lowercase and uppercase, numbers, and a length of *at least* 8 characters)</li>
145
143
</ul>
146
-
<h3>Web server</h3>
144
+
<h3>3.3. Web server</h3>
147
145
<aid="cli-install-httpd" class="anchor"></a>
148
146
Chamilo 2+ only requires a working web server setup to work. You can run it on localhost with the default installation of any web server, provided you configure your DocumentRoot as the path pointing to Chamilo's <em>public/</em> subfolder.<br>
149
147
Here is an example Apache vhost configuration file for an installation on the http://my.chamilo.local/ URL (replace all values between brackets, including the brackets, to your custom values).<br>
Make sure the following files and folders are writeable by the web server. Set permissions to 0770 for example:
185
183
<ul>
@@ -194,74 +192,73 @@ <h3>Files permissions</h3>
194
192
195
193
Both .env and config/ should be changed back to less permissive permissions after the installation is over.
196
194
197
-
<h3>PHP settings</h3>
195
+
<h3>3.5. PHP settings</h3>
198
196
<aid="cli-install-php" class="anchor"></a>
199
197
Some PHP settings are recommended, but the default values should be enough to get you started.<br>
200
198
See vhost config's "php_value" section above for details.
201
199
202
-
<h3>Installation wizard</h3>
200
+
<h3>3.6. Installation wizard</h3>
203
201
<aid="cli-install-wizard" class="anchor"></a>
204
202
You should now be able to direct your browser to your URL (e.g. <em>[http://my.chamilo.local]</em>).<br>
205
203
Chamilo will pick it up from there and offer the installation wizard to help guide you through the rest of the process.
206
204
207
-
<h2>Command line upgrade from 1.11.*</h2>
205
+
<h2>4. Command line upgrade from 1.11.*</h2>
208
206
<aid="cli-upgrade" class="anchor"></a>
209
-
210
-
<h3>Database</h3>
207
+
<h3>4.1. Database</h3>
211
208
<aid="cli-upgrade-db" class="anchor"></a>
212
209
Before you start, it is *critical* to delete the <em>version</em> table from your Chamilo 1.11.* database.
213
210
Failure to do this will make the command line upgrade fail immediately after starting.
214
211
The <em>version</em> table is not necessary for Chamilo 1.11.* to work, so don't leave it there.
215
212
216
-
<h3>Files</h3>
213
+
<h3>4.2. Files</h3>
217
214
<aid="cli-upgrade-files" class="anchor"></a>
218
215
The files from Chamilo 1.11.* will be used as source but they will be copied and rearranged
219
216
in the new Chamilo 2 installation, so you will have to indicate a source for the files to the (web or CLI) installer.<br>
220
217
Note the extra pages created in 1.11.x and stored under app/home/ are *not* migrated. They will need to be created again in Chamilo 2 using the "pages" feature.
221
218
222
-
<h3>PHP settings</h3>
219
+
<h3>4.3. PHP settings</h3>
223
220
<aid="cli-upgrade-php" class="anchor"></a>
224
221
Make sure no setting is in the way of a command line upgrade.
225
222
Limits such as memory_limit or max_execution_time should be
226
223
vastly increased for the time of the upgrade.
227
224
228
-
<h3>E-mail settings</h3>
225
+
<h3>4.4. E-mail settings</h3>
229
226
<aid="cli-upgrade-email" class="anchor"></a>
230
227
In Chamilo 1.11.*, the e-mail settings were stored in the app/config/mail.conf.php file.<br>
231
228
This is *NOT* the case in Chamilo 2. Instead, the e-mail settings can be configured directly from the
232
229
web panel (Administration > Settings > E-mail).<br>
233
230
Those settings are *NOT* automatically migrated to the new format, so you will have to do it manually in the new, DSN, format. See settings page in your admin panel for more details.
234
231
235
-
<h3>Execution</h3>
232
+
<h3>4.5. Execution</h3>
236
233
<aid="cli-upgrade-exec" class="anchor"></a>
237
234
// To be completed
238
235
239
-
<h2>Web panel upgrade from 1.11.*</h2>
236
+
<h2>5. Web panel upgrade from 1.11.*</h2>
240
237
<aid="web-upgrade" class="anchor"></a>
241
238
242
-
<h3>Database, Host, Permissions, Files and PHP settings</h3>
239
+
<h3>5.1. Database, Host, Permissions, Files and PHP settings</h3>
243
240
<aid="web-upgrade-all" class="anchor"></a>
244
241
For all requirements previous to the installation wizard, see the command line upgrade instructions above.
245
242
Note the installation folder for Chamilo 2 will be different from the installation folder from Chamilo 1, as explained in the "Files" section above.
246
243
247
-
<h3>Installation wizard</h3>
244
+
<h3>5.2. Installation wizard</h3>
248
245
<aid="web-upgrade-wizard" class="anchor"></a>
249
246
On step 2 of the installation wizard, make sure you select "Upgrade from a previous version of Chamilo" and click "Continue".<br>
250
247
Follow the wizard to complete the upgrade.<br>
251
248
Please be aware that upgrading your system might take hours or even days, depending on the size and complexity of your database. Refer to the Chamilo forum or to official providers for help.
252
249
253
-
<h2>Installing on Windows</h2>
250
+
<h2>6. Installing on Windows</h2>
254
251
<aid="windows-install" class="anchor"></a>
255
-
<h3>Introduction</h3>
252
+
<h3>6.1. Introduction</h3>
256
253
Although Chamilo does work on Windows, it is not officially supported due to the fact that
257
254
we have limited testing capabilities for this operating system. The following instructions have been
258
255
tested on a Windows 11 (desktop) machine with the WAMP application.
259
256
We do not recommend using Windows for production environments.
260
257
261
-
<h3>Installation for validation or production</h3>
258
+
<h3>6.2. Installation for validation or production</h3>
262
259
<aid="windows-install-env" class="anchor"></a>
263
260
264
-
<h4>WampServer</h4>
261
+
<h4>6.2.1. WampServer</h4>
265
262
<aid="windows-install-wamp" class="anchor"></a>
266
263
<ahref="https://www.wampserver.com/">Download</a> and install WampServer (accept default options if in doubt).<br>
267
264
Restart WampServer to make these changes effective.<br>
@@ -287,9 +284,9 @@ <h4>WampServer</h4>
287
284
Note: If you use your Windows machine for development, you might
288
285
get errors related to VisualC++. The error itself will point to
289
286
wampserver.aviatechno.net, which seem to be a valid source to download a VisualC++ patch.
290
-
We do not take responsibility about software from other sources. Do your own research.
287
+
We do not take responsibility about software from other sources. Do your own research.<br><br>
291
288
292
-
<h4>Database</h4>
289
+
<h4>6.2.2. Database</h4>
293
290
<aid="windows-install-db" class="anchor"></a>
294
291
Click on the WampServer icon in the status bar (bottom right) and select PhpMyAdmin.<br>
295
292
Choose the MariaDB service and connect to the root user. Enter the root password you set during WampServer installation (probably still empty).<br></br>
@@ -298,17 +295,17 @@ <h4>Database</h4>
298
295
We recommend setting a proper user and password for that specific database,
299
296
but the root account should also be secured with a different password
300
297
if you plan to expose this to the internet.<br>
301
-
Click "Create".<br>
298
+
Click "Create".<br><br>
302
299
303
-
<h4>Chamilo</h4>
300
+
<h4>6.2.3. Chamilo</h4>
304
301
<aid="windows-install-files" class="anchor"></a>
305
302
Download the latest install-ready package available for version 2
306
303
from <ahref="https://github.com/chamilo/chamilo-lms/releases">https://github.com/chamilo/chamilo-lms/releases</a>.<br>
307
304
Unzip the package in C:\wamp64\www\chamilo2.<br>
308
305
Create a ".env" file at the root of the chamilo2 folder (C:\wamp64\www\chamilo2\.env).<br>
309
-
If this is not a stable version package, edit the ".env.dist" file and set APP_ENV to "prod".<br>
306
+
If this is not a stable version package, edit the ".env.dist" file and set APP_ENV to "prod".<br><br>
310
307
311
-
<h4>Apache</h4>
308
+
<h4>6.2.4. Apache</h4>
312
309
<aid="windows-install-apache" class="anchor"></a>
313
310
Open the Apache configuration file at C:\wamp64\bin\apache\apache2.4.*\conf\extra\httpd-vhosts.conf.<br>
314
311
Modify the contents of the file to something like this:<br>
@@ -324,7 +321,7 @@ <h4>Apache</h4>
324
321
</VirtualHost>
325
322
</pre>
326
323
327
-
<h4>Installation wizard</h4>
324
+
<h4>6.2.5. Installation wizard</h4>
328
325
<aid="windows-install-wizard" class="anchor"></a>
329
326
Open your browser on <ahref="http://chamilo.local/">http://chamilo2.local</a>. The installation wizard should appear.<br>
330
327
Follow the instructions to complete the installation.<br>
Open your browser on <ahref="http://chamilo.local/">http://chamilo2.local</a>. The installation wizard should appear.<br>
395
392
Follow the instructions to complete the installation.<br>
396
393
397
394
Note that it is difficult to change URLs later, so if you plan to publish this service online, make sure you have properly configured your domain name first.
398
395
399
-
<h3>Redis</h3>
396
+
<h3>6.4. Redis</h3>
400
397
<aid="windows-install-redis" class="anchor"></a>
401
398
For better performance in the highly dynamic interfaces of Chamilo, you might
402
399
want to install the PHP Redis extension from the official PHP website, for example (adapt PHP and Redis version numbers)
@@ -433,7 +430,28 @@ <h3>Redis</h3>
433
430
434
431
Restart the WampServer and you should be able to access Chamilo.
435
432
436
-
<h2>Help available</h2>
433
+
<h2>7. Xapian text indexation</h2>
434
+
435
+
Xapian allows you to index texts and documents in Chamilo and search them using a full-text search engine.<br>
436
+
However, installing Xapian is not trivial and requires a few manual steps.<br>
437
+
This is probably not supported for Windows setups (untested), but it should work on Linux and macOS.<br>
438
+
To install Xapian (a requirement to use the internal search engine), follow the instructions below.<br>
# use 1.4.25 because this matches the version of the libxapian-dev package on Ubuntu 25.04
444
+
tar -xJf xapian-bindings-1.4.25.tar.xz
445
+
cd xapian-bindings-1.4.25
446
+
./configure
447
+
make install
448
+
</pre>
449
+
This should make the Xapian extension available from Chamilo.<br>
450
+
Next, go to Settings -> Search -> Enable, and follow the instructions there.<br>
451
+
Once this is done, a checkbox will appear in several tools when uploading, creating or editing different elements, to ask you wether to index these or not.<br>
452
+
Finally, a search box appears in the "My courses" page, allowing you to search for content through the whole platform.<br>
453
+
454
+
<h2>8. Help available</h2>
437
455
<aid="install-help-channels" class="anchor"></a>
438
456
If you are struggling with this guide, don't hesitate to ask for help on
439
457
<ahref="https://github.com/chamilo/chamilo-lms/discussions">our community forum.</a><br>
0 commit comments