<?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>bingshui.org &#187; Apache</title>
	<atom:link href="http://www.bingshui.org/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bingshui.org</link>
	<description>the Life of Zim</description>
	<lastBuildDate>Thu, 02 Feb 2012 16:27:42 +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>Apache2 .htaccess not working?</title>
		<link>http://www.bingshui.org/tech/apache2-htaccess-not-working/</link>
		<comments>http://www.bingshui.org/tech/apache2-htaccess-not-working/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 00:44:14 +0000</pubDate>
		<dc:creator>dzimney</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[AccessFileName]]></category>
		<category><![CDATA[AllowOverride]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache2]]></category>
		<category><![CDATA[Modules]]></category>
		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://www.bingshui.org/?p=1340</guid>
		<description><![CDATA[So there are a ton of possible reasons why your .htaccess files might not be working. If the AllowOverride is set to None in a parent directory, that could be causing problems. If AccessFileName is not set correctly in your apache2.conf, that could be the source of your misery. In my case, it was the [...]]]></description>
			<content:encoded><![CDATA[<p>So there are a ton of possible reasons why your .htaccess files might not be working. If the AllowOverride is set to None in a parent directory, that could be causing problems. If AccessFileName is not set correctly in your apache2.conf, that could be the source of your misery. In my case, it was the rewrite module. It appeared as though my .htaccess files weren&#8217;t being read by the server because rewrites is basically all then do on my sandbox. So, what&#8217;d I do? Spent the past six hours fighting with all the things that were working only to find that there&#8217;s a rewrite module that has to be enabled. Who knew.</p>
<p>So, enabling the module is pretty simple, assuming you&#8217;ve got it installed. Pretty sure it&#8217;s a default module though, it should be at least, but then again it should also be enabled by default in my opinion. Anway, you just need to make a symbolic link to the rewrite.load file from the <i>mods-available</i> directory to the <i>mods-enabled</i> directory (all found in your <i>apache2</i> directory, usually found at <i>/etc/apache2</i>).</p>
<p><strong>QUICK ANSWER:</strong><br />
Open a terminal and run the following:</p>
<p><code>$ cd /etc/apache2/mods-enabled<br />
$ ln -s /etc/apache2/mods-available/rewrite.load rewrite.load</code></p>
<p> <strong>NOTES:</strong><br />
There are couple of things to note here. First, we are assuming that Apache is installed at <i>/etc/apache2</i> on your system. We are also assuming that you have the rewrite module file <i>rewrite.load</i> in your <i>/etc/apach2/mods-available</i> directory. Finally it is important to note that when running the second line in the terminal, the one creating the symbolic link, you have to enter the full path to the file in the first parameter. You can&#8217;t shorthand it or enter it as a relative path.</p>
<p>Also, you can do a quick check of your <i>mods-enabled</i> directory. If there&#8217;s a link to the rewrite.load file already in there, this solution obviously isn&#8217;t going to work for you, so good luck.</p>
<p>Hope this saves someone else six hours of their life.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bingshui.org/tech/apache2-htaccess-not-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache on OS X 10.5 (launchctl error)</title>
		<link>http://www.bingshui.org/tech/apache-on-os-x-10-5-launchctl-error/</link>
		<comments>http://www.bingshui.org/tech/apache-on-os-x-10-5-launchctl-error/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 00:33:48 +0000</pubDate>
		<dc:creator>dzimney</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[10.5]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[apachectl]]></category>
		<category><![CDATA[failed]]></category>
		<category><![CDATA[launchctl]]></category>
		<category><![CDATA[org.apache.httpd.pliist]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Terminal]]></category>

		<guid isPermaLink="false">http://www.bingshui.org/?p=982</guid>
		<description><![CDATA[Today I was messing around with the built in Apache server on my Mac. What I was doing seemed simple enough; start my apache server with Web Sharing turned off in my system preferences. So I turned off Web Sharing and went for my Terminal, entering: apachectl graceful Expecting Apache to restart/start I was surprised [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was messing around with the built in Apache server on my Mac. What I was doing seemed simple enough; start my apache server with Web Sharing turned off in my system preferences. So I turned off Web Sharing and went for my Terminal, entering:</p>
<blockquote style="font-family:Courier"><p>apachectl graceful</p></blockquote>
<p>Expecting Apache to restart/start I was surprised to get this error:</p>
<blockquote style="font-family:Courier"><p>launchctl: CFURLWriteDataAndPropertiesToResource( /System/Library/LaunchDaemons/org.apache.httpd.plist) failed: -10</p></blockquote>
<p>After searching around online for a bit I realized that my problem was I failed to enter the command as root (or I forgot to put <span style="font-family:Courier">sudo</span> in front of my command.<br />
With a second attempt I entered:</p>
<blockquote style="font-family:Courier"><p>sudo apachectl graceful</p></blockquote>
<p>And vuala, apache is on. No errors. However, now when I enter:</p>
<blockquote style="font-family:Courier"><p>sudo apachectl status</p></blockquote>
<p>I get this error:</p>
<blockquote style="font-family:Courier"><p>/usr/sbin/apachectl: line 106: lynx: command not found</p></blockquote>
<p>Not sure what that&#8217;s about. If anyone&#8217;s got any ideas, I&#8217;d appreciate it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bingshui.org/tech/apache-on-os-x-10-5-launchctl-error/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

