0

登录到 CMS 后端时尝试进行身份验证时遇到 PHP 错误。我最近将该站点移至其他主机,但未进行身份验证。我是 php 的菜鸟,所以请放轻松。此外,任何关于 php 指南或书籍的建议都会很棒。

这是错误:

Warning: file_put_contents(/home/ob1/domains/******.com.au/public_html/data/cache/c21343136c4fd5bdee8b0e6679c78ea6.txt) [function.file-put-contents]: failed to open stream: Permission denied in /home/ob1/domains/******.com.au/public_html/admin/inc/template_functions.php on line 1062

Warning: chmod() [function.chmod]: Operation not permitted in /home/ob1/domains/*****.com.au/public_html/admin/inc/template_functions.php on line 1063
4

1 回答 1

0

确保.../public_html/data/cache/至少chmod具有 775 的文件权限 ( ),但某些脚本需要完整的 777。

此外,它为不同的文件提供了 chomd 错误。我怀疑这将是由于所有权问题。基本上,它试图将文件或文件夹(可能是上面的文件夹)更改为某些东西,并且没有正确的所有权来这样做。但是,这可能是脚本尝试纠正问题本身的故障保护。

于 2013-07-24T02:43:32.343 回答