blaaam Posted March 14, 2014 Share Posted March 14, 2014 (edited) Hello! I got this error : Set write permissions for the "img" folder and subfolders. And i cant upload new images for products,categories..., But i checked that img folder and sub folders have premission 777 and now i set them as 775 but still not working. In my servers php error log seen this stuff : [Fri Mar 14 03:28:31 2014] [error] [client ] PHP Warning: unlink(/var/www/img/c/57-small_default.jpg): Permission denied in /var/www/controllers/admin/AdminImagesController.php on line 448, referer: http://autonets.lv/-------/index.php?controller=AdminImages&token=c90c277ead7fd4f3343552184b8cca13 PrestaShop version: 1.5.6.2 Edited March 14, 2014 by blaaam (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted March 15, 2014 Share Posted March 15, 2014 Check that your main folder has those permissions too Link to comment Share on other sites More sharing options...
blaaam Posted March 19, 2014 Author Share Posted March 19, 2014 Check that your main folder has those permissions too Hello! I have checked main folder and its 777. Link to comment Share on other sites More sharing options...
NemoPS Posted March 19, 2014 Share Posted March 19, 2014 What if you set the all to 755? Perhaps 777 is a bit too high. 770 should work as well (and be a tiny bit more secure) Link to comment Share on other sites More sharing options...
blaaam Posted March 19, 2014 Author Share Posted March 19, 2014 (edited) Solved! Thanks, Nemo1 for support! Edited March 19, 2014 by blaaam (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts