加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

windows-server-2008 – 所有PHP站点都停止在IIS7上工作,内部服

发布时间:2020-12-14 00:39:48 所属栏目:Windows 来源:网络整理
导读:我在 Windows Server 2008上使用Web平台安装程序安装了多个drupal 7站点. 直到知道他们没有任何问题,但最近内部服务器错误500开始显示(每当这么多的请求),现在它发生在任何php站点的所有请求. 没有太多的细节可以继续,在它工作的时间和现在之间没有任何改变(
我在 Windows Server 2008上使用Web平台安装程序安装了多个drupal 7站点.

直到知道他们没有任何问题,但最近内部服务器错误500开始显示(每当这么多的请求),现在它发生在任何php站点的所有请求.

没有太多的细节可以继续,在它工作的时间和现在之间没有任何改变(无论如何我都不知道)

日志文件充斥着诸如的消息

[09-Aug-2011 09:08:04] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261904 bytes) in Unknown on line 0
[09-Aug-2011 09:08:16] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261904 bytes) in Unknown on line 0
[09-Aug-2011 09:08:16] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261904 bytes) in Unknown on line 0
[09-Aug-2011 09:08:20] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261904 bytes) in Unknown on line 0
[09-Aug-2011 09:08:22] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261904 bytes) in Unknown on line 0
[09-Aug-2011 09:08:51] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261904 bytes) in Unknown on line 0
[09-Aug-2011 09:09:56] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261904 bytes) in Unknown on line 0
[09-Aug-2011 09:09:57] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261904 bytes) in Unknown on line 0
[09-Aug-2011 09:12:13] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261904 bytes) in Unknown on line 0
[09-Aug-2011 09:15:09] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261904 bytes) in Unknown on line 0
[09-Aug-2011 09:15:09] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261904 bytes) in Unknown on line 0
[09-Aug-2011 09:21:28] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261904 bytes) in Unknown on line 0
[09-Aug-2011 09:21:28] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261904 bytes) in Unknown on line 0

我试过增加php.ini中的内存限制:

memory_limit = 512MB

但这似乎也没有解决问题.

这是在IIS中的全局php配置
当我逐个查看网站时,我注意到PHP似乎已被禁用.

PHP is not enabled. Register new PHP version to enable PHP via FastCGI

所以我试着再次注册php版本

C:Program FilesPHPv5.3php-cgi.exe

但是当我尝试应用我得到的更改时

There was an error while performing this operation
Details: Operation is not valid due to the current state of the object

似乎没有任何其他信息.
我不知道为什么突然之间的php不再适用于这些网站了.

PS:我重启了IIS,服务器等……
这个服务器托管在亚马逊S3上,所以我给了服务器更多的功能

更新
这些似乎是两个不同的问题

>我使用memory_limit = 128MB而不是memory_limit = 128M
注意“M”而不是“MB”
> 128M的memory_limit还不够,不得不将其增加到512M

第一个问题导致每个请求的内部服务器错误.

增加到512MB似乎已经解决了一段时间的问题,
但一段时间后服务器错误返回.请注意,IIS内部的PHP管理器仍然显示站点没有可用的PHP(全局配置确实将其视为可用)

所以问题仍然没有解决

您是否可以尝试安装PHP Manager for IIS并查看是否为您的站点正确配置了PHP?

下载在这里,http://phpmanager.codeplex.com/

希望这可以帮助.-标记

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读