Restricted Notes by a Geek

Gentoo

SSH2 support in PHP on Gentoo

by admin on Feb.19, 2008, under Gentoo

The last couple of days I had a strange but tough time getting SSH2 support for PHP on Gentoo. I love gentoo, its the easiest Linux Distro if you want always up to date software. Now we run a few boxes where php scripts need to ssh to some nix boxes and for that you need this module.

The default way to install this module on any linux distro is to have pear support with linux and then just use that to download/compile/install the module in one go with the command:
$ pecl install ssh2-beta

On gentoo all of this works out perfect except PHP will complain that ssh2.so is not a php library.

After hours of research and searching I found this ebuild pecl-ssh2-0.10.ebuild on plaes.org

This made life much easier but is not complete if you have no idea what you are doing. I made a complete ebuild package available here:
Complete SSH2 ebuild

This will download the module and compile it using your make flags and use flags in your Gentoo distro and install all the config files needed to enable this in php cgi/cli/apache2

2 Comments :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...