Application.cpp中的SoftException:249:无法访问文件

时间:2014-05-22 13:26:49

标签: .htaccess

我有一个包含新闻消息的网站。

在我的.htacces文件中,我有这行代码。

RewriteRule ^event/([0-9]+)/?$ events.php?id=$1

如果我去mysite.com/index/event/1,我会得到500 internal server error

奇怪的是,如果我将.htacces更改为

RewriteRule ^event/([0-9]+)/?$ nieuws_read.php?id=$1

我没有收到该错误且页面正常工作。

它怎么可能不适用于所有文件。

我收到了这个错误

    [Tue May 27 17:46:41 2014] [error] [client ipadress] SoftException in Application.cpp:249: File "/../../../../public_html/new/events.php" is writeable by group, referer: http://new.mysite.eu/index/events
[Tue May 27 17:46:41 2014] [error] [client ipadress] Premature end of script headers: events.php, referer: http://new.mysite.eu/index/events
[Tue May 27 17:46:41 2014] [error] [client ipadress] File does not exist: /../../../../public_html/new/500.shtml, referer: http://new.mysite.eu/index/events

我希望我能给你足够的信息。 THX

4 个答案:

答案 0 :(得分:8)

这对我有用。正如 user76176 所说,这是一个许可问题。我在SSH中运行了那些chmod命令并修复了它。 首先进入安装WP的目录。

find . -type d -exec chmod -R 755 {} \;
find . -type f -exec chmod -R 644 {} \;
find . -type f -name 'wp-config.php' -exec chmod -R 600 {} \;

答案 1 :(得分:4)

您应该检查文件权限。

我曾遇到同样的错误,我将文件权限格式666更改为644

答案 2 :(得分:4)

我遇到了同样的问题,但它发生在我的WordPress网站中的wp-content文件夹中。我搜索了found solution from this post,只需要将文件夹权限从777更改为755就可以了。

答案 3 :(得分:0)

  

如何更改文件和文件夹的所有权转到CWP.admin Left   菜单 - >用户帐户 - >修复权限并选择用户。

Offical fix