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
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
+
Redis is an in-memory non-relational database server that can be used to manage PHP sessions. Under high loads, PHP sessions management can be a bottleneck. Using Redis can considerably alleviate that bottleneck but should not be an issue for low to moderate uses (up to 10 *simultaneous* users or so). Check the command line instructions for more about this.
100
100
101
101
<h3>2.7. Clean up</h3>h3>
102
102
<aid="web-cleanup" class="anchor"></a>
@@ -111,18 +111,22 @@ <h2>3. Command line installation</h2>
111
111
112
112
<h3>3.1. Software stack</h3>
113
113
<aid="cli-install-stack" class="anchor"></a>
114
-
<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>
114
+
<p>
115
+
Assuming you are using a dedicated Ubuntu 24.04 LTS, these commands should help you have the software stack installed in a breeze.
116
+
Otherwise, please review the requirements above and make sure they are met before moving on to the next section.
117
+
Please note Redis is optional. It is included for efficiency reasons for self-managed servers, but can be skipped on shared hosting.
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>
157
161
It includes PHP settings which will only affect this vhost. If you prefer to set those PHP settings in php.ini, you are welcome to do so.<br>
158
162
We also assume you will be using a default Redis installation to manage sessions (see notes in the web panel install section).<br>
163
+
Reminder: Redis is optional. If you don't use it, do not use the lines about "session.save_handler" and "session.save_path" below.<br>
159
164
<pre>
160
165
cd /etc/apache2/sites-available
161
166
vim [my.chamilo.local].conf
@@ -478,7 +483,7 @@ <h3>6.5. Redis</h3>
478
483
want to install the PHP Redis extension from the official PHP website, for example (adapt PHP and Redis version numbers)
Copy file name to clipboardExpand all lines: public/documentation/optimization.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,8 @@ <h2>Avoid dev mode</h2>
23
23
<h2>Sessions</h2>
24
24
Chamilo 2 uses sessions to store user data between requests. Sessions are stored on disk by default.<br>
25
25
In comparison with Chamilo 1, Chamilo 2 uses many micro-service-type calls to retrieve data from the system and repaint parts of the pages as the underlying data changes.<br>
26
-
This has the damaging effect of requiring much more accesses to the session files, which can slow down the system significantly or generate losses of session (the system acting as if you are not logged in).<br>
27
-
To remove this impact, make sure you use a system to store sessions that will have a very small footprint and be able to manage session accesses very quickly (Redis, Memcached, etc.). This is described in the installation guide.
26
+
This has the negative effect of requiring much more accesses to the session files, which can slow down the system significantly or generate losses of session (the system acting as if you are not logged in).<br>
27
+
To remove this impact, make sure you use a system to store sessions that will have a very small footprint and be able to manage session accesses very quickly (Redis is likely the best solution here). This is described in the installation guide.
28
28
29
29
<h2>Database</h2>
30
30
Chamilo 2 uses a database to store most of its data (except for files). This means the database is very commonly used and can be a bottleneck in some cases.<br>
0 commit comments