Recently I found the Plugin Manager module (http://drupal.org/project/plugin_manager) and thought that it sounded wickedly cool, especially because it can allow you to install modules at the click of a button, and run upgrades directly from the admin, fetching all files directly from Drupal's servers. Getting it setup however is another beast altogether, and one that I figured I should document if the need arose to do it again.

My setup is on Slicehost with an Ubuntu server install, where I have root access and can manipulate my server configuration any way I see fit. If you do not have a similar arrangement, I am not sure how you might go about using SSH with this module. Here is how I did it.

First, I setup the module in the normal fashion, wget from the link on the http://drupal.org/project/plugin_manager page, un-tar-gzip it in my /sites/all/modules/contrib directory, and enable it in admin.

Next, you will need a couple of things installed on the server. I found the instructions in the comments of this issue about SSH2 to be not quite necessary. They would lead you to compiling your own SSH2 install. This is not needed. What is needed is the following lines typed into your servers shell session:

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. You should!

pecl error - I get "command not found"

Hello,

I have Ubuntu 8.04 and am running my development website from it. When I run your suggested command sudo pecl install http://pecl.php.net/get/ssh2-0.11.0.tgz I get "command not found". I don't see pecl as a package. Is there an alternative method?

Upgrdes directly from the

Upgrdes directly from the admin is useful thanks a lot.

Might be out of date

Hi Chrys,

Looking at this, if you get command not found, it usually says something a little more specific, such as:

bash: mygibberishthatwontwork: command not found

Which command does bash supply to you as the one that isn't working?

Pat

Powered by Drupal, an open source content management system