Wordpress - 同时拥有403 Forbidden和500 Internal服务器

时间:2013-12-03 05:00:12

标签: php wordpress

突然,我的博客在下面给出了这个错误:(一小时前工作正常)

Forbidden

You don't have permission to access /blog/index.php on this server.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

我的wordpress安装在www.my-domain.com/blog。但是我仍然可以访问wp-admin

我使用FTP检查了权限,这一切都正确(目录为755,文件为644)

我还尝试删除htaccess并让Wordpress通过更改永久链接重新创建它。

有人说这是托管问题,但我只是在/blog2创建另一个Wordpress博客,它运行正常。

任何解决方案?感谢。

[编辑]

我刚刚意识到index.php文件权限是00,但我无法通过FTP更改权限。它说550 Could not change perms on index.php: Permission denied。有什么想法吗?

2 个答案:

答案 0 :(得分:0)

/blog/index.php上的权限设为00。将其更改为644可以解决问题。

就我而言,我无法通过FTP更改权限。所以我删除了index.php并上传了一个新的。

答案 1 :(得分:0)

对于500内部服务器错误,请检查您的htaccess