<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kevin Bradwick &#187; CentOS</title>
	<atom:link href="http://www.kevinbradwick.co.uk/category/linux/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kevinbradwick.co.uk</link>
	<description>Web development and design blog</description>
	<lastBuildDate>Fri, 09 Jul 2010 08:11:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to install LibSSH2 on a CentOS 5 system</title>
		<link>http://www.kevinbradwick.co.uk/2010/01/how-to-install-libssh2-on-a-centos-5-system/</link>
		<comments>http://www.kevinbradwick.co.uk/2010/01/how-to-install-libssh2-on-a-centos-5-system/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 18:02:54 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[libssh2]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.kevinbradwick.co.uk/?p=42</guid>
		<description><![CDATA[Libssh2 is a C library implementing the SSH2 protocol for PHP. Here&#8217;s how to get it installed on a CentOS system running PHP 5.1.6. First step is to install some dependencies. yum install automake php-devel libtool openssl-devel gcc++ gcc Next, let&#8217;s download the latest release of libssh2 (1.2.2 at time of writing), unpack and install [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.libssh2.org/">Libssh2</a> is a C library implementing the SSH2 protocol for PHP. Here&#8217;s how to get it installed on a CentOS system running PHP 5.1.6.</p>
<p>First step is to install some dependencies.</p>
<pre name="code" class="php">
yum install automake php-devel libtool openssl-devel gcc++ gcc
</pre>
<p>Next, let&#8217;s download the latest release of libssh2 (1.2.2 at time of writing), unpack and install</p>
<pre name="code" class="php">
# cd /tmp
# wget http://www.libssh2.org/download/libssh2-1.2.2.tar.gz
# tar -zxf libssh2-1.2.2.tar.gz
# cd libssh2-1.2.2
# ./configure
# make all install
# cd ..
# rm -rf libssh2-1.2.2
</pre>
<p>Now we need to install the PHP bindings.</p>
<pre name="code" class="php">
# cd /usr/lib/php (for x64 systems use /usr/lib64/php)
# wget http://pecl.php.net/get/ssh2-0.11.0.tgz
# tar -zxf ssh2-0.11.0.tgz
# cd ssh2-0.11.0
# phpize &amp;&amp; ./configure –with-ssh2 &amp;&amp; make
# cd modules
# mv ssh2.so /usr/lib/php/modules/ssh2.so
# cd /usr/lib/php
# rm -rf ssh2-0.11.0
# rm -f ssh2-0.11.0.tgz
</pre>
<p>Update the PHP ini file and add the ssh2.so extension like this.</p>
<pre name="code" class="php">
# vi /etc/php.ini
extension_dir = “/usr/lib/php/modules”
extension = ssh2.so
</pre>
<p>Now restart apache and everything should be installed. You can test it my looking at the out put of <strong># php -m</strong> that will list all of the installed modules.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevinbradwick.co.uk/2010/01/how-to-install-libssh2-on-a-centos-5-system/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
