解决:Apache is running a threaded MPM,but your PHP Modle is not compiled to be threadsafe. You need to recompile PHP.
在启动httpd的服务时报错Apache is running a threaded MPM,but your PHP Modle is not compiled to be threadsafe. You need to recompile PHP.
百度有一些办法是通过重新编译使用参数–with-mpm=prefork,但是在本机测试过并没有解决问题。
参考:https://www.tsingfun.com/html/2017/tech_0307/2201.html
搞了很久,最后发现在httpd.conf中将LoadModule mpm_event_module modules/mod_mpm_event.so注释,添加LoadModule mpm_prefork_module modules/mod_mpm_prefork.so,重新启动httpd服务即可
如下图:
以上经验仅供参考