解决Apache is running a threaded MPM, but your php module is not compiled to be threadsafe.

Posted 伴老思源

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决Apache is running a threaded MPM, but your php module is not compiled to be threadsafe.相关的知识,希望对你有一定的参考价值。

【详细错误】:Apache is running a threaded MPM, but your php module is not compiled to be threadsafe. you need to recompile php. pre-configuration failed.

【造成原因】:服务管理器由IIS更换至Apache,原php版本是无线程安全(nts)的,因此需要将php同时更换为线程安全版本(ts).

【处理办法】:

1.  下载新的php5.2.17 VC6 x86 Thread Safe,更新原php程序.

2. 打开php.ini文件:(添加或打开)

extension_dir = "PHP安装目录\\ext"

default_charset = "gbk" 

extension=php_mysql.dll

3.把php5ts.dll复制到c:\\windows\\system32下.

下面再配置一下Apache的conf文件:

1. 打开apache目录下/conf/httpd.conf文件.

2. 编辑添加新的记录:

LoadModule php5_module "php安装目录/php5apache2_2.dll"
PHPIniDir "php安装目录/php.ini"
AddType application/x-httpd-php .php

3. 再次启动apache,ok启动成功~



以上是关于解决Apache is running a threaded MPM, but your php module is not compiled to be threadsafe.的主要内容,如果未能解决你的问题,请参考以下文章

Java解决执行mvn spring-boot:run报错jar时出错; zip file is empty

Debain update apache error AH00111: Config variable ${APACHE_RUN_DIR} is not defined

Hbase 出现 org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet 错误(示例代码

npm run 导致This is probably not a problem with npm错误的解决方案

hbase报错ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet 采坑

protobuf requires Python ‘>=3.7‘ but the running Python is 3.6.5的解决方法