problems using scp with php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
relative_noob
Forum Newbie
Posts: 1
Joined: Wed Jan 24, 2007 8:01 am

problems using scp with php

Post 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
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Post 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.
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Post by dude81 »

Is that a right answer :?:
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

dude81 wrote:Is that a right answer :?:
Replies will generally take longer than 6 minutes.. be patient :wink:
Post Reply