• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question PHP 8 PECL SSH2

Schlawiner

New Pleskian
Can someone tell me to install SSH2 PECL for PHP8?

Debian 9 + Plesk

Code:
/opt/plesk/php/8.0/bin/pecl install https://pecl.php.net/get/ssh2-1.3.1.tgz


checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
sed: can't read /tmp/ssh2/ltmain.sh: No such file or directory
mv: cannot stat 'libtoolT': No such file or directory
cp: cannot stat 'libtoolT': No such file or directory
chmod: cannot access 'libtool': No such file or directory
running: make
/bin/bash /tmp/pear-build-roothUcgU7/ssh2-1.3.1/libtool --mode=compile cc  -I. -I/tmp/ssh2 -DPHP_ATOM_INC -I/tmp/pear-build-roothUcgU7/ssh2-1.3.1/include -I/tmp/pear-build-roothUcgU7/ssh2-1.3.1/main -I/tmp/ssh2 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/ssh2/ssh2.c -o ssh2.lo
/bin/bash: /tmp/pear-build-roothUcgU7/ssh2-1.3.1/libtool: No such file or directory
Makefile:181: recipe for target 'ssh2.lo' failed
make: *** [ssh2.lo] Error 127
ERROR: `make' failed

Thank You
 
Нave you tried to adapt this to my instruction?

 
Last edited:
I don't know with debian,
I had a big headache trying to install it with Centos8. I really don't know why it's so tedious installing php extensions with plesk!!!
Install the php 8.1.1 version using plesk upgrade panel. It will install the /opt/plesk/php/8.1/ tree.
Then install this:
yum install php81
module load php8
php --version (you should see 8.1.2 or similar)
Now you have a php working copy installed in /opt/remi/php81 folder.
Copy the ssh2 module inside of the plesk folder
cp /opt/remi/php81/root/lib64/php/modules/ssh2.so /opt/plesk/php/8.1/lib64/php/modules/
Add this line to the file /opt/plesk/php/8.1/etc/php.ini
extension=ssh2
Save the file and reboot or restart services
 
Back
Top