Image

Imageinvertedsky wrote in Imagephp

php/linux permissions

In an Ubuntu distribution, I believe PHP runs as user www-data (inheriting the user name of apache).

All of the files I create have my user name and my group name.

I have a script that requires write access to some files and folders.

Is it better to add www-data to my group, or is it better to make these files and folders world writable (ie 0777)? Or is there another approach I am missing?