1

I want to install SSH2 on my Server and I did it via PECL. I used PECL because I want ssh2 version 1.2 and not the default apt version which is 0.12. Unfortunately, I somehow can't use it

I have following file:

test.php

<?php var_dump(function_exists("ssh2_disconnect")); ?>

When I execute PHP test.php I get true. When I execute it via my browser, I get false.

Why does it get loaded in the PHP command line but not in PHP browser (I am using Apache2 with keyhelp)

David Buck
  • 3,752
  • 35
  • 31
  • 35
peter12908
  • 21
  • 2
  • Think about this: Why *do* modules get loaded? BTW: Upgrade PHP, 7.0 is as maintained as 5.6, if I'm not mistaken. – Ulrich Eckhardt Mar 15 '20 at 20:28
  • its not a problem that's ssh2 specific, i tried to install seaslog and it also only shows up in command line mode and not fpm mode – peter12908 Mar 16 '20 at 16:53

0 Answers0