Re: PHP-FPM socket disappearing
On Wed, Jun 17, 2015 at 11:30:33PM +0200, Proxy One wrote:
> I installed Jessie on my new server few days ago and moved website that run
> previously on Centos 5. I'm using Apache and PHP-FPM. [...]
> [...]
> <IfModule mod_fastcgi.c>
If you are using jessie, your Apache version is >= 2.4, so you could
ditch fastcgi and use mod_proxy and mod_proxy_fcgi instead:
https://wiki.apache.org/httpd/PHP-FPM
This is my very short recipe for that:
a2enmod proxy
a2enmod proxy_fcgi
Edit /etc/apache2/sites-available/yourdomain.conf and include
something like this:
<FilesMatch \.php$>
SetHandler "proxy:unix:/var/run/php5-fpm.sock|fcgi://localhost/"
</FilesMatch>
DirectoryIndex index.php index.html index.htm
Then "service apache2 restart".
[ It worked for me, but then I switched to nginx shortly after that ].
Reply to: