Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The guide i followed: http://www.howtoforge.com/using-php5-fpm-with-apache2-on-ubuntu-11.10-p2

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/mysite.net:
FastCgiExternalServer: redefinition of previously defined class "/usr/lib/cgi-bin/php5-fcgi"
Action 'configtest' failed.
The Apache error log may have more information.
   ...fail!

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

1 Answer 1

up vote 0 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

 
discard

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.