我曾使用subversion来恢复我的
PHP Opencart项目,但我得到了一个权限问题(示例如下所示:
Warning: imagejpeg(): Unable to open ‘/var/www/html/opencart/image/cache/data/pavblog/img-blog-620x300w.jpg’ for writing: Permission denied in /var/www/html/opencart/system/library/image.PHP on line 45
Warning: imagejpeg(): Unable to open ‘/var/www/html/opencart/image/cache/data/pavblog/img-blog-250x250w.jpg’ for writing: Permission denied in /var/www/html/opencart/system/library/image.PHP on line 45
Warning: imagejpeg(): Unable to open…
我执行了以下命令来添加这些文件夹的权限,但我仍然在我的网站上收到警告消息.
sudo chmod 777 /var/www/html/opencart cd /var/www/html/opencart sudo chmod 777 image/ sudo chmod 777 image/cache/ sudo chmod 777 image/data/ sudo chmod 777 system/cache/ sudo chmod 777 system/logs/ sudo chmod 777 download/ sudo chmod 777 config.PHP sudo chmod 777 admin/config.PHP
我怎样才能解决这个问题?
您需要递归地应用权限.尝试
sudo chmod -R 777 image / cache /