3

I read through all the incompatibilities prior to installing php 8 updates only to find out way too late that there is no support for the ssh2 extension yet that I can find. I am hoping that I am just missing something. I have been googling for a couple hours and all possible leads came up dry. Can anyone point me to the php 8 version of ssh2 extension, please?

Paulo Boaventura
  • 1,365
  • 1
  • 9
  • 29
Owen Parker
  • 253
  • 2
  • 12
  • [This PECL extension](https://pecl.php.net/package/ssh2/1.2) claims to be supported by _"PHP 8.0.0 or older_". See _"Dependencies"_ at the bottom of the page. – Tangentially Perpendicular Jan 14 '21 at 03:14
  • I downloaded that 1.2 version and there is nothing mentioning PHP 8 except that dependency notation. Since I do not know how to compile the source into a useable extension, I am left to wait until they release a proper extension for 8.0. I don't think it exists as of yet... – Owen Parker Jan 14 '21 at 06:44

2 Answers2

2

It looks like they've released this extension for PHP 8+. PECL Download

Matt Smith
  • 2,385
  • 2
  • 15
  • 14
  • 1
    Thanks Matt. I saw it go by in Ubuntu updates as well. I have not had the chance to evaluate and had rewritten a ton of code temporarily so I was sort of letting it age a tad. I appreciate the heads up though. I'll come back here and post my results once I get a chance to evaluate... – Owen Parker Mar 26 '21 at 15:19
0

Install "libssh2-1-dev" Package on Ubuntu

Quick Install Instructions of libssh2-1-dev on Ubuntu Server. It’s Super Easy! simply click on Copy button to copy the command and paste into your command line terminal using built-in APT package manager.

See below for quick step by step instructions of SSH commands, Copy/Paste to avoid miss-spelling or accidently installing a different package.

sudo apt-get install -y libssh2-1
Paulo Boaventura
  • 1,365
  • 1
  • 9
  • 29