php -v and php -i both show that I’m running PHP Version => 5.4.16 on my CentOS 7 server. When I look at phpinfo() the PHP version is 7.4.33 (the correct version) which is the selected version through Plesk. The reason this is a problem is that I’m trying to install libssh2 but the make fails for the 7.4 version but is successful for the 5.4 version of libssh2.
How do I get the php versions to match-up? I need php -v to show 7.4.33 not 5.4.16.
The real problem I having is ssh2_connect is returning an undefined function call which I believe is due to not finding libssh2 libraries because I have the wrong version, 5.4 instead of 7.4, compiled.
7