Question

Write image permission denied

Posted June 7, 2015 3.3k views
Ubuntu Apache PHP LAMP Stack Linux Commands

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

2 comments
  • 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

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.

1 answer
Submit an Answer