标题: LNMPA 切换 mpm_worker_module 模式 重启失败 提示 PHP not compiled to be threadsafe [打印本页] 作者: abc5566 时间: 2018-4-8 12:47 标题: LNMPA 切换 mpm_worker_module 模式 重启失败 提示 PHP not compiled to be threadsafe LNMPA默认是 mpm_prefork_module 切换 mpm_worker_module 后无法重启/usr/local/apache/conf/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
==================================
root@u1645:~# lnmp httpd restart
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://lnmp.org |
+-------------------------------------------+
restart apache... [Sun Apr 08 12:27:59.064110 2018] [:crit] [pid 26670:tid 140047909627648] Apache is running a threaded MPM, but your PHP Modu
le is not compiled to be threadsafe. You need to recompile PHP.
AH00013: Pre-configuration failed作者: licess 时间: 2018-4-8 14:44
改后需要重新编译php,可以使用升级脚本对php升级一下就可以