Possible Duplicate:
What are the best linux permissions to use for my website?
I have a script that will generate an image then upload it in a certain directory. The script works fine, however uploading it in the CentOS server, it won't work anymore. By debugging, I have found out that this is a permission denied issue. I am forced to chmod -R 777 certain_directory
to make it work.
I am not convince with this, I can't set the directory ownership to www-data
I'm used to when I am using Debian. Any workaround for this?
www-data
is a debian-ism, CentOS and other RH-type distros use a different username for their webserver, but I don't know what it is (apache
?).