【问题标题】:php does not work always returns 500 errorphp 不工作总是返回 500 错误
【发布时间】:2015-01-28 06:16:37
【问题描述】:

我在 vps 上托管 3 个网站。 每个都有一个phpt测试脚本

a1.com/test.php

a2.com/test.php

a3.com/test.php

a1.com/test.php

a2.com/test.php

工作顺利

但是当我打电话时

a3.com/test.php

总是报错

[Wed Jan 28 01:01:52.801563 2015] 
[fcgid:warn] [pid 27783] (104)Connection reset by peer: 
[client ***.***.27.***:50211] 
mod_fcgid: error reading data from FastCGI server
[Wed Jan 28 01:01:52.801651 2015] [core:error] [pid 27783] 
[client ***.***.27.***:50211] 
End of script output before headers: test.php

欢迎您的评论

【问题讨论】:

    标签: php


    【解决方案1】:

    就个人经验而言,请确保在 a3.com/test.php 上正确设置了目录/文件权限。如果设置不正确,可能会导致 500 错误

    【讨论】:

    • 三个站点对每个目录的权限相同
    • 谢谢他们不是同一个原因,每个站点;s .conf 几乎相同,但只有一个站点有上述 php 错误
    猜你喜欢
    • 1970-01-01
    • 2020-10-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-12
    • 2015-08-15
    • 2015-02-12
    • 2014-05-03
    相关资源
    最近更新 更多