mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-19 02:18:56 +00:00

- All id attributes are now xml:id - Add docbook namespace to all root elements - Replace <ulink /> with <link xlink:href /> - Minor markup fixes here and there git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@238160 c90b9560-bf6c-de11-be94-00142212c4b1
126 lines
3.6 KiB
XML
126 lines
3.6 KiB
XML
<?xml version='1.0' encoding='iso-8859-1'?>
|
|
<!-- $Revision: 1.5 $ -->
|
|
<section xml:id="ssh2.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
&reftitle.install;
|
|
<simpara>
|
|
<emphasis>Windows</emphasis> binaries may be found at
|
|
<link xlink:href="&url.php.snapshots;">&url.php.snapshots;</link>.
|
|
To install, download php_ssh2.dll to the folder specified
|
|
by your php.ini file's <literal>extension_dir</literal> directive.
|
|
Enable it by adding <literal>extension=php_ssh2.dll</literal>
|
|
to your php.ini and restarting your web server.
|
|
</simpara>
|
|
|
|
<screen>
|
|
<![CDATA[
|
|
extension_dir=c:/php5/exts/
|
|
extension=php_ssh2.dll
|
|
]]>
|
|
</screen>
|
|
|
|
<simpara>
|
|
<emphasis>Linux, BSD, and other *nix variants</emphasis>
|
|
can be compiled using the following steps:
|
|
</simpara>
|
|
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
Download and install <link xlink:href="&url.openssl;">OpenSSL</link>.
|
|
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 <literal>openssl-dev</literal>,
|
|
<literal>openssl_devel</literal>, or some variation thereof.
|
|
</simpara>
|
|
</listitem>
|
|
|
|
<listitem>
|
|
<simpara>
|
|
Download and install <link xlink:href="&url.libssh2;">libssh2</link>.
|
|
Typically this means executing the following command from
|
|
the libssh2 source tree. <literal>./configure && make all install</literal>.
|
|
</simpara>
|
|
</listitem>
|
|
|
|
<listitem>
|
|
<simpara>
|
|
Run the pear installer for PECL/ssh2: <literal>pear install ssh2</literal>
|
|
</simpara>
|
|
</listitem>
|
|
|
|
<listitem>
|
|
<simpara>
|
|
Copy <literal>ssh2.so</literal> from the directory indicated by the
|
|
build process to the location specified in your php.ini file under
|
|
<literal>extension_dir</literal>.
|
|
</simpara>
|
|
</listitem>
|
|
|
|
<listitem>
|
|
<simpara>
|
|
Add <literal>extension=ssh2.so</literal> to your php.ini
|
|
</simpara>
|
|
</listitem>
|
|
|
|
<listitem>
|
|
<simpara>
|
|
Restart your web server to reload your php.ini settings.
|
|
</simpara>
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
<note>
|
|
<title>Development Versions</title>
|
|
<simpara>
|
|
There are currently no <literal>stable</literal> versions of PECL/ssh2,
|
|
to force installation of the <literal>beta</literal> version of PECL/ssh2
|
|
execute: <literal>pear install ssh2-</literal><emphasis>beta</emphasis>
|
|
</simpara>
|
|
</note>
|
|
|
|
<tip>
|
|
<title>Compiling PECL/ssh2 without using the PEAR command</title>
|
|
<simpara>
|
|
Rather than using <literal>pear install ssh2</literal> to automatically
|
|
download and install PECL/ssh2, you may download the tarball from
|
|
<link xlink:href="&url.pecl.package;ssh2">PECL</link>.
|
|
From the root of the unpacked tarball, run:
|
|
<literal>phpize && ./configure --with-ssh2 && make</literal>
|
|
to generate <literal>ssh2.so</literal>.
|
|
Once built, continue the installation from step 4 above.
|
|
</simpara>
|
|
</tip>
|
|
|
|
<simpara>
|
|
&pecl.info;
|
|
<link xlink:href="&url.pecl.package;ssh2">&url.pecl.package;ssh2</link>.
|
|
</simpara>
|
|
<note>
|
|
<simpara>
|
|
You will need version 0.4 or greater of the libssh2 library
|
|
(possibly higher, see release notes).
|
|
</simpara>
|
|
</note>
|
|
</section>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|