Errors from FastCGI on Apache 2.4.10 / Ubuntu 14.10

January 1, 2015 1.6k views

Greetings. I've been receiving several recurring errors in my /apache2/error.log relating to FastCGI, and it makes me think that I must have something misconfigured. On the front-end my site seems to load and function correctly and phpinfo(); shows my Server API as FPM/FastCGI. However, I've still been receiving errors.

The most common error being:

AH00524: Handler for fastcgi-script returned invalid result code 32

I also have a host of errors coming from my WordPress install that are outputting along the lines of:

FastCGI: server "/usr/lib/cgi-bin/php5-fcgi" stderr: PHP message: PHP ........

But I'm a bit less worried about those, as they seem to be coming from specific WordPress plugins and strike me as less likely to be a misconfiguration on my end.

Any ideas about that invalid result code 32, though?

My /etc/apache2/conf-available/php5-fpm.conf looks like:

<IfModule mod_fastcgi.c>
  AddHandler php5-fcgi .php
  Action php5-fcgi /php5-fcgi
  Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
  FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host -pass-header Authorization

  <Directory /usr/lib/cgi-bin>
    Require all granted

Do I need to delete php5-cgi.conf, perhaps? I haven't touched that file. In /etc/php5/fpm/pool.d/www.conf I did set

listen =

and changed my user/group names to the appropriate ones, but didn't change anything else in that file.

What am I missing? Anyone have any ideas?

Thanks in advance.

2 Answers

No ideas? I still haven't been able to figure this out.

Got the same problem.... Anyone has a solution?

Have another answer? Share your knowledge.