Skip to content
Advertisement

FPM with apache2 not working (Permission denied)

I’m trying to set up a debian web server with apache, fastcgi and fpm, but I’m getting exasperate.

As soon as i deactivate mod_php I get following error:

[Thu May 22 12:16:10 2014] [error] [client xxx.xxx.xxx.xxx] (13)Permission denied: FastCGI: failed to connect to server “/usr/lib/cgi-bin/php5-fcgi”: connect() failed, referer: http://…

[Thu May 22 12:16:10 2014] [error] [client xxx.xxx.xxx.xxx] FastCGI: incomplete headers (0 bytes) received from server “/usr/lib/cgi-bin/php5-fcgi”, referer: http://…

File /etc/apache2/conf.d/fastcgi:

JavaScript

File /etc/php5/fpm/pool.d/www.conf:

JavaScript

Do you have any ideas what could be wrong?

Advertisement

Answer

I believe you could do:

JavaScript

*Substitute www-data.www-data with whatever user Apache / PHP-FPM run under.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement