fix conf (mod_php not built / used)
(cherry picked from commit74e575ddb5
) (cherry picked from commit37182d26c7
)
This commit is contained in:
parent
f2da396b5c
commit
fc92ff75e9
6
php.conf
6
php.conf
|
@ -19,8 +19,7 @@ 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
|
||||
|
||||
|
@ -28,7 +27,6 @@ DirectoryIndex index.php
|
|||
SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
|
||||
#
|
||||
# mod_php is deprecated as FPM is now used by default with httpd in event mode
|
||||
|
@ -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.
|
||||
#
|
||||
|
|
|
@ -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 !mod_php7.c>
|
||||
<IfModule prefork.c>
|
||||
LoadModule php7_module modules/libphp7.so
|
||||
LoadModule php_module modules/libphp.so
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
|
||||
|
|
Loading…
Reference in New Issue