<?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>Gareth Hunt &#187; php</title>
	<atom:link href="http://www.garethhunt.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.garethhunt.com</link>
	<description>Firefox Addons, Mobile Web and living in the USA</description>
	<lastBuildDate>Fri, 19 Mar 2010 05:12:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP and Cygwin</title>
		<link>http://www.garethhunt.com/2008/02/06/php-and-cygwin/</link>
		<comments>http://www.garethhunt.com/2008/02/06/php-and-cygwin/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 04:00:08 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[cygwin]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.garethhunt.com/index.php/2008/02/06/php-and-cygwin/</guid>
		<description><![CDATA[I've been having some problems with PHP and Apache 2 on windows recently. I would be doing some development work and refreshing the page to test progress and after some short time Apache would stall and require a restart.  I tracked the problem down to using the binary module that comes with PHP.  [...]]]></description>
			<content:encoded><![CDATA[<p>I've been having some problems with <a title="php.net" href="http://www.php.net/">PHP</a> and <a title="Apache webserver" href="http://httpd.apache.org/">Apache 2</a> on windows recently. I would be doing some development work and refreshing the page to test progress and after some short time Apache would stall and require a restart.  I tracked the problem down to using the binary module that comes with PHP.  If that module was removed from the Apache configuration, the webserver would be just fine - but without PHP running.</p>
<p>So, I took a look at cygwin to see whether PHP could be made to work with it.  I already had the Apache 2 webserver package installed, so all I needed was PHP. Looking at the <a title="Cygwin packages" href="http://cygwin.com/packages/">official PHP packages</a>, there is no support for PHP.  After some searching around the net I found a blog called <a title="PHP on Cygwin" href="http://cygwinports.blogspot.com/2007/10/php-on-cygwin.html">Cygwin Ports</a>. This is linked to a <a title="Cygwin ports on sourceforge" href="http://sourceforge.net/projects/cygwin-ports/">sourceforge project</a> and it has a <a title="List of packages" href="ftp://sunsite.dk/projects/cygwinports/portslist.txt">PHP 5.2.5 package for cygwin</a>.</p>
<p>Installing packages from Cygwin Ports was as easy as <a title="Install instructions" href="http://cygwinports.dotsrc.org/">adding the URL</a> <a title="Cygwin Ports package download server" href="ftp://sourceware.org/pub/cygwinports">ftp://sourceware.org/pub/cygwinports</a> to the cygwin server list.  So, I followed the instructions for including their package, installed PHP and wrote a quick test script using only phpinfo():</p>
<p><code>&lt;?php phpinfo(); ?&gt;</code></p>
<p>I typed http://localhost/index.php and <strong>Success!</strong></p>
<p>The next step was to get something more complex working, specifically <a title="CMS Made Simple" href="http://www.cmsmadesimple.org/">CMS Made Simple</a>.  But I'll leave that for next time.</p>
<p><!--adsensestart--></p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">ftp://sourceware.org/pub/cygwinports</div>
]]></content:encoded>
			<wfw:commentRss>http://www.garethhunt.com/2008/02/06/php-and-cygwin/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
