Skip to content
Advertisement

2 php versions installed(5.6&7) how to add pecl ssh2 ext only to the 5.6 installation?

I’ve installed 2 php versions on my server (which is managed by ISPconfig 3) using this howto: https://www.howtoforge.com/tutorial/how-to-install-php-5-6-on-ubuntu-16-04/

I’m trying to add pecl ssh2 extension only to my 5.6 installation.

JavaScript

Any help will be appreciated!

Advertisement

Answer

Done by changing the pecl script to always work through php5.6 version

Edited:

JavaScript

And added this line after the first code block (after it checks the php version )

JavaScript

Don’t forget to change it back after installation.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement