大佬教程收集整理的这篇文章主要介绍了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.那是
现在我没有收到错误.
以上是大佬教程为你收集整理的PHP困境 – 500内部服务器错误(全新服务器)全部内容,希望文章能够帮你解决PHP困境 – 500内部服务器错误(全新服务器)所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。