Google CS/Ubuntu Linux server running PLESK - SSH2 issue, PHP7.1/7.2/7.3


I have an application running on an old v-server. I'd like to switch the application to Google Cloud Services (GCS).

I use a SSH2 function to access external sFTP/FTP folders to transfer files, called via PHP. The process works fine on the old server, but I'm encountering an issue on the new GCS server.

I currently have a web application running on an VServer hosted

OS : Ubuntu 14.04.5 LTS

PLESK : 14.04.5 LTS

PHP : 5.5.9 by OS vendor, run PHP as FPM served by Apache

PHPINFO : [login to view URL]

I'm looking to move the application to a vServer running within Google Cloud Services.

OS : Ubuntu 18.04.3 LTS

PLESK : 18.0.20

PHP : 7.3.11 run PHP as FPM application served by Apache*

PHPINFO : [login to view URL]

*I've have assigned the above PHP version to the domain

SSH2 appears to be installed and up to date on the new server.

SSH2 is selected within the PLESK interface

The majority of the applications functions work.

However, we have a process where we send and receive flat files via FTP & sFTP and utilises the SSH2 function.

I’ve deployed a test file with the following

“if (!function_exists("ssh2_connect"))

die('Function ssh2_connect not found, you cannot use ssh2 here');”

The reads false and kills the process.

SSH2 isn’t working for PHP7.1, 7.2 or 7.3

If I change the PHP version for the domain ([login to view URL]) to :

'7.0.33 by OS Vendor, run PHP as FPM application served by Apache'

and run [login to view URL]

I appears that SSH2 is now loaded.

However, when I run a test file I see the following error message

Test file address : [login to view URL]

(works without errors on the old vServer - please see [login to view URL])

I disabled the Firewall, but the problem remained.

Here is the sample code which is producing the 503 error:


$connection = ssh2_connect('[login to view URL]', 22);

ssh2_auth_password($connection, 'username', 'password');

$sftp = ssh2_sftp($connection);

$stream = fopen('[login to view URL]://' . intval($sftp) . '/path/to/file', 'r');


The configured file for the above can be found at [login to view URL]

I'm looking for someone to resolve the SSH2 issue on the new Google Cloud Server so that I can transfer files via sFTP.

Please note that the is running with with PLESK.

Happy bidding

Habilidades: Linux, Ubuntu , Apache, PHP, Administración de sistemas

Ver más: linux server plesk spam security, ubuntu linux postfix mail server configuration, configure ubuntu linux vpn server, steps repair plesk linux server, linux server running aspx, configuring mail server ubuntu linux, ubuntu linux setup vpn server, running aspx pages linux server, pdf server running linux, linux server plesk install, ensim plesk migration linux server, repair plesk linux server, linux server vpn firewall ubuntu, install ioncube plesk linux server, migrate websites linux server linux server plesk, ubuntu linux server configuration, ubuntu linux server server, ubuntu linux server

Información del empleador:
( 30 comentarios ) Birmingham, United Kingdom

Nº del proyecto: #22230326

Adjudicado a:


I understand the problem and will probably be able to help, can you please send me a message so that I can get more information from you? Thanks!

$75 USD en 1 día
(606 comentarios)

6 freelancers están ofertando un promedio de $92 por este trabajo


I can fix the ssh2 issue for you. I am a skilled server admin with over 10 years experience. let discuss more via private message.

$40 USD en 2 días
(501 comentarios)

Hello, i'm a senior linux administrator in a hosting company. ssh2 extension is available for php 7.x so it's easy to solve your issue. cheers :)

$40 USD en 1 día
(226 comentarios)

Hi, I will audit complete configuration of the server and will fix SSH 2 issue and 503 error on the server. I do have more than 10 years of expertise in web hosting, server setup, server configuration, server optimisa Más

$45 USD en 1 día
(227 comentarios)

Hello my name is Nikos and Im working on the Linux server administration field for the past 6 years. Over these years I worked for two web hosting companies as a Senior Administrator managing their servers & providing Más

$127 USD en 1 día
(37 comentarios)

I can help you out in your issue. Dear Hiring Manager, I am Redhat Certified Engineer. I have 8 years of experience as a Linux System Administrator. I posses good knowledge of mail server like zimbra, sendmail, web s Más

$222 USD en 5 días
(34 comentarios)