On my VPS in Custombuild I changed php1_release from mod_php to php-fpm, version 5.6.
I have some sites where the following 2 lines in htaccess were working perfectly to get html parsed as php, when I had mod_php:
Since I switched to php-fpm, this is not working anymore, pages are getting downloaded.
After googling around, I tried lots of variations, for example:
Which has the same problem.
And:
Which gives an Access denied.
Does somebody know how to get this working with php-fpm?
Thanks.
I have some sites where the following 2 lines in htaccess were working perfectly to get html parsed as php, when I had mod_php:
Code:
AddHandler application/x-httpd-php .htm .html
AddType application/x-httpd-php .htm .html
Since I switched to php-fpm, this is not working anymore, pages are getting downloaded.
After googling around, I tried lots of variations, for example:
Code:
AddHandler application/x-httpd-php56 .html .htm
AddType application/x-httpd-php56 .html .htm
Which has the same problem.
And:
Code:
<FilesMatch "\.(inc|php|phtml|phps|php56|htm|html)$">
AddHandler "proxy:unix:/usr/local/php56/sockets/*myusername*.sock|fcgi://localhost" .inc .php .phtml .php56 .html .htm
</FilesMatch>
Which gives an Access denied.
Does somebody know how to get this working with php-fpm?
Thanks.