2012-04-23 102 views
3

我开发了一个关于PHP的网站,并使用iPage进行托管。它工作正常,但今天我检查了网站,它说:违反suexec政策

The server encountered an unexpected condition which prevented it from fulfilling 
the request. The script had an error or it did not produce any output. If there 
was an error, you should be able to see it in the error log. 

和错误日志中说:

20120423T060239: mydomain.com/file.php suexec policy violation: see suexec log for more details 

我搜索了错误,并说要改变权限755,但它没有工作。我读了另一篇文章,它说要将目录的权限更改为644,将文件更改为765。但它也失败了。

请帮帮我。

+0

'见suexec的日志的详细details' - 你这样做吗?它说了什么? – DaveRandom 2012-04-23 10:25:17

+0

我无法在我的网站托管网站上找到suexec日志 – 2012-04-23 11:16:26

回答

0

正确的文件权限:

  • 目录755
  • PHP文件644