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

[cobalt-users] Chown-ing web Folders



Hi, I'm trying to run a PHP4 script (on a RaQ4) that copies a file from /tmp
to /home/sites/site29/web. I first tried running the script and got a
Permission Denied error. Then I searched the list archives and found a
message saying that PHP scripts run as httpd, so I used the chown command to
change the ownership of the "web" folder to httpd (it was "nobody"). After
doing this, the script worked!

My questions are: 1) Is this the right way to do it? Is there something I
can change in Apache to make PHP run as "nobody" instead of "httpd"? I
couldn't find "httpd" or "nobody" in the php.ini file. 2) Is it safe to
leave the "web" folder with httpd ownership? I'm not running the FrontPage
extensions on this particular virtual site, but if I was, would the httpd
ownership of the web folder make a difference?

Thanks for any advice.

~ Chris Calabrese
WebWorkshop Webmaster
http://www.webworkshop.org