php/linux permissions
Date: 02/02/08
(PHP Community) Keywords: php, apache
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?
Source: http://community.livejournal.com/php/611462.html