[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] PHP script
- Subject: Re: [cobalt-users] PHP script
- From: "Andy Clyde, oxfordmusic.net" <cobalt-users@xxxxxxxxxxxxxxx>
- Date: Mon Jun 2 08:24:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
>
>
> Andy,
>
> PHP will run as the user who APACHE runs as. The ONLY way around that
> is to use the PHP executable instead. So, you would need to make a new
> extension in your httpd.conf ( or remove the libphp4.so line ), and make
> the user have this in the TOP of my every page.
>
> #!/<path_to_php/php
>
> Just like PERL does. That is why in PERL, you can make it run as root,
> where
> as in PHP, it will run as HTTPD (or nobody on a normal Linux box).
>
hmmm. i've got many clients who php on this box and i don't want to force
all of them to use the php executable.
can i run php executable via cgiwrap? so that the php script runs as the
owner uid?
he's trying to use Gnupg and php but i'm running into a big wall of not
being able to access gpg functions for his user because the apache-php
script is running as httpd.
cheers
andy