• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Resolved Installing ssh2 with php 7 on a centos 7

python

Regular Pleskian
Until now I used the ssh2 library of php with php5. But I need to use it in php7 is a centos 7. search and I did not find how to install the library.
Is it possible to use ssh2 in php7?
I need help installing it.
 
Hi, thank you very much for your help.
If the last version compatible with php7 is beta, better not install at the moment.
I need this library to create and deactivate a task.
That said that another alternative I have?

The task to be managed is always the same only that it works short periods of time.
Try to comment the line of the task with the apache user but I could not by permissions issues, cron are created with root permissions, just like this comment is not very recommendable.
What do you think, any solution?
Or to activate and deactivate tasks with the beta already worth?

Anyway install this version, but it gives me the following error to verify that it works with the command:
/opt/plesk/php/7.0/bin/php -m | grep ssh2
error:
PHP: Syntax error, unexpected '(' in /opt/plesk/php/7.0/etc/php.d/ssh2.ini on line 38

How can i fix this?

regards
 
Last edited:
PHP: Syntax error, unexpected '(' in /opt/plesk/php/7.0/etc/php.d/ssh2.ini on line 38

There is only one line after command

# echo "extension=ssh2.so" > /opt/plesk/php/7.0/etc/php.d/ssh2.ini

This line is:

# cat /opt/plesk/php/7.0/etc/php.d/ssh2.ini
extension=ssh2.so

So, fix your /opt/plesk/php/7.0/etc/php.d/ssh2.ini file.
 
Back
Top