Posted by geilhufe on September 11, 2008 at 10:55pm
Jump to:
| Project: | Plugin Manager |
| Version: | 6.x-1.1 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (works as designed) |
Issue Summary
I'm willing to write some docs for this module if you will outline what is going on....
ssh does not appear as an option for me: why?
Comments
#1
As per the FAQ, the SSH option only appears if you have the required PHP libraries installed. In my experience, most PHP installs do not have the SSH libraries.
#2
changing status
#3
Maybe in the situation there are not multiple backends available, it would be a good idea to not show a dropdown box?
#4
Could someone please tell what the so called "required PHP libraries" are?
I didn't find anything in the FAQ. More details please!
#5
I was finally able to install the SSH2 libraries for PHP.
You have to manually build it, but before building you have to apply the patch described on this page:
http://hostechs.com/2008/07/installing-ssh2-module-in-php-make-ssh2lo-er...
It's not really a Plugin Manager issue per se, but I'm posting it here so that others can benefit. I think otherwise it would be difficult to find (took me about 3 hours)
#6
I was able to do so without manually building the library. I documented it here: http://patrickteglia.com/blog/making-plugin-manager-work-slicehost-ubunt...
However the short of it is that you install the following:
sudo aptitude install libssh2-1-dev
sudo pecl install http://pecl.php.net/get/ssh2-0.11.0.tgz
sudo apt-get install openssl
Then you need to add the following line to the bottom of /etc/php5/apache2/php.ini or whereever your active php.ini is:
extension=ssh2.so
Then of course you need to restart your web server with a quick
sudo /etc/init.d/apache2 restart
and you should be good to go. Check your /admin/plugin_manager/settings page and see if you now have a SSH section.
#7
Just in case anyone else runs into this. I am using Ubuntu 9.04 and all I had to do was:
sudo apt-get install php5-ssh2Then I restarted my apache2 and it was good to go.
#8
In the case of Debian (lenny) the package that brings up the SSH option is different: libssh2-php
This had to be installed from the "backports", it's not part of the "stable" packages.
To activate the backports - which might make sense in other cases as well, read:
http://backports.debian.org/Instructions/
The package can now be installed with:
aptitude -t lenny-backports install libssh2-php
The SSH option is offered now, after restarting apache, anyhow I got new error messages:
http://drupal.org/node/929760