How to install a PHP SSH2 Extension on Ubuntu Server 9.04

run the following command to do so:

#first we update the system

aptitude update

aptitude safe-upgrade

#install necessary packages

aptitude install php5-dev php5-cli php-pear build-essential

#configure openssl

openssl-dev zlib1g-dev

#install libssh2 ext

aptitude install libssh2-1-dev

#install the pecl ext

pecl install -f ssh2

#add the ext to the configuration file

echo ‘extension=ssh2.so’ > /etc/php5/conf.d/ssh2.ini

#restart the apache server

/etc/init.d/apache2 restart

that’s it enjoy

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • Print
  • StumbleUpon
  • Technorati
  • YahooMyWeb
  • Yigg
Bateau
September 11th, 2009 13:33

This doesnt work.

September 11th, 2009 16:08

What did you do exactly?
it worked for me.

November 17th, 2009 22:57

You saved me a lot of time. Thanks!

Valerio
February 21st, 2010 22:48

Thanks, it worked for me!

*Name
*Mail
Website
Comment