Can't get ssh2 to work in XAMPP

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Can't get ssh2 to work in XAMPP

Postby calvincj » 01. October 2008 15:35

Hi guys,

I tried searching for this problem in the forum and it doesn't seem like this is a problem for anyone.

The issue is that I'm trying to enable ssh2 for php in XAMPP but it doesn't work. I tested by using this code:

Code: Select all
if (!function_exists("ssh2_connectcc")) die("function ssh2_connect doesn't exist");


It will always return false, the function doesn't exists. My understanding is that this is a build in function for php_ssh2.dll which I included in the php.ini file.

The php.ini file I changed was located in: C://xampp/apache/bin
I simply removed the ";" for the line "extension=php_ssh2.dll", saved the file and restarted the server. When I ran the check "function_exists" it still return false... Not sure what I missed.

Please help!
calvincj
 
Posts: 2
Joined: 01. October 2008 15:09

Postby Wiedmann » 01. October 2008 16:51

Code: Select all
if (!function_exists("ssh2_connectcc"))

My understanding is that this is a build in function for php_ssh2.dll which I included in the php.ini file.

The function "ssh2_connectcc" is not part of the SSH2-extension.
Last edited by Wiedmann on 01. October 2008 17:22, edited 1 time in total.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby glitzi85 » 01. October 2008 16:52

You should use the correct function: http://de3.php.net/manual/en/function.ssh2-connect.php
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Postby calvincj » 01. October 2008 21:03

Oh thanks, I didn't see that extra "cc". It works now, Thanks guys!
calvincj
 
Posts: 2
Joined: 01. October 2008 15:09


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 43 guests