任何导致内部服务器错误的.php文件 [英] Any .php file causing INTERNAL SERVER ERROR

查看:94
本文介绍了任何导致内部服务器错误的.php文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

突然,我服务器上的所有.php文件都导致内部服务器错误.

Suddenly all .php files at my server causes INTERNAL SERVER ERROR.

我不知道它是否相关,但是它是在我更新yum时开始的.

I don't know if it's related, but it started while I was updating yum.

即使空白的.php文件也将导致错误.我已经移走了我所有的网站内容,只尝试了一个空的.php文件,但仍然出现相同的错误.

Even blank .php files will cause the error. I've moved ALL my website content and tryed only a empty .php file and still it gives the same error.

也没有.htaccess文件.

There's no .htaccess files also.

我该怎么办? =/

(同一服务器上的其他站点运行正常)

(Other sites at the same server are working fine)

Apache和php日志似乎没有更新. Apache的最新消息是从今天开始的,但与此问题没有任何关系. PHP的最后一个来自APRIL

Apache and php logs doesn't seem to be updating. Apache's last are from today, but there's nothing related to the issue. PHP's last are from APRIL

更新

我刚刚发现每个域都有自己的Apache日志.

I just found each domain has its own Apache log.

这是这个特定站点中的内容

Here what's in this particular site

[Thu Jul 28 22:04:02 2011] [error] [client 173.245.56.24] Premature end of script headers: cgi_wrapper
[Thu Jul 28 22:04:02 2011] [error] [client 173.245.56.168] suexec policy violation: see suexec log for more details
[Thu Jul 28 22:04:02 2011] [error] [client 173.245.56.168] Premature end of script headers: cgi_wrapper
[Thu Jul 28 22:04:02 2011] [error] [client 103.22.200.144] suexec policy violation: see suexec log for more details
[Thu Jul 28 22:04:02 2011] [error] [client 103.22.200.144] Premature end of script headers: cgi_wrapper
[Thu Jul 28 22:04:02 2011] [error] [client 103.22.200.150] suexec policy violation: see suexec log for more details
[Thu Jul 28 22:04:02 2011] [error] [client 103.22.200.150] Premature end of script headers: cgi_wrapper
[Thu Jul 28 22:04:03 2011] [error] [client 173.245.56.168] suexec policy violation: see suexec log for more details
[Thu Jul 28 22:04:03 2011] [error] [client 173.245.56.168] Premature end of script headers: cgi_wrapper
[Thu Jul 28 22:04:04 2011] [error] [client 199.27.128.138] suexec policy violation: see suexec log for more details
[Thu Jul 28 22:04:04 2011] [error] [client 199.27.128.138] Premature end of script headers: cgi_wrapper
[Thu Jul 28 22:04:04 2011] [error] [client 103.22.200.246] suexec policy violation: see suexec log for more details
[Thu Jul 28 22:04:04 2011] [error] [client 103.22.200.246] Premature end of script headers: cgi_wrapper

推荐答案

我不确定,但是有时它可能与文件的权限有关.在我使用的网络主机上,如果权限未设置为655,它将给出505; 777将给出500内部服务器错误.我的猜测是在YUM的PHP发行版更新中,他们做了类似的事情,但这只是一个猜测.简而言之,检查文件权限,如果不是655,请尝试将其更改为该权限.

I am not sure, but sometimes it can be related to permissions of a file. On the web-host I use it will give a 505 if permission are not set to 655; 777 will give a 500 internal server error. My guess would be that in the PHP distribution update with YUM they did something similar, but this is only a guess. In short check the file permissions and if they are not 655 then try changing them to that.

这篇关于任何导致内部服务器错误的.php文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆