4
edits
m (Ajout de la configuration pour les versions php >7) |
m (erreur de mise en forme -- ou de saisie) |
||
| 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"> | *<syntaxhighlight lang="apacheconf"> | ||
LoadModule php7_module "c:/php/php7apache2_4.dll" | LoadModule php7_module "c:/php/php7apache2_4.dll" | ||
AddType application/x-httpd-php .php | AddType application/x-httpd-php .php | ||
| Line 222: | Line 222: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* | *From PHP 8.0: | ||
<syntaxhighlight lang="apacheconf"> | <syntaxhighlight lang="apacheconf"> | ||
| Line 233: | Line 229: | ||
PHPIniDir "C:/php" | PHPIniDir "C:/php" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<nowiki>#</nowiki> FromPHP 8.0.0 | <nowiki>#</nowiki> FromPHP 8.0.0 | ||
LoadModule php_module "c:/php/php8apache2_4.dll" | LoadModule php_module "c:/php/php8apache2_4.dll" | ||
| Line 245: | Line 242: | ||
PHPIniDir "C:/php"> | 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" | ||
edits