<?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>The Netocracy &#187; apache</title>
	<atom:link href="http://www.thenetocracy.com/tags/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thenetocracy.com</link>
	<description>Liberty Prime is go</description>
	<lastBuildDate>Mon, 21 Dec 2009 07:01:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Apple Releases Security Update 2008-007 and Breaks my Apache</title>
		<link>http://www.thenetocracy.com/2008/10/11/apple-releases-security-update-2008-007-breaks-my-apache/</link>
		<comments>http://www.thenetocracy.com/2008/10/11/apple-releases-security-update-2008-007-breaks-my-apache/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 13:23:16 +0000</pubDate>
		<dc:creator>Jesse</dc:creator>
				<category><![CDATA[Everything Everything]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php5.3]]></category>

		<guid isPermaLink="false">http://www.thenetocracy.com/?p=45</guid>
		<description><![CDATA[As soon as I installed the Apple Security Update 2008-007 this afternoon, restarted and re-opened firefox to all my previous tabs I knew something was up  when my localhost suddenly wasn&#8217;t responding. According to Apple, this fix updates to a &#8230; <a href="http://www.thenetocracy.com/2008/10/11/apple-releases-security-update-2008-007-breaks-my-apache/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As soon as I installed the <a title="Apple" href="http://support.apple.com/kb/HT3216">Apple Security Update 2008-007</a> this afternoon, restarted and re-opened firefox to all my previous tabs I knew something was up  when my localhost suddenly wasn&#8217;t responding.</p>
<p>According to Apple, this fix updates to a new version of Apache 2:</p>
<blockquote><p>Apache is updated to version 2.2.9 to address several vulnerabilities, the most serious of which may lead to cross site request forgery.</p></blockquote>
<p>In order to get Apache Running, the first thing I tried was openening System Preferences and enabling/disabling web sharing a couple of times  &#8211; <i>which did nothing.</i></p>
<p>Second thing was trying to run <strong>httpd</strong> from the command line. Again, no success but it gave me some useful errors. For some reason it was attempting to load some old set of config files that I hadn&#8217;t used for ages &#8211; so I promptly removed those and solved those &#8216;syntax errors&#8217; (cleanups are good!)</p>
<p>Once my config files were in order, I was back to square one with this error&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">httpd: Syntax error on line <span style="color: #000000;">116</span> of <span style="color: #000000; font-weight: bold;">/</span>private<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>httpd.conf: Cannot load <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>libexec<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>libphp5.so into server: dlopen<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>libexec<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>libphp5.so, <span style="color: #000000;">10</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: no suitable image found.  
Did <span style="color: #c20cb9; font-weight: bold;">find</span>:\n\t<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>libexec<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>libphp5.so: mach-o, but wrong architecture</pre></div></div>

<p>All this meant was that the compiled version of PHP5.3 I had (<a href="http://www.thenetocracy.com/2008/10/06/installing-php-53-on-mac-os-x-leopard/">see my other post on running php 5.3</a>) was compiled at 32bit, and Apple had set Apache back to 64Bit. Two commands solved this problem&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>httpd <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>httpd-fat
<span style="color: #c20cb9; font-weight: bold;">sudo</span> lipo <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>httpd <span style="color: #660033;">-thin</span> i386 <span style="color: #660033;">-output</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>httpd</pre></div></div>

<p>Note that the first command simply backs up httpd.</p>
<p>Since I&#8217;ve got web-sharing enabled, I assume that there&#8217;s some system that keeps track of the httpd processes, &#8211; as soon as killed the running 64bit httpd processes in Activity Monitor, it all seemed to be working again.</p>
<p>Just one note here: I did re-compile PHP again with the command line I posted earlier. There were no errors, and no differences so I don&#8217;t think that it was necessary, but I did try it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thenetocracy.com/2008/10/11/apple-releases-security-update-2008-007-breaks-my-apache/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
