我有一个VPS与linux的根访问和DirectAdmin控制面板的CentOS。我已经在上面恢复了一个网站,它显示了一些警告,比如:
Warning: file_put_contents(/home/site/domains/mysite.com/public_html/news/art/wp-content/themes/aggregator/cache//6d6888104966bb46e070bdf21b1efd2c.spc) [function.file-put-contents]: failed to open stream: Permission denied in /home/site/domains/mysite.com/public_html/news/art/wp-content/themes/aggregator/php/simplepie.inc on line 8670因此,我尝试通过编辑php.ini文件来关闭所有警告:
error_reporting = E_ALL & ~E_WARNING我重新启动了系统。但它不起作用。我还意识到我的系统上有两个php.ini文件:
/usr/local/etc/php5/cgi/php.ini
/usr/local/lib/php.ini该怎么办呢。有什么帮助吗?!
谢谢
发布于 2014-06-21 16:07:15
尝试删除
/home/site/domains/mysite.com/public_html/news/art/wp-content/themes/aggregator/cache/文件夹。确保您具有在缓存文件夹中写入的正确权限。不要和警告抗争--解决权限问题。
https://stackoverflow.com/questions/24339134
复制相似问题