Question regarding setting up php-fpm + mod_fcgid
Hi , sorry if my issue is not in the list scope.
I've installed in debian stable both:
libapache2-mod-fcgid and php7.0-fpm.
But simple test php file were not served, with no
warnings neither in apache logs neither in php-fpm logs.
Just a white page in my browser.
But then i noticed in 'php7.0-fpm.conf' that Sethandler is set
if there is the proxy_fcgi_module.
So after # a2enmod proxy_fcgi
the php files were server ok.
So , my question is : do i really need the proxy_fcgi ?
Copy of my php7.0-fpm.conf :
# Redirect to local php-fpm if mod_php is not available
<IfModule !mod_php7.c>
<IfModule proxy_fcgi_module>
# Enable http authorization headers
<IfModule setenvif_module>
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
</IfModule>
<FilesMatch ".+\.ph(p[3457]?|t|tml)$">
SetHandler "proxy:unix:/run/php/php7.0-fpm.sock|fcgi://localhost"
</FilesMatch>
<FilesMatch ".+\.phps$">
# Deny access to raw php sources by default
# To re-enable it's recommended to enable access to the files
# only in specific virtual host or directory
Require all denied
</FilesMatch>
# Deny access to files without filename (e.g. '.php')
<FilesMatch "^\.ph(p[3457]?|t|tml|ps)$">
Require all denied
</FilesMatch>
</IfModule>
</IfModule>
# a2enmod proxy_fcgi.load
<FilesMatch ".+\.ph(p[3457]?|t|tml)$">
SetHandler "proxy:unix:/run/php/php7.0-fpm.sock|fcgi://localhost"
</FilesMatch>
Reply to: