Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The guide i followed:

The error I am getting:

    root@server:/etc/apache2/sites-enabled# /etc/init.d/apache2 restart
WARNING: MaxClients (10) must be at least as large
 as ThreadsPerChild (25). Automatically
 increasing MaxClients to 25.
Syntax error on line 45 of /etc/apache2/sites-enabled/
FastCgiExternalServer: redefinition of previously defined class "/usr/lib/cgi-bin/php5-fcgi"
Action 'configtest' failed.
The Apache error log may have more information.!

The offending line 45:

FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /tmp/php5-fpm.sock -pass-header Authorization

How can I fix this?

share|improve this question
up vote 2 down vote accepted

Its likely that you've already defined /usr/lib/cgi-bin/php5-fcgi somewhere else. This can only be defined once, and you probably want this in your /etc/apache2/sites/default directory as the instructions indicate. You can see if you're defining it elsewhere by running:

grep -RIs "FastCgiExternalServer" /etc/apache2
share|improve this answer
so do i remove the offending line on other instances? – bran Apr 30 '12 at 22:20
just deleting the line worked. Thanks – bran Apr 30 '12 at 22:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.