【问题标题】:500 Internal Server Error when accessing domain/foldername访问域/文件夹名时出现 500 内部服务器错误
【发布时间】:2015-09-06 14:18:01
【问题描述】:

我在我的网站上收到 500 内部服务器错误。 全文:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@subxchange.com to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.4.10 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 Server at subxchange.com Port 443

图片:http://i.gyazo.com/31e237bca4593dc71b0923ba9c044ae1.png

我在尝试访问我的管理面板(例如 domain.com/admin-panel)时收到消息 但是,我可以很好地访问前端,例如 domain.com。

我检查了权限,文件夹设置为 755,而文件设置为 644。

这是错误日志:

[Sat Jun 20 14:57:59.954476 2015] [:error] [pid 7920] [client 213.114.166.90:35286] SoftException in Application.cpp:357: UID of script "/home/subxchange/public_html/admin-panel/index.php" is smaller than min_uid
[Sat Jun 20 14:56:09.703965 2015] [:error] [pid 7564] [client 213.114.166.90:35213] SoftException in Application.cpp:357: UID of script "/home/subxchange/public_html/admin-panel/index.php" is smaller than min_uid
[Sat Jun 20 14:56:09.398852 2015] [:error] [pid 7910] [client 213.114.166.90:35198] SoftException in Application.cpp:357: UID of script "/home/subxchange/public_html/admin-panel/index.php" is smaller than min_uid
....

有人知道如何解决这个问题吗?

【问题讨论】:

标签: php internal-server-error


【解决方案1】:

这是一个权限问题,除了rwx,你还需要设置正确的用户和组所有权:

chown -R www-data:www-data /home/subxchange/public_html

并确保为public_html 设置了正确的属性:

chmod 755 -R /home/subxchange/public_html

【讨论】:

  • 我尝试了以下操作:chown -R nobody:nobody /home/subxchange/public_html/admin-panel/ 但实际上什么也没发生,我应该输入某种密码吗?
  • 检查用户运行PHP服务器进程。在home/subxchange/public_html 中运行ls -l。尝试在public_html 上运行命令而不是admin-panel
猜你喜欢
  • 1970-01-01
  • 2019-06-10
  • 2017-10-16
  • 2014-04-12
  • 2017-10-04
  • 2018-05-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多