Answer the question
In order to leave comments, you need to log in
ssh2_connect not working through webserver
I can’t find an error in 2 lines :)
given:
Windows 7, XAMPP
ssh2 is connected, we have the corresponding lines in phpinfo ()
$SSH_CONNECTION= ssh2_connect($server);
echo ssh2_auth_password($SSH_CONNECTION, $user, $pwd);
I run it through the console, I get “1” I
run it through the browser, I get “the server terminated the connection”. a pair of echo say that things do not go beyond 1. lines.
Where can you find a buried dog?
Answer the question
In order to leave comments, you need to log in
Look at the apache logs, this happens when apache (its worker) stupidly dies.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question