Re: Shell used by system()
| From: | Richard Lynch | Date: | Wed, 25 Apr 2007 01:17:09 +0000 |
| Subject: | Re: Shell used by system() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-253640@lists.php.net to get a copy of this message | ||
On Tue, April 24, 2007 8:39 am, Marco Michelino wrote:
> Hi *,
> is it possible to change the shell used by system() , exec() and
> similar PHP funtions?
>
> I'm running mod_php in apache on Linux.
>
> Apache shell is set to /sbin/nologin but PHP insists to call
> /bin/sh...
I suspect you cannot change that without changing PHP source.
You can, however, have PHP exec() scripts that start with:
#!/sbin/nologin
or whatever shell you want...
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?