手记

问题 php不支持worker工作模式的报错

php不支持worker工作模式的报错


[root@CentOS6-node1 ~]# service httpd stop


[Wed Jun 14 16:25:23 2017] [crit] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP.  Pre-configuration failed


已解决


[root@CentOS6-node1 ~]# cd /usr/local/httpd/conf/


[root@CentOS6-node1 conf]# vim httpd.conf


<IfModule dir_module>


    DirectoryIndex index.html


#index.php


</IfModule>


# Example:


# LoadModule foo_module modules/mod_foo.so


#LoadModule php5_module        modules/libphp5.so


#


#AddType application/x-httpd-php .php


<IfModule !mpm_netware_module>


<IfModule !mpm_winnt_module>


1人推荐
随时随地看视频
慕课网APP