<?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>VirtualChaos - Nadeem's blog &#187; apache2</title>
	<atom:link href="http://www.virtualchaos.co.uk/blog/tag/apache2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.virtualchaos.co.uk/blog</link>
	<description>I thought what I'd do was, I'd pretend I was one of those deaf mutes ... or should I?</description>
	<lastBuildDate>Fri, 20 Jan 2012 09:27:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Installing PHP5 +apache2 using Macports on Leopard</title>
		<link>http://www.virtualchaos.co.uk/blog/2008/08/23/installing-php5-apache2-using-macports-on-leopard/</link>
		<comments>http://www.virtualchaos.co.uk/blog/2008/08/23/installing-php5-apache2-using-macports-on-leopard/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 11:47:05 +0000</pubDate>
		<dc:creator>nadeem.shabir</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Talis]]></category>

		<guid isPermaLink="false">http://www.virtualchaos.co.uk/blog/?p=458</guid>
		<description><![CDATA[I have had all sorts of fun and games trying to get php5 and apache2 installed on Leopard using macports. Six months ago I eventually gave up after lodging a ticket with macports.org no matter how hard I tried or what advise I followed it simply wouldn&#8217;t install. In the end my colleague Andrew tar&#8217;ed [...]]]></description>
			<content:encoded><![CDATA[<p>
I have had all sorts of fun and games trying to get php5 and apache2 installed on Leopard using macports. Six months ago I eventually gave up after lodging a <a href="http://trac.macports.org/ticket/13953">ticket</a> with macports.org no matter how hard I tried or what advise I followed it simply wouldn&#8217;t install. In the end my colleague <a href="http://www.astilla.co.uk">Andrew</a> tar&#8217;ed up his <code>/opt</code> folder and I copied that onto my machine and did a chown to my username/group and had a working php5 and apache2 install.
</p>
<p>
I had some problems yesterday getting yaz installed on ubuntu and decided to follow some instructions that Andrew gave me to install it on Leopard instead. I decided to bite the bullet and attempt to do a pure PHP5 apache2 install under macports again, and then use port to install php-yaz. Suffice to say that I ran into similar problems to those I encountered six months ago.
</p>
<p>
However after persevering I managed to get it all installed what follows is a summary of how I got it to work, in case anyone else out there ( and judging by the board posts that&#8217;s lots of you) is still struggling, or waiting for Macports 1.7.0 to be released.
</p>
<p><div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re3"># first <span class="kw2">install</span> macports <span class="nu0">1.6</span><span class="nu0">.0</span> download it from:</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re3"># http://svn.macports.org/repository/macports/downloads/MacPorts<span class="nu0">-1.6</span><span class="nu0">.0</span>/MacPorts<span class="nu0">-1.6</span><span class="nu0">.0</span><span class="nu0">-10.5</span>-Leopard.dmg</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2"><span class="re3"># check port is installed ok , port version should be correct</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">sudo</span> port version</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re3"># <span class="kw1">do</span> a self update and a sync</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">sudo</span> port selfupdate</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">sudo</span> port <span class="kw2">sync</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re3"># you have to <span class="kw2">install</span> <span class="kw2">gawk</span>, <span class="kw2">gmake</span> and <span class="kw2">nawk</span> before proceeding</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">sudo</span> port <span class="kw2">install</span> <span class="kw2">gawk</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">sudo</span> port <span class="kw2">install</span> <span class="kw2">gmake</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">sudo</span> port <span class="kw2">install</span> <span class="kw2">nawk</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2"><span class="re3"># now attempt to <span class="kw2">install</span> php5 +apache2 and mysql</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re3"># you seem to have to <span class="kw2">install</span> it with mysql or it will fail regardless.</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">sudo</span> port <span class="kw2">install</span> php5 +apache2 +mysql5 +server</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2"><span class="re3"># the above step will still fail <span class="br0">&#40;</span>or did <span class="kw1">for</span> me<span class="br0">&#41;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="re3"># it fails during msyql5 <span class="kw2">install</span>, so clean and <span class="kw2">install</span> TK</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re3"># <span class="kw1">then</span> retry just mysql</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">sudo</span> port clean mysql5</div>
</li>
<li class="li2">
<div class="de2"><span class="kw2">sudo</span> port <span class="kw2">install</span> TK</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">sudo</span> port <span class="kw2">install</span> mysql5 +server</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re3">#once this succeeds run the original <span class="kw3">command</span> again</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2"><span class="kw2">sudo</span> port <span class="kw2">install</span> php5 +apache2 +mysql5 +server</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re3"># this should now go all the way through and work</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
<p>Once it is done follow the original instructions <a href="http://samuraicoder.net/installing_php_and_mysql_leopard_macports_prealpha">here</a>. </p>
<p>
This is so convoluted!! I hope the Macports folks sort this out. Even the ticket I raised didn&#8217;t specify the steps I took as a fix, and I basically stumbled onto them through trial and error. If anyone has a better explanation for why this worked then please let me know. Otherwise I hope it helps anyone else experiencing the same difficulties.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.virtualchaos.co.uk/blog/2008/08/23/installing-php5-apache2-using-macports-on-leopard/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

