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
Copy file name to clipboardExpand all lines: public/documentation/installation_guide.html
+23-2Lines changed: 23 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -436,15 +436,36 @@ <h4>6.4.3. IIS, CGI and PHP</h4>
436
436
This might require (depending on your setup) to install the VC++ libraries in version 14, which come from VStudio v16 (between others). If you don't have them yet on the Windows Server, you can download them from here depending on your architecture: <ahref="https://aka.ms/vs/16/release/VC_redist.x64.exe">x64</a> or <ahref="https://aka.ms/vs/16/release/VC_redist.x86.exe">x86</a>.<br>
437
437
Add PHP to the PATH environment variable (e.g. C:\php): Settings > System > About > Advanced system settings > Environment variables, then select "Path", click "Modify", click "New" and introduce "C:\PHP", then validate twice.<br>
438
438
In the IIS manager window, when the server is selected and you click on the Mappings manager, click on the "Add module mapping..." in the right panel and make sure request path "*.php" is mapped to the FastCgiModule. If not, add it.<br>
439
-
Find the C:\php\php.ini file (or any other place you might have given the PHP installer script to register to) and set (or wait for the install wizard to tell you) the settings suggested by Chamilo's install wizard. Between others, make sure the opcache section has <em>opcache.enable=1</em> *and* <em>opcache.memory_consumption=256</em> or any higher value so that OpCache can be used. Otherwise it is present but not used. Save the file.<br>
439
+
Find the C:\php\php.ini file (or any other place you might have given the PHP installer script to register to).<br>
440
+
Enable the following PHP extensions (look for ";extension=" and remove the ";" from the beginning of the line):<br>
441
+
<ul>
442
+
<li>curl</li>
443
+
<li>exif</li>
444
+
<li>fileinfo</li>
445
+
<li>gd</li>
446
+
<li>intl</li>
447
+
<li>json</li>
448
+
<li>mbstring</li>
449
+
<li>opcache</li>
450
+
<li>openssl</li>
451
+
<li>pdo_mysql</li>
452
+
<li>opcache</li>
453
+
<li>sodium</li>
454
+
<li>zip</li>
455
+
<li>ldap</li>
456
+
<li>redis (optional)</li>
457
+
</ul>
458
+
Make sure the <em>[opcache]</em> section has <em>opcache.enable=1</em> *and* <em>opcache.memory_consumption=256</em> or any higher value so that OpCache can be used. Otherwise it is present but not used. Save the file.<br>
459
+
Set (or wait for the install wizard to tell you) the settings suggested by Chamilo's install wizard.<br>
Once you have installed IIS, the URL Rewrite module and PHP, you can download Chamilo from the official downloads page (https://github.com/chamilo/chamilo-lms/releases).<br>
444
464
Unzip the package in the "wwwroot" folder of your IIS installation (e.g. C:\inetpub\wwwroot).<br>
445
465
Chamilo 2+ need you to configure the web server so the root path is the "public/" folder of Chamilo.<br>
446
466
Create an empty ".env" file at the root of the chamilo folder (e.g. C:\inetpub\wwwroot\chamilo\.env).<br>
447
467
Change permissions so the web server user is able to write to var/, config/ and .env during the installation. These permissions can be removed later on, to the exception of var/ which has to remain writable by the webserver. These permissions need to be set in a way that the owner of the IIS service (possibly "System" or "IIS_IUSRS") can read and write to those files and folders, otherwise the installation script (which needs to write some files) will not be able to proceed.<br>
468
+
This is a specific change for IIS: edit the config\packages\monolog.yaml file and change all <em>path: php://stderr</em> for <em>path: "%kernel.logs_dir%/%kernel.environment%.log"</em> . This is due to an issue with file management for PHP on Windows with Symfony. Please note that until we find a portable solution, this will need to be modified again after each Chamilo update.<br>
448
469
After this, load the URL in your browser, as you have defined it in the ISS site configuration.<br>
449
470
The Chamilo installation wizard should appear.<br>
450
471
Follow the instructions to complete the installation.<br>
0 commit comments