Write image permission denied

June 7, 2015 945 views
Apache Linux Commands LAMP Stack PHP Ubuntu

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!.

  • 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

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

1 Answer
Have another answer? Share your knowledge.