Re: User question for PHP
| From: | Richard Lynch | Date: | Mon, 23 Oct 2006 23:39:48 +0000 |
| Subject: | Re: User question for PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243537@lists.php.net to get a copy of this message | ||
On Thu, October 19, 2006 1:49 pm, Tom Ray [Lists] wrote:
> Is it possible to have a PHP script execute as the user of the domain
> instead of the webserver? So when I upload files through a PHP script
> they are owned by me and not "wwwrun" or "nobody"?
On a dedicated server, it's trivial to do it.
Look in httpd.conf for "User"
Could also be dangerous, or a boon, depending on what you do with it
next, and what you do with it years down the road...
On a shared server, with VirtualHosts, it gets more complicated
You're looking at proxyservers, fastcgi with suexec or similar stuff.
This also brings some potential dangers etc.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?