最新消息: 新版网站上线了!!!
     

启动apache php提示Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe

安装版本:
apache2.4
php7.0

apache php安装完成之后,启动apache提示错误:Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP.

解决办法:修改httpd.conf
原来配置如下:
#LoadModule mpm_event_module modules/mod_mpm_event.so
#LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
LoadModule mpm_worker_module modules/mod_mpm_worker.so
现在修改为如下:
#LoadModule mpm_event_module modules/mod_mpm_event.so
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
#LoadModule mpm_worker_module modules/mod_mpm_worker.so

转载请注明:谷谷点程序 » 启动apache php提示Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe