abc5566 发表于 2018-4-8 12:47:53

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... [:crit] 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:06

改后需要重新编译php,可以使用升级脚本对php升级一下就可以
页: [1]
查看完整版本: LNMPA 切换 mpm_worker_module 模式 重启失败 提示 PHP not compiled to be threadsafe