PHP困境 – 500内部服务器错误(全新服务器)

前端之家收集整理的这篇文章主要介绍了PHP困境 – 500内部服务器错误(全新服务器)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
有没有人见过这些错误,或类似的东西?
/usr/bin/PHP: error while loading shared libraries: libcom_err.so.2: Failed to map segment from shared object: Cannot allocate memory

[warn] UID of script "/usr/local/apache/htdocs/index.PHP" is smaller than min_uid

[info] Executing "/home/mysite/public_html/index.PHP" as UID 501,GID 501

我真的不确定修复是什么,但我认为我在WHM / Cpanel中设置的内存设置很差?

—更新:

使用下面答案中所述的命令,这是我在加载用户索引页面时看到的内容(我已经屏蔽了我的服务器的IP和用户名):

==> /usr/local/apache/logs/error_log <==
[Sat Apr 23 17:37:18 2011] [error] [client IPADDRESS] /usr/bin/PHP: error while loading shared libraries: libcom_err.so.2: Failed to map segment from shared object: Cannot allocate memory
[Sat Apr 23 17:37:18 2011] [error] [client IPADDRESS] Premature end of script headers: index.PHP
[Sat Apr 23 17:37:18 2011] [error] [client IPADDRESS] File does not exist: /home/username/public_html/500.shtml

==> /usr/local/apache/logs/suPHP_log <==
[Sat Apr 23 17:37:18 2011] [info] Executing "/home/username/public_html/index.PHP" as UID 501,GID 501

此外,当我直接转到我的IP地址(我刚刚将一个简单的PHP重定向放在我的域名中的index.PHP …)时,这些是我得到的错误

==> /usr/local/apache/logs/access_log <==
IPADDRESS - - [23/Apr/2011:17:40:58 -0400] "GET /index.PHP HTTP/1.1" 404 -

==> /usr/local/apache/logs/error_log <==
[Sat Apr 23 17:40:58 2011] [error] [client IPADDRESS] SoftException in Application.cpp:357: UID of script "/usr/local/apache/htdocs/index.PHP" is smaller than min_uid
[Sat Apr 23 17:40:58 2011] [error] [client IPADDRESS] Premature end of script headers: index.PHP
[Sat Apr 23 17:40:58 2011] [error] [client IPADDRESS] File does not exist: /usr/local/apache/htdocs/500.shtml

==> /usr/local/apache/logs/suPHP_log <==
[Sat Apr 23 17:40:58 2011] [warn] UID of script "/usr/local/apache/htdocs/index.PHP" is smaller than min_uid

最后…
这些都是空的:

> modsec_audit.log
> modsec_debug_log

我在suexec.log中看到:

: uid: (501/username) gid: (501/username) cmd: redirect.cgi

和已经说明的更多相同的错误……

我正在寻找一个答案,并想出这个:

文件的所有权设置为nobody.那是

chown nobody:nobody index.PHP

现在我没有收到错误.

原文链接:https://www.f2er.com/php/138956.html

猜你在找的PHP相关文章