<?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>What I Think &#187; web sharing</title>
	<atom:link href="http://www.paulmc.org/whatithink/tag/web-sharing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.paulmc.org/whatithink</link>
	<description>Yes. I&#039;m back.</description>
	<lastBuildDate>Sat, 24 Jul 2010 20:23:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>&#8220;The connection was refused&#8221; Error Message When Using Leopard&#8217;s Web Sharing</title>
		<link>http://www.paulmc.org/whatithink/2008/11/24/the-connection-was-refused-error-message-when-using-leopards-web-sharing/</link>
		<comments>http://www.paulmc.org/whatithink/2008/11/24/the-connection-was-refused-error-message-when-using-leopards-web-sharing/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 13:50:40 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[web sharing]]></category>

		<guid isPermaLink="false">http://www.paulmc.org/whatithink/?p=683</guid>
		<description><![CDATA[
I came across this problem when trying to enable Web Sharing on my Macbook:



Seems that even if the Sharing Preferences Pane shows that Apache is running, it&#8217;s not. A simple Terminal command will show you:



$ ps aux &#124; grep httpd
pmac      1796   0.0  0.0   599820  [...]]]></description>
			<content:encoded><![CDATA[<p>
I came across this problem when trying to enable Web Sharing on my Macbook:
</p>

<div id="attachment_689" class="wp-caption aligncenter" style="width: 510px"><a href="http://www.paulmc.org/whatithink/wp-content/uploads/2008/11/conn_refused.png"><img src="http://www.paulmc.org/whatithink/wp-content/uploads/2008/11/conn_refused-500x269.png" alt="Connection Refused Error" title="Connection Refused Error" width="500" height="269" class="size-medium wp-image-689" /></a><p class="wp-caption-text">Connection Refused Error</p></div>

<p>
Seems that even if the Sharing Preferences Pane shows that Apache is running, it&#8217;s not. A simple Terminal command will show you:
</p>
<p>
<code><br />
$ ps aux | grep httpd<br />
pmac      1796   0.0  0.0   599820    464 s001  R+   12:52pm   0:00.00 grep httpd<br />
</code>
</p>
<p>
After a lot of searching, I found the solution. There&#8217;s an issue with the Leopard Apache upgrade that somehow forgets to create the log files that Apache needs to start. To fix the problem, type the following commands into Terminal:
</p>
<p>
<code><br />
sudo touch /var/log/apache2/access_log<br/><br />
sudo touch /var/log/apache2/error_log<br/><br />
sudo chmod 600 /var/log/apache2/access_log<br/><br />
sudo chmod 600 /var/log/apache2/error_log<br/><br />
</code>
</p>
<p>
Restart the Web Sharing Service by unticking and ticking the box is System Preferences or by running the following command in Terminal:
</p>
<p>
<code><br />
sudo apachectl restart<br />
</code>
</p>
<p>
Apache should be up and running and you can test this by clicking this link: <a href="http://localhost/">http://localhost</a>. If everything goes to plan you should see the following page:
</p>

<div id="attachment_686" class="wp-caption aligncenter" style="width: 510px"><a href="http://www.paulmc.org/whatithink/wp-content/uploads/2008/11/apache_start.png"><img src="http://www.paulmc.org/whatithink/wp-content/uploads/2008/11/apache_start-500x312.png" alt="Apache Start Page" title="Apache Start Page" width="500" height="312" class="size-medium wp-image-686" /></a><p class="wp-caption-text">Apache Start Page</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.paulmc.org/whatithink/2008/11/24/the-connection-was-refused-error-message-when-using-leopards-web-sharing/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
