title: Trying to install ssh2 on php
body: <p>Firstly I'm running PHP 5.3.3, CentOS 5.7 (2.6.18-274.3.1.el5xen)</p>
  
  <p>Secondly, I basically have no idea what I'm doing... sorry!</p>
  
  <p>First of all I installed libssh2 from <a href="http://www.libssh2.org/" rel="nofollow">http://www.libssh2.org/</a>.  Ran configure, make, make install.  Don't really understand all of this stuff, but following online instructions seemed to work.</p>
  
  <p>Then ran</p>
  
  <pre><code>pecl install ssh2
  </code></pre>
  
  <p>So far so good.</p>
  
  <p>Added the relevant extension line to php.ini, as instructed.  Restarted apache:</p>
  
  <pre><code>service httpd restart
  </code></pre>
  
  <p>All good.</p>
  
  <p>But then can't find any reference to ssh in phpInfo().</p>
  
  <p>Tried</p>
  
  <pre><code>php -m | grep ssh2
  </code></pre>
  
  <p>and got the following error:</p>
  
  <pre><code>PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ssh2.so' - /usr/lib64/php/modules/ssh2.so: undefined symbol: libssh2_sftp_readdir_ex in Unknown on line 0
  </code></pre>
  
  <p>What have I done wrong/missed out, and how can I fix it?</p>