Page 1 of 1

problems using scp with php

Posted: Wed Jan 24, 2007 8:04 am
by relative_noob
Hello all,

I am struggling with the exact problem referenced here: http://www.zend.com/zend/spotlight/shel ... c=0&view=1

In the discussion at the bottom of the page, there is a question:
"So that begs the question, that since PHP is typically run as nobody or apache with no shell and
no home, how does one gen a public key to give to the remote host for nobody or apache --- so
the scp can actually take place??"

Please help as this problem is making me insane...

Thanks in advance

Posted: Wed Jan 24, 2007 8:12 am
by dude81
Have you ever heard of apache being compiled with suexec?? If so apache will run with any ftp user along with apache or nobody group, so you can try to scp with that particular ftp user.

Posted: Wed Jan 24, 2007 8:18 am
by dude81
Is that a right answer :?:

Posted: Wed Jan 24, 2007 8:26 am
by aaronhall
dude81 wrote:Is that a right answer :?:
Replies will generally take longer than 6 minutes.. be patient :wink: