我在
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
memory_limit = 512MB
但这似乎也没有解决问题.
这是在IIS中的全局PHP配置
当我逐个查看网站时,我注意到PHP似乎已被禁用.
PHP is not enabled. Register new PHP version to enable PHP via FastCGI
C:\Program Files\PHP\v5.3\php-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(全局配置确实将其视为可用)
所以问题仍然没有解决