php5+apache2 worker MPM遇到的问题
时间:2014-06-26 01:28 来源:linux.it.net.cn 作者:IT网
PHP5不建议和Apache的 worker MPM搭配使用,但之前就是用PHP 5.2.6 + Apache 2.2.4 worker MPM来跑服务。
重编译PHP之后apache报错:Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP. Pre-configuration failed!
参照网上介绍,把--with-experimental-zts 参数以及 --enable-maintainer-zts参数统统试了一遍,结果编译PHP时无法通过,只有改成使用prefork MPM。
最后发现是因为重编PHP时加了--with-openssl把openssl模块加进去了,去掉后就可以正常与worker MPM搭配了。
特此记录,以供遇到相同问题的朋友参考。
(责任编辑:IT)
PHP5不建议和Apache的 worker MPM搭配使用,但之前就是用PHP 5.2.6 + Apache 2.2.4 worker MPM来跑服务。 重编译PHP之后apache报错:Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP. Pre-configuration failed! 参照网上介绍,把--with-experimental-zts 参数以及 --enable-maintainer-zts参数统统试了一遍,结果编译PHP时无法通过,只有改成使用prefork MPM。 最后发现是因为重编PHP时加了--with-openssl把openssl模块加进去了,去掉后就可以正常与worker MPM搭配了。 特此记录,以供遇到相同问题的朋友参考。 (责任编辑:IT) |