Best way to install php-ssh2 for PHP 8.3 on HestiaCP?

Hello everyone,

I’m using HestiaCP on a Debian server with PHP 8.3 (installed via HestiaCP’s built-in PHP selector).
I need to enable SFTP support in a Nextcloud instance, which requires the ssh2 PHP module.

What is the recommended and safest way to install php-ssh2 for PHP 8.3 in this setup?

Should I use:

bash

CopierModifier

sudo apt install php8.3-ssh2

Or is there a HestiaCP-specific approach to avoid breaking PHP or FPM compatibility?

Thanks in advance for your advice.

Best regards,

1 Like

no, just install it like suggested.

3 Likes