File: installation.xml

package info (click to toggle)
php-doc 20081024-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 57,752 kB
  • ctags: 3,858
  • sloc: xml: 686,554; php: 19,446; perl: 610; cpp: 500; makefile: 336; sh: 114; awk: 28
file content (126 lines) | stat: -rw-r--r-- 3,699 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?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 &amp;&amp; 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 &amp;&amp; ./configure --with-ssh2 &amp;&amp; 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
-->