fix conf (mod_php not built / used)

(cherry picked from commit 74e575ddb5)
This commit is contained in:
Remi Collet 2022-06-09 10:19:29 +02:00
parent 44fd4ef0f2
commit f3afad23d2
2 changed files with 7 additions and 8 deletions

View File

@ -19,15 +19,13 @@ DirectoryIndex index.php
#
# Redirect to local php-fpm (no mod_php in default configuration)
#
<IfModule !mod_php5.c>
<IfModule !mod_php7.c>
<IfModule !mod_php.c>
# Enable http authorization headers
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
<FilesMatch \.(php|phar)$>
SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
</FilesMatch>
</IfModule>
</IfModule>
#
@ -36,7 +34,7 @@ DirectoryIndex index.php
#
# mod_php options
#
<IfModule mod_php7.c>
<IfModule mod_php.c>
#
# Cause the PHP interpreter to handle files with a .php extension.
#

View File

@ -3,10 +3,11 @@
# easy for developers to write dynamically generated webpages.
#
# Cannot load both php5 and php7 modules
# Cannot load both php5, php7 and php modules
<IfModule !mod_php5.c>
<IfModule prefork.c>
LoadModule php7_module modules/libphp7.so
<IfModule !mod_php7.c>
<IfModule prefork.c>
LoadModule php7_module modules/libphp7.so
</IfModule>
</IfModule>
</IfModule>