From 024838e1398acbdfc38e856d42388003ad1a3518 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Tue, 22 Feb 2005 00:18:16 +0000 Subject: [PATCH] Provide installation instructions git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@180399 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/ssh2/installation.xml | 126 ++++++++++++++++++++++++++++++++ reference/ssh2/reference.xml | 15 +--- 2 files changed, 129 insertions(+), 12 deletions(-) create mode 100644 reference/ssh2/installation.xml diff --git a/reference/ssh2/installation.xml b/reference/ssh2/installation.xml new file mode 100644 index 0000000000..1c396a6240 --- /dev/null +++ b/reference/ssh2/installation.xml @@ -0,0 +1,126 @@ + + +
+ &reftitle.install; + + Windows binaries may be found at + &url.php.snapshots;. + To install, download php_ssh2.dll to the folder specified + by your php.ini file's extension_dir directive. + Enable it by adding extension=php_ssh2.dll + to your php.ini and restarting your webserver. + + + + + + + + Linux, BSD, and other *nix variants + can be compiled using the following steps: + + + + + + Download and install OpenSSL. + If you install OpenSSL via your distribution's packaging system + be sure to install the development libraries as well. + This will typically be a package named openssl-dev, + openssl_devel, or some variation thereof. + + + + + + Download and install libssh2. + Typically this means executing the following command from + the libssh2 source tree. ./configure && make all install. + + + + + + Run the pear installer for PECL/ssh2: pear install ssh2 + + + + + + Copy ssh2.so from the directory indicated by the + build process to the location specified in your php.ini file under + extension_dir. + + + + + + Add extension=ssh2.so to your php.ini + + + + + + Restart your webserver to reload your php.ini settings. + + + + + + + Development Versions + + There are currently no stable versions of PECL/ssh2, + to force installation of the beta version of PECL/ssh2 + execute: pear install ssh2-beta + + + + + Compiling PECL/ssh2 without using the PEAR command + + Rather than using pear install ssh2 to automatically + download and install PECL/ssh2, you may download the tarball from + PECL. + From the root of the unpacked tarball, run: + phpize && ./configure && make to generate + ssh2.so. + Once built, continue the installation from step 4 above. + + + + + &pecl.info; + &url.pecl.package;ssh2. + + + + You will need version 0.4 or greater of the libssh2 library + (possibly higher, see release notes). + + +
+ + diff --git a/reference/ssh2/reference.xml b/reference/ssh2/reference.xml index ad2d42e685..5b24194fde 100644 --- a/reference/ssh2/reference.xml +++ b/reference/ssh2/reference.xml @@ -1,5 +1,5 @@ - + Secure Shell2 Functions @@ -14,17 +14,8 @@ on a remote machine using a secure cryptographic transport. -
- &reftitle.install; - - &pecl.info; - &url.pecl.package;ssh2. - - - You will also need version 0.4 or greater of the libssh2 library - (possibly higher, see release notes). - -
+ + &reference.ssh2.installation; &reference.ssh2.constants;