Re: PHP-FPM socket disappearing
Hi Santiago!
On 2015-Jun-18 00:03, Santiago Vila wrote:
> 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 ].
I just switched to proxy_fcgi and it's working for me too. To be honest,
it was strange to find that libapache2-mod-fastcgi was in non-free
reporistory, but I just shrugged and installed it, as it was the way of
using php-fpm with Apache I used earlier. Good to know I can remove
libapache2-mod-fastcgi now.
Thanks!
Reply to: