<?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>A Noted Path by Theodore Nguyen-Cao &#187; tutorial</title>
	<atom:link href="http://www.theodorenguyen-cao.com/tag/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theodorenguyen-cao.com</link>
	<description>Personal blog of Theodore Nguyen-Cao</description>
	<lastBuildDate>Wed, 21 Jul 2010 15:40:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Setup Apache on Mac OSX Leopard</title>
		<link>http://www.theodorenguyen-cao.com/2009/01/28/setup-apache-on-mac-osx-leopard/</link>
		<comments>http://www.theodorenguyen-cao.com/2009/01/28/setup-apache-on-mac-osx-leopard/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 05:46:01 +0000</pubDate>
		<dc:creator>Theo</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.theodorenguyen-cao.com/?p=227</guid>
		<description><![CDATA[I&#8217;ve had my Macbook for a little over a year now. However, I just recently found out Leopard comes with apache (apache2 to be specific) already installed. To verify this is true, open up Terminal and type >> apachectl -V Server version: Apache/2.2.9 (Unix) Server built: Sep 19 2008 10:58:54 Server's Module Magic Number: 20051115:15 [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had my Macbook for a little over a year now. However, I just recently found out Leopard comes with apache (apache2 to be specific) already installed.  To verify this is true, open up Terminal and type</p>
<pre class="console">
>> apachectl -V
Server version: Apache/2.2.9 (Unix)
Server built:   Sep 19 2008 10:58:54
Server's Module Magic Number: 20051115:15
Server loaded:  APR 1.2.7, APR-Util 1.2.7
Compiled using: APR 1.2.7, APR-Util 1.2.7
Architecture:   64-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_FLOCK_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/usr"
 -D SUEXEC_BIN="/usr/bin/suexec"
 -D DEFAULT_PIDLOG="/private/var/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="/private/var/run/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/private/etc/apache2/mime.types"
 -D SERVER_CONFIG_FILE="/private/etc/apache2/httpd.conf"
</pre>
<p>To start up apache, you can do it a couple of ways.</p>
<p>Type <code>sudo apachectl -k start</code></p>
<p>or</p>
<p><img src="http://www.theodorenguyen-cao.com/wp-content/uploads/2009/01/web-sharing.png" alt="web-sharing" title="web-sharing" width="500" height="419" class="aligncenter size-full wp-image-237" /></p>
<ol>
<li>Go to System Preferences</li>
<li>Click on Sharing</li>
<li>Check the box that says Web Sharing</li>
</ol>
<p>You can go to http://localhost or the URL provided in the Web Sharing screen to confirm apache is running and is able to serve up requests.</p>
<p>There is also a <code>~/Sites</code> directory in your home folder.  Apache is already setup to serve up files from this directory under <code>http://localhost/~<b>[username]</b></code> where <b>[username]</b> is your user account name. Any files here will be render for example ~/Sites/index.html is accessible from the browser via http://localhost/~<b>[username]</b>/index.html.</p>
<p>One note to get this to work.  Out of the box, all requests to /Sites result in a Forbidden 403 error. To resolve this issue, modify the conf file specified above as <code>SERVER_CONFIG_FILE</code> (<code>/private/etc/apache2/httpd.conf</code> in my case) from </p>
<pre class="console">
&lt;Directory /&gt;
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
&lt;/Directory&gt;
</pre>
<p>to</p>
<pre class="console">
&lt;Directory /&gt;
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Allow from all
&lt;/Directory&gt;
</pre>
<p>Restart apache (sudo apachectl -k restart) and try going to <code>http://localhost/~<b>[username]</b></code> again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theodorenguyen-cao.com/2009/01/28/setup-apache-on-mac-osx-leopard/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
