PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sun Jun 07, 2020 4:28 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Jun 09, 2009 3:31 pm 
Offline
Forum Newbie

Joined: Sat Apr 25, 2009 10:48 am
Posts: 6
We have got 2 Debian servers - a testing and a production server. I could successfully install the SSH module for PHP in the test server. However,in Production Server, I would like to copy the compiled packages and make the changes in php.ini to add the ssh module.

I have Copied libssh2.so file and the ssh.so file from test to production server.
Added the extension directive in php.ini

Doing this I can connect with SSH to the remote server but fopen into the remote server fails.
It fails in the following code :(in the production server)

@fopen('ssh2.sftp://'.$sftp.$remoteFile, 'w');

$sftp is the SFTP connection
$remoteFile is the full path of the remote file that needs to be created.

This code works perfectly in the test server.

What did I do wrong. Any help is welcome including some explanation on how the libssh2 package is compiled in Debian.(I am quite new to Debian and in the process of understanding how the system works).


Top
 Profile  
 
PostPosted: Wed Jun 10, 2009 7:42 am 
Offline
Forum Newbie

Joined: Tue Jun 09, 2009 3:36 am
Posts: 2
Well I solved the issue and I thought I would post the solution.
fopen needed to be activated in php.ini


Top
 Profile  
 
PostPosted: Tue Jun 16, 2009 7:29 am 
Offline
Forum Newbie

Joined: Tue Jun 16, 2009 7:26 am
Posts: 1
I've tried a lot to get this crap working but php not recognize the functions of this lib even after I installed it all... just use this instead: http://phpseclib.sourceforge.net/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group