php access to perforce via ssh

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
green_sky
Forum Newbie
Posts: 1
Joined: Tue Dec 23, 2008 12:20 am

php access to perforce via ssh

Post by green_sky »

Hi,

I've tried to write a php script that uses an exec command or backticks to login and retrieve output from a command run on a remote perforce server. perforce is accessed via ssh.

Problem is I can't get this to work via apache. Apache doesn't have access to my ssh-key so I changed apache to run under myself. I set up an SSH-agent and defined the environment variables for my agent PID and socket in the apache config file so apache has access to my agent. But I still can't access the server.

I'm wondering if people have ran into this problem and how they can get around this.

Any help is appreciated.

Thanks.
Post Reply