Re: Shell used by system()

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

 



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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux