The permission on the file system are set with the user running the Apache daemon.
The user running the daemon is generally is named apache or www-data
ps -ef | grep httpd | grep -v grep
ps -ef | grep apache