• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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