Changes

m
Ajout de la configuration pour les versions php >7
Line 210: Line 210:  
*At the very end of the file <code>httpd.conf</code>, skip a line and paste the following block of code to tell '''Apache2''' to interpret the files <code>*.php</code> :
 
*At the very end of the file <code>httpd.conf</code>, skip a line and paste the following block of code to tell '''Apache2''' to interpret the files <code>*.php</code> :
    +
* <syntaxhighlight lang="apacheconf">
 +
LoadModule php7_module "c:/php/php7apache2_4.dll"
 +
AddType application/x-httpd-php .php
 +
PHPIniDir "C:/php"
 +
</syntaxhighlight>
 +
 +
<syntaxhighlight lang="apacheconf">
 +
LoadModule php7_module "c:/php/php7apache2_4.dll"
 +
AddType application/x-httpd-php .php
 +
PHPIniDir "C:/php"
 +
</syntaxhighlight>
 +
 +
* <syntaxhighlight lang="apacheconf">
 +
LoadModule php7_module "c:/php/php7apache2_4.dll"
 +
AddType application/x-httpd-php .php
 +
PHPIniDir "C:/php"
 +
</syntaxhighlight>
 +
 +
<syntaxhighlight lang="apacheconf">
 +
LoadModule php7_module "c:/php/php7apache2_4.dll"
 +
AddType application/x-httpd-php .php
 +
PHPIniDir "C:/php"
 +
</syntaxhighlight>
 +
<nowiki>#</nowiki> FromPHP 8.0.0
 +
LoadModule php_module "c:/php/php8apache2_4.dll"
 +
 +
<FilesMatch \.php$>
 +
 +
   SetHandler application/x-httpd-php
 +
 +
</FilesMatch>
 +
 +
<nowiki>#</nowiki> configure the path to php.ini
 +
 +
PHPIniDir "C:/php">
 
<syntaxhighlight lang="apacheconf">
 
<syntaxhighlight lang="apacheconf">
 
LoadModule php7_module "c:/php/php7apache2_4.dll"
 
LoadModule php7_module "c:/php/php7apache2_4.dll"
Line 216: Line 251:  
</syntaxhighlight>
 
</syntaxhighlight>
   −
*This will tell '''Apache2''' to use the <code>php7_module</code> provided with PHP that we installed earlier to interpret the <code>*.php</code> files.
+
*This will tell '''Apache2''' to use the <code>phpX_module</code> provided with PHP that we installed earlier to interpret the <code>*.php</code> files.
    
*Save the file <code>httpd.conf</code> ('''File''' > '''Save''' or <kbd>Ctrl</kbd> + <kbd>S</kbd>) and close it.
 
*Save the file <code>httpd.conf</code> ('''File''' > '''Save''' or <kbd>Ctrl</kbd> + <kbd>S</kbd>) and close it.
4

edits