我遵循的指南: 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
我怎样才能解决这个问题?
很可能你已经在其他地方定义了/usr/lib/cgi-bin/php5-fcgi 。 这只能定义一次 ,你可能需要在你的/etc/apache2/sites/default目录中,如说明所示。 你可以看看你是否在其他地方定义它运行:
grep -RIs "FastCgiExternalServer" /etc/apache2