httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Yau" <b...@cardcommerce.com>
Subject RE: [users@httpd] calling ssh/scp shell processes from within apache
Date Tue, 16 Mar 2004 23:07:43 GMT


> I realize this is not solely an Apache question, i'm also posting to a php
> list, and didn't want to cross post.
>
> I have a page, written in PHP that calls three shell commands.
> I'm calling
> scp, then ssh and scp again.  I am using full paths when calling these
> programs, i.e. /usr/bin/scp, /usr/bin/ssh.  The script works fine if
> executed from the command line, as the user Apache runs as.  When i try to
> execute similar code from a web browser being served up by Apache, none of
> the commands seem to execute.
>
> I would assume this has something to do with the environment the web
> process runs in??  The ssh/scp connection autheticates with
> public key pair
> authentication, which may not be allowed in this context.  I think/pretty
> sure its getting challenged for the passphrase.
> but, i'll send this anyway...just in case anyone has any
> insight/expierence
> with this.
>

Just curious... do you have problems running any other command lines from
your php scripts?  That could be one thing is that it's looking in the wrong
places for your scp/ssh/scp calls.  Other than that, any errors in the
error_log?





>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message