我遵循的指南:http://www.howtoforge.com/using-php5-fpm-with-apache2-on-ubuntu-11.10-p2
我收到的错误:
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!
有问题的第 45 行:
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /tmp/php5-fpm.sock -pass-header Authorization
我怎样才能解决这个问题?
答案1
您可能已经/usr/lib/cgi-bin/php5-fcgi
在其他地方定义过了。 这只能定义一次,并且您可能希望/etc/apache2/sites/default
按照说明将其放在目录中。您可以通过运行以下命令来查看是否在其他地方定义了它:
grep -RIs "FastCgiExternalServer" /etc/apache2