Home  >  Article  >  Backend Development  >  php保险版本与非安全版本

php保险版本与非安全版本

WBOY
WBOYOriginal
2016-06-13 11:01:111043browse

php安全版本与非安全版本

?

唉···还是自己弄AMP服务时遇到的问题。

?

由于用php5.0.5时,wordpress会有很多问题,所以决定用5.2.17,就去官网下了个windows版本的,与apache连上后apache启动不了了,找了一下原因如下:

?

?

Apache is running a threaded MPM, but your PHP?Module is not compiled to be threadsafe. ?You need to recompile PHP.

?

练看都没看错误,直接Google了好长时间,网上的答案竟然是把apache从prefork模式换成worker模式,但悲催的是我不会···

?

就仔细看了一下错误,意思是:apache现在运行的是线程安全模式,但是你的php没有被编译成线程安全模式。你需要重新编译php。

?

我了个去,不看不知道,竟然是php版本下错了!!

?

下了个nts--no thread safe版本的,悲催的,又从官网上下了个thread safe的,大爷的,好用了。

?

?

?

结论:童鞋们,出现错误时请先认真读一下错误!

?

?

?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn