• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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