Application.cpp:249中的SoftException:无法访问文件 [英] SoftException in Application.cpp:249: can't acces file

查看:116
本文介绍了Application.cpp:249中的SoftException:无法访问文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个新闻消息站点。

I have a site with news messages.

在我的 .htacces 文件中,这行内容是码。

And in my .htacces file I have this line of code.

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

如果我访问mysite.com/index/event/1,我会得到一个 500内部服务器错误

If I go to mysite.com/index/event/1 I get an 500 internal server error

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

The weird thing is that if I change the .htacces to

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

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

I don't get that error and the page works correctly.

怎么可能无法处理所有文件。

How is it possible that it doesn't work with all files.

我收到此错误

    [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

I hope I gave you enough info. Thx

推荐答案

您应检查文件权限。

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

I once got that same error, I changed the filepermissions form 666 to 644

这篇关于Application.cpp:249中的SoftException:无法访问文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆