fix conf (mod_php not built / used)
(cherry picked from commit 74e575ddb5d7c89f4d34633ad33027be7011f3eb)
This commit is contained in:
parent
44fd4ef0f2
commit
f3afad23d2
6
php.conf
6
php.conf
@ -19,15 +19,13 @@ DirectoryIndex index.php
|
|||||||
#
|
#
|
||||||
# Redirect to local php-fpm (no mod_php in default configuration)
|
# Redirect to local php-fpm (no mod_php in default configuration)
|
||||||
#
|
#
|
||||||
<IfModule !mod_php5.c>
|
<IfModule !mod_php.c>
|
||||||
<IfModule !mod_php7.c>
|
|
||||||
# Enable http authorization headers
|
# Enable http authorization headers
|
||||||
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
|
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
|
||||||
|
|
||||||
<FilesMatch \.(php|phar)$>
|
<FilesMatch \.(php|phar)$>
|
||||||
SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
|
SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
</IfModule>
|
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -36,7 +34,7 @@ DirectoryIndex index.php
|
|||||||
#
|
#
|
||||||
# mod_php options
|
# mod_php options
|
||||||
#
|
#
|
||||||
<IfModule mod_php7.c>
|
<IfModule mod_php.c>
|
||||||
#
|
#
|
||||||
# Cause the PHP interpreter to handle files with a .php extension.
|
# Cause the PHP interpreter to handle files with a .php extension.
|
||||||
#
|
#
|
||||||
|
@ -3,10 +3,11 @@
|
|||||||
# easy for developers to write dynamically generated webpages.
|
# 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_php5.c>
|
||||||
<IfModule prefork.c>
|
<IfModule !mod_php7.c>
|
||||||
LoadModule php7_module modules/libphp7.so
|
<IfModule prefork.c>
|
||||||
|
LoadModule php7_module modules/libphp7.so
|
||||||
|
</IfModule>
|
||||||
</IfModule>
|
</IfModule>
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user