Re: apache+php chroot

From: Date: Mon, 02 Jul 2001 00:58:51 +0000
Subject: Re: apache+php chroot
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-55764@lists.php.net to get a copy of this message
Hi Ryan! On Sun, 01 Jul 2001, Ryan wrote: > I have chrooted apache+php but am having simple problems like not being > able to exec uptime. > uptime has been moved to /usr/serv/apache/usr/bin/uptime.. > Well anyways heres my lil php line im tring to get running > <?php passthru ( "uptime" ); ?> > > I get no errors from php, just doesnt show anything.. I realize it > needs a shell to execute so /usr/serv/apache/bin/bash I think the passthru uses popen() which in turn spawns a shell, and this is /bin/sh and not /bin/bash you need either to make a symlink to bash or to rename bash to sh. > and /usr/serv/apache/usr/etc/shells is setup correctly. Would there be AFAIK shells is checked by programs dealing with pw records, I don't think it has anything to do w/ that. Better SHELL environment variable. > something that im missing? Im frustruated right now.. > Its something to do with the chroot env. What am i missing?? try : cd /usr/serv/apache/bin ln -s bash sh (or) cp bash sh and tell us if it works. > Everything else seems to work fine if theres any more info you need me > to give let me know. > > > thanks > Ryan > ryanpek@swbell.net > -- teodor

« previous php.general (#55764) next »