Write image permission denied

I have added user to root, chown, change permission to 755 , yet write image permission denied. I tried PHP Imagick function, it didn’t work.

I followed this solution.

How do I enable images to have write permission? Help please!.


Images are located in /var/www/html/app

where are the images you are trying to write to?

if they are in your web-directory, and you want your user to be able to access them outside of a web-service, then you need to add your user to www-data

sudo usermod -aG www-data $USER

then you need to chmod to 775

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.