|
Posted by Jason Wong on 10/01/78 11:08
On Wednesday 16 February 2005 23:30, Ugo Bellavance wrote:
> If the needed permissions for standard PHP files and directories
> are 'r' on files and 'r-x' on directories, how can I set my umask so
> that files and directories are always created as such? I looked up
> 'man umask' and it seems to treat files and directories the same way.
> Maybe that is impossible, but I logged in via FTP to a server of a web
> hosting company, and it implements just this: creates directories as
> rwxr-xr-x and files as rw-r--r--.
chmod() after creating any directory or file.
> Another thing... how should I configure ownership on the files?
> root as owner, apache as group and no permissions for others?
Depends very much on your particular setup. If you're on a dedicated
server with all the virtual hosts owned by the "same person" then it
doesn't really matter -- just have apache be the owner and the group.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
New Year Resolution: Ignore top posted posts
Navigation:
[Reply to this message]
|