Page 1 of 1

ssh problem

PostPosted: 30. January 2009 00:08
by fakie
Hello
I am trying to enable php_ssh2.dll for secure shell connections.
In the PHP.ini i have enabled extension=php_ssh2.dll (i have removed the semicolon)
but when i try to use ssh2_connect() function i get this error
Fatal error: Call to undefined function ssh2_connect()
As i can see the php_ssh2.dll isn't loading. I have also check the phpinfo
and neither in there is loaded.
Could anyone tell me what is wrong and how can i fix it?

Re: ssh problem

PostPosted: 30. January 2009 00:30
by Izzy
Which php.ini file did you edit?

Re: ssh problem

PostPosted: 30. January 2009 00:57
by fakie
I edited the php.ini in php root dir but thanks to your question
i noticed the i should edit the php.ini in apache's bin dir.
Thanks a lot. :D

Re: ssh problem

PostPosted: 30. January 2009 01:02
by Izzy
Your most welcome and thanks for posting back with your solution. :)

It's a common mistake when there is a xampp\php folder with 2 php.ini files in there as well as the php.ini file in the correct location xampp\apache\bin folder, making 3 to choose from.

http://localhost/phpinfo.php and look for the line Loaded Configuration File will give the true location of the php.ini file being used in XAMPP.

Good luck and best wishes.