阅读此答案后,我决定将服务器上 httpd 的 MPM 更改为 worker。但是在编辑时/etc/sysconfig/httpd
,我注意到了这条评论:
# The default processing model (MPM) is the process-based
# 'prefork' model. A thread-based model, 'worker', is also
# available, but does not work with some modules (such as PHP).
# The service must be stopped before changing this variable.
#
#HTTPD=/usr/sbin/httpd.worker
Run Code Online (Sandbox Code Playgroud)
我可能解释错了,但它不是告诉我工人不能使用 mod_php 吗?因为这是我目前正在使用的。
服务器运行 CentOS 6.4 和 Apache 2.2。