【问题标题】:500 Internal Server Error when trying to access wp-admin url尝试访问 wp-admin url 时出现 500 内部服务器错误
【发布时间】:2018-05-11 00:42:23
【问题描述】:

我在域名下启动了一个新的 Wordpress 网站:www.example.com

当我尝试访问 cpanel 或 wp-admin url 时,它给了我这个错误消息:

Internal Server Error 服务器遇到内部错误或 配置错误,无法完成您的请求。请 联系服务器管理员 webmaster@subdomain.example.com 通知 他们发生此错误的时间以及您执行的操作 就在这个错误之前。有关此错误的更多信息可能是 在服务器错误日志中可用。此外,500 内部服务器 尝试使用 ErrorDocument 时遇到错误错误 处理请求。

【问题讨论】:

  • 安装新的 wordpress 后,立即出现 500 错误通常表示 .htaccess 文件设置不正确。我会从那里开始。
  • 检查您的错误日志,这样做会告诉您问题所在。
  • 这是 .htaccess 文件所说的: RewriteEngine On RewriteBase /Information/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond % {REQUEST_FILENAME} !-d 重写规则。 /Information/index.php [L] # BEGIN WordPress RewriteEngine On RewriteBase /Information/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{ REQUEST_FILENAME} !-d 重写规则。 /Information/index.php [L] #END WordPress

标签: php wordpress server shared-hosting


【解决方案1】:

请检查您的文件权限。您应该将其设置为755,您的问题应该会得到解决。

【讨论】:

  • 当您有足够的声望时,您可以发表评论。不要把 cmets 写成答案
猜你喜欢
  • 2019-06-10
  • 1970-01-01
  • 2018-10-08
  • 1970-01-01
  • 2011-03-16
  • 1970-01-01
  • 2012-05-26
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多