<?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>bhiv.com &#187; Linux</title>
	<atom:link href="http://bhiv.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://bhiv.com</link>
	<description></description>
	<lastBuildDate>Tue, 15 Jul 2008 22:14:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Ditch Ubuntu&#8217;s PHP Packages</title>
		<link>http://bhiv.com/ditch-ubuntus-php-packages/</link>
		<comments>http://bhiv.com/ditch-ubuntus-php-packages/#comments</comments>
		<pubDate>Wed, 03 Jan 2007 17:05:47 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://bhiv.com/ditch-ubuntus-php-packages/</guid>
		<description><![CDATA[I had been frustrated with the state of Edgy&#8217;s php packages. I have been developing on 5.2.0 since attending the 2006 Zend Conference. I could have built everything myself, but I have been looking for an easy way to maintain the server. I can always move to a custom compiled server if it becomes necessary. [...]]]></description>
			<content:encoded><![CDATA[<p>I had been frustrated with the state of Edgy&#8217;s php packages. I have been developing on 5.2.0 since attending the 2006 Zend Conference. I could have built everything myself, but I have been looking for an easy way to maintain the server.  I can always move to a custom compiled server if it becomes necessary. Also, I haven&#8217;t seen backports for Feisty yet.</p>
<p>My solution has been <a href="http://dotdeb.org/">Dotdeb</a>. Not only do I get updated php binaries but they include the <a href="http://www.hardened-php.net/suhosin/index.html">Suhosin Patch</a>.</p>
<p>The installation is very easy:</p>
<p>Edit <span style="font-weight: bold">/etc/apt/sources.list</span> to include<br />
<span style="color: #003399; font-weight: bold">deb http://packages.dotdeb.org stable all</span><br style="color: #003399; font-weight: bold" /><span style="color: #003399; font-weight: bold"> deb-src http://packages.dotdeb.org stable all</span></p>
<p>then just run<br />
<span style="font-weight: bold"># apt-get update</span><br />
<span style="font-weight: bold"># apt-get upgrade</span></p>
<p>you will have to consent to unsigned packages. You should now have updated PHP packages.</p>
]]></content:encoded>
			<wfw:commentRss>http://bhiv.com/ditch-ubuntus-php-packages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PDO segfaults</title>
		<link>http://bhiv.com/pdo-segfaults/</link>
		<comments>http://bhiv.com/pdo-segfaults/#comments</comments>
		<pubDate>Wed, 05 Jul 2006 21:18:05 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://bhiv.com/2006/07/06/pdo-segfaults/</guid>
		<description><![CDATA[After getting PDO sucessfully installed on Ubuntu, I discovered that it would segfault on otherwise normal queries. I also fount out that I am not alone. Stuart Herbert has documented the PDO segfaults. This was sort of disappointing, but at least it was assigned in PECL&#8217;s bug tracking system.]]></description>
			<content:encoded><![CDATA[<p>After getting PDO sucessfully installed on Ubuntu, I discovered that it would segfault on otherwise normal queries. I also fount out that I am not alone. Stuart Herbert has documented the <a href="http://blog.stuartherbert.com/gentoo.php/2006/06/29/investigating_a_pdo_segfault">PDO segfaults</a>. This was sort of disappointing, but at least it was <a href="http://bugs.php.net/bug.php?id=37445">assigned</a> in PECL&#8217;s bug tracking system.</p>
]]></content:encoded>
			<wfw:commentRss>http://bhiv.com/pdo-segfaults/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting PDO to work with Ubuntu&#8217;s 6.06 LTS (Dapper Drake)</title>
		<link>http://bhiv.com/getting-pdo-to-work-with-ubuntus-606-lts-dapper-drake/</link>
		<comments>http://bhiv.com/getting-pdo-to-work-with-ubuntus-606-lts-dapper-drake/#comments</comments>
		<pubDate>Wed, 07 Jun 2006 18:06:43 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://bhiv.com/2006/06/07/getting-pdo-to-work-with-ubuntus-606-lts-dapper-drake/</guid>
		<description><![CDATA[I had recently purchased a small computer to act as my development server but I also wanted it to act as second desktop machines. I have plenty of experience using Debian as a server, but I decided to try the new distribution from Ubuntu. The install was pretty easy including getting PHP 5.1.2, Apache 2, [...]]]></description>
			<content:encoded><![CDATA[<p>I had recently purchased a small computer to act as my development server but I also wanted it to act as second desktop machines. I have plenty of experience using Debian as a server, but I decided to try the new distribution from <a href="http://www.ubuntu.com/">Ubuntu</a>.</p>
<p class="MsoNormal">The install was pretty easy including getting PHP 5.1.2, Apache 2, and MySQL 5 installed using the familiar apt-get command. (I wish they had included php 5.1.4, but this wasn’t a deal breaker)</p>
<p class="MsoNormal">I was dismayed to find that they didn’t have a package for <a href="http://php.net/pdo">PDO</a> extension (PHP Database Objects). So I installed the PDO via the pecl command:</p>
<p class="MsoNormal">bhiv@devserver:~# <strong>pecl install pdo</strong></p>
<p class="MsoNormal">It downloaded, phpized, configured, compiled and installed just fine. The only thing I had to do was add the line:</p>
<p class="MsoNormal">extension=pdo.so</p>
<p class="MsoNormal">to the files:</p>
<p class="MsoNormal">/etc/php/apache2/php.ini<br />
/etc/php/cli/php.ini
</p>
<p class="MsoNormal">(and restart apache)</p>
<p class="MsoNormal">But what good was the PDO without a driver for a database, in my case MySQL. So I tried:</p>
<p class="MsoNormal">bhiv@devserver:~# <strong>pecl install pdo_mysql</strong></p>
<p class="MsoNormal">It downloaded, phpized, then failed on the configure command with the error:</p>
<p class="MsoNormal">configure: error:<br />
You&#8217;ve configured extension pdo_mysql, which depends on extension pdo,<br />
but you&#8217;ve either not enabled pdo, or have disabled it.
</p>
<p class="MsoNormal">After trying a number of ways to force it to install, trying to foce the dotdeb distribution to install I found the simplest solution was to manually download the package with the following commands:</p>
<p class="MsoNormal">bhiv@devserver:~#<strong> wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz</strong></p>
<p class="MsoNormal">bhiv@devserver:~#<strong> tar zxvf PDO_MYSQL-1.0.2.tgz</strong></p>
<p class="MsoNormal">bhiv@devserver:~#<strong> cd PDO_MYSQL-1.0.2</strong></p>
<p class="MsoNormal">bhiv@devserver:~#<strong> phpize</strong></p>
<p class="MsoNormal">bhiv@devserver:~#<strong> vi configure<br />
</strong> comment out lines 4163-4173<strong> </strong>
</p>
<p class="MsoNormal">bhiv@devserver:~#<strong> ./configure</strong></p>
<p class="MsoNormal">bhiv@devserver:~#<strong> make</strong></p>
<p class="MsoNormal">bhiv@devserver:~#<strong> sudo make install<br />
</strong> add the lines:<br />
extension=pdo.so<br />
extension=pdo_mysql.so<br />
to the very bottom of the file.<strong> </strong>
</p>
<p class="MsoNormal">bhiv@devserver:~#<strong> sudo vi /etc/php/apache2/php.ini</strong></p>
<p class="MsoNormal">bhiv@devserver:~#<strong> sudo vi /etc/php/cli/php.ini</strong></p>
<p class="MsoNormal">bhiv@devserver:~#<strong> sudo apache2ctl restart</strong></p>
<p class="MsoNormal">Hopefully there will be a php-pdo package soon. But until then, this was the simplest way to get PDO installed on your new Ubuntu system.</p>
]]></content:encoded>
			<wfw:commentRss>http://bhiv.com/getting-pdo-to-work-with-ubuntus-606-lts-dapper-drake/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
	</channel>
</rss>

