[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] Permissions for PHP "user"



> > >  I thought PHP was an Apache module and Apache ran as
> > > user nobody. I'm confused.
> >
> > Apache runs as user httpd group httpd (at least on the Raq4).
> >
> > root$ cat /etc/httpd/conf/httpd.conf | grep User
> 
> OK, you're right of course, but why is this so. Shouldn't the default 
> permissions for files in the web directorys be httpd rwx?

The execute bit is not needed for html files or php scripts. Also, 
Apache normally doesn't need write permissions for files in web 
directories, in your case it does.

> Why nobody and sitex?
> 
> Still confused,

I have no idea why nobody is the owner of the default cobalt public 
html files, my guess is that these files need to be owned by 'somebody'
even if the vhost doesn't have any users.

The solutions I see for your counter script are either 
- setting the file world writeable 
- or chowning it to httpd.sitex and giving the owner write permissions
- or adding the httpd user to the sitex group in /etc/group and chmoding
the file in question to group writeable 

Hope this helps,

Gergo


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com