1 Answer
- Newest
- Most votes
- Most comments
0
I found my own answer. It seems I was getting a false response from my php.ini regarding SSH2 being installed. Also, the SSH2 that it showed installed was also not compatible with PHP7.3. I terminated the EB instance and started a fresh one, then I was able to see that SSH2 was not installed at all. Below is the basic process to get SSH2 on PHP 7.3 in case anyone needs:
Check if installed:
php -r "print_r(get_loaded_extensions());"
Install libssh2-devel first:
sudo yum install libssh2-devel
Get PHP7.3 compatible version:
wget https://pecl.php.net/get/ssh2-1.2.tgz
Unpack and build:
tar -xzvf ssh2-1.2.tgz
cd ssh2-1.2
phpize
./configure
make
make install
Verify installed now:
php -r "print_r(get_loaded_extensions());"
answered 6 years ago
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 years ago
