- Make sure you have OpenSSL (0.9.8g or more recent) installed
- Download libssh2 from http://sourceforge.net/projects/libssh2/
- Extract and run ./configure with your choice of arguments: examples: --with-libssl-prefix=/usr/local/ssl --with-openssl
- Make and install libssh2
- Download the libssh2 language bindings (now 0.11.0 )for PHP from http://pecl.php.net/package/ssh2
- Extract. In the root directory of the extracted folder, type phpize (or full path if you have more than one php install)
- Then the familiar: ./configure && make
- Copy the modules/ssh2.so file to your PHP extensions directory
Showing posts with label phpize. Show all posts
Showing posts with label phpize. Show all posts
Monday, April 13, 2009
Timesaver: PHP and SSH2 (libssh2) - Installing or Upgrading
To install or upgrade PHP (5.x) with recent versions of libssh2 (now 1.1) from source (rather than through PECL):
Subscribe to:
Posts (Atom)