PHP困境 – 500内部服务器错误(全新服务器)
发布时间:2020-12-13 13:51:24 所属栏目:PHP教程 来源:网络整理
导读:有没有人见过这些错误,或类似的东西? /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 t
有没有人见过这些错误,或类似的东西?
/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 我在suexec.log中看到: : uid: (501/username) gid: (501/username) cmd: redirect.cgi 和已经说明的更多相同的错误……
我正在寻找一个答案,并想出这个:
将文件的所有权设置为nobody.那是
现在我没有收到错误. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |