• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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