<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to set up virtual hosts on Mac OS X 10.5 (Leopard)</title>
	<atom:link href="http://danilo.ariadoss.com/setup-virtual-hosts-mac-os-x-leopard/feed/" rel="self" type="application/rss+xml" />
	<link>http://danilo.ariadoss.com/setup-virtual-hosts-mac-os-x-leopard/</link>
	<description>Incoherent babble served on a silver platter.</description>
	<lastBuildDate>Sun, 05 Sep 2010 22:37:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mark</title>
		<link>http://danilo.ariadoss.com/setup-virtual-hosts-mac-os-x-leopard/comment-page-1/#comment-15898</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 22 Jun 2010 15:32:35 +0000</pubDate>
		<guid isPermaLink="false">http://danilo.ariadoss.com/?p=190#comment-15898</guid>
		<description>considering that your tutorial is by far the most well thought out and explained, maybe you could offer some further assistance.  Like many, my goal is to create a web dev environment as I learn before posting up on a hosted server.  I keep my computer partitioned with the root partition housing the OS of course and the final partition containing all my user content which includes my sites.  My complication lies where I try to set up a virtual host.  Skipping the details of my two weeks of fails and successes, here is a snapshot of my current situation…

Prior to following your tutorial on setting up apache, php, and MySQL, I was using XAMPP.  For whatever reason my relative links were not working properly.  When i came across some clue that suggests i should us a virtual host to get the relative links working i then followed your next tutorial on this subject.  I was successful in getting XAMPP to work with a virtual host but then &quot;localhost&quot; reports back as &quot;404 page not found&quot;.  Using XAMPP i need to access the MySQL folder where my databases live.  Without using a virtual host i have been successful in housing my site in my user sites folder and accessing the XAMPP admin page along with the PHPmyAdmin.  

I&#039;m in &quot;process of elimination&quot; mode as i try to troubleshoot my way to some resolve.  I killed XAMPP and followed your tutorial in setting up Apache/php/MySQL then repeated your instructions for setting up the virtual host and ended up with the same results… &quot;404 not found&quot;.   I was under the belief that i could have unknowingly messed up some configuration in XAMPP so by trying the native OS Apache install at least it gives some hope that i didn&#039;t mess up XAMPP. 

I then assumed i might have messed up some configuration within the OS… having several partitions and another &quot;fresh&quot; install of OS 10.6 I then booted into this partition and repeated your tutorials.  Again, success using Apache but no luck when trying to access localhost.  Same results!  So, I think it&#039;s safe to say that my OS config is fine, XAMPP config is fine… which brings me to the common place of the httpd.conf or the vhosts.conf files.  Seeing as I can revert back at any time to dropping the virtual hosts and using only the httpd.conf file with success, this leads me to believe that I don&#039;t have the write perameters in my vhosts file.   Now I have tried more numerous configurations than it is worth posting but here is my current… 


####   	LOCALHOST - DO NOT CHANGE    ####
#

	ServerName localhost
	DocumentRoot “/Applications/XAMPP/xamppfiles/htdocs”
	
	Options Indexes FollowSymLinks Includes execCGI
	AllowOverride None
	Order Allow,Deny
	Allow From All



####	VIRTUAL HOST - MySite	####
#

    ServerAdmin removed4posting@gmail.com
    DocumentRoot &quot;/Volumes/UserData/Sites/MySite&quot;
    ServerName svr.loc
    ErrorLog &quot;logs/svr.loc-error_log&quot;
    CustomLog &quot;logs/svr.loc-access_log&quot; common


Now, i wouldn&#039;t mind working in the native set up using OS X&#039;s Apache install, but i run into the complication of using php 5.3.1 which has reported bugs that prevent me from using mediawiki.  I have tried what i can find and so far the tutorials to up/downgrade php have been much less than clear.   My goal was to learn web dev not web hosting and have yet to be able to really get started.  Please help : )</description>
		<content:encoded><![CDATA[<p>considering that your tutorial is by far the most well thought out and explained, maybe you could offer some further assistance.  Like many, my goal is to create a web dev environment as I learn before posting up on a hosted server.  I keep my computer partitioned with the root partition housing the OS of course and the final partition containing all my user content which includes my sites.  My complication lies where I try to set up a virtual host.  Skipping the details of my two weeks of fails and successes, here is a snapshot of my current situation…</p>
<p>Prior to following your tutorial on setting up apache, php, and MySQL, I was using XAMPP.  For whatever reason my relative links were not working properly.  When i came across some clue that suggests i should us a virtual host to get the relative links working i then followed your next tutorial on this subject.  I was successful in getting XAMPP to work with a virtual host but then &#8220;localhost&#8221; reports back as &#8220;404 page not found&#8221;.  Using XAMPP i need to access the MySQL folder where my databases live.  Without using a virtual host i have been successful in housing my site in my user sites folder and accessing the XAMPP admin page along with the PHPmyAdmin.  </p>
<p>I&#8217;m in &#8220;process of elimination&#8221; mode as i try to troubleshoot my way to some resolve.  I killed XAMPP and followed your tutorial in setting up Apache/php/MySQL then repeated your instructions for setting up the virtual host and ended up with the same results… &#8220;404 not found&#8221;.   I was under the belief that i could have unknowingly messed up some configuration in XAMPP so by trying the native OS Apache install at least it gives some hope that i didn&#8217;t mess up XAMPP. </p>
<p>I then assumed i might have messed up some configuration within the OS… having several partitions and another &#8220;fresh&#8221; install of OS 10.6 I then booted into this partition and repeated your tutorials.  Again, success using Apache but no luck when trying to access localhost.  Same results!  So, I think it&#8217;s safe to say that my OS config is fine, XAMPP config is fine… which brings me to the common place of the httpd.conf or the vhosts.conf files.  Seeing as I can revert back at any time to dropping the virtual hosts and using only the httpd.conf file with success, this leads me to believe that I don&#8217;t have the write perameters in my vhosts file.   Now I have tried more numerous configurations than it is worth posting but here is my current… </p>
<p>####   	LOCALHOST &#8211; DO NOT CHANGE    ####<br />
#</p>
<p>	ServerName localhost<br />
	DocumentRoot “/Applications/XAMPP/xamppfiles/htdocs”</p>
<p>	Options Indexes FollowSymLinks Includes execCGI<br />
	AllowOverride None<br />
	Order Allow,Deny<br />
	Allow From All</p>
<p>####	VIRTUAL HOST &#8211; MySite	####<br />
#</p>
<p>    ServerAdmin <a href="mailto:removed4posting@gmail.com">removed4posting@gmail.com</a><br />
    DocumentRoot &#8220;/Volumes/UserData/Sites/MySite&#8221;<br />
    ServerName svr.loc<br />
    ErrorLog &#8220;logs/svr.loc-error_log&#8221;<br />
    CustomLog &#8220;logs/svr.loc-access_log&#8221; common</p>
<p>Now, i wouldn&#8217;t mind working in the native set up using OS X&#8217;s Apache install, but i run into the complication of using php 5.3.1 which has reported bugs that prevent me from using mediawiki.  I have tried what i can find and so far the tutorials to up/downgrade php have been much less than clear.   My goal was to learn web dev not web hosting and have yet to be able to really get started.  Please help : )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://danilo.ariadoss.com/setup-virtual-hosts-mac-os-x-leopard/comment-page-1/#comment-15885</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Mon, 24 May 2010 02:32:24 +0000</pubDate>
		<guid isPermaLink="false">http://danilo.ariadoss.com/?p=190#comment-15885</guid>
		<description>Snow Leopard Update and Corrections to procedure above:
My thanks to the author for his contribution of the work above which 
helped me to trouble shoot what I call the &quot;It Worked!&quot; error. 
Unfortunately, the article above has errors and omission as follow
- and my apologies in advance for those of my own:

In the example in the Apache configuration file 
httpd.conf
the Apache directive 
Include /private/etc/apache2/extra/httpd-vhosts.conf
points to both the path 
/private/etc/apache2/extra/
and file named
httpd-vhosts.conf

In the example above, the author never explains that/how the file
vhosts-temp.conf gets renamed to httpd-vhosts.conf
and the author never states that the same physical file must be
moved to the path
/private/etc/apache2/extra/ 

Under Snow Leopard, if the defaults are taken, Apache, that is to say, apachectl,
will default to the directory 
/Library/WebServer/Documents/index.html.en
The html file
index.html.en
has the words &quot;It worked!&quot; in it.
When the user types into the browser command line either
http://localhost/    
or types in 
http://127.0.0.1/
the words &quot;It worked!&quot; appear -- which actually means the &quot;It did NOT work&quot;. 
That is to say, Apache did NOT boot and redirect itself to the html file
index.html
in the &quot;default directory&quot; which for purposes of testing http://localhost/
has traditionally defaulted to 
/Users/shortname/Sites/   
See definition of &quot;shortname&quot; below.       

To confirm and thus troubleshoot that in fact Apache is working but 
the apache .conf files are mis-directed or defaulted to 
/Library/WebServer/Documents/index.html.en 
one has only to append a &quot;~&quot; plus the shortname of the user as follows:
http://localhost/~shortname
where &quot;shortname&quot; is substituted with logon shortname found in preferences 
otherwise identified by the name beside the little house in the Finder display.
This is also the same name substituted, in the author’s example, in the file
vhosts-temp.conf 
which ultimately becomes the file
httpd-vhost.conf
When using the &quot;~&quot; with the user shortname, Apache should be redirected
to the html file
index.html
in the path
/Users/shortname/Sites/
                   
To summarize this whole procedure, the Apache directive
Include /private/etc/apache2/extra/httpd-vhosts.conf 
located in the Apache configuration file 
httpd.conf  
located (in Snow Leopard version) in the path
/private/etc/apache2/
points to both the path and filename that must contain
the default path and shortname for localhost
so that Apache actually sees http://localhost/~shortname when presented with the defaults of
http://localhost/ or with http://127.0.0.1/     
so that Apache does not default to 
/Library/WebServer/Documents/index.html.en
which will display &quot;It worked!&quot; when in fact &quot;It did NOT work!.&quot;

As for virtual hosts, they must be added by placing them respectively,
according to the author, for the purpose of his/this article,
&quot;after&quot; the default &quot;localhost&quot; in both the file
httpd-vhosts
located in the path
/private/etc/apache2/extra/httpd-vhosts.conf
and file
hosts       
located in the path
/private/etc/

Feel free to revise or correct this update and use it as you will.

Again thanks,

Bruce</description>
		<content:encoded><![CDATA[<p>Snow Leopard Update and Corrections to procedure above:<br />
My thanks to the author for his contribution of the work above which<br />
helped me to trouble shoot what I call the &#8220;It Worked!&#8221; error.<br />
Unfortunately, the article above has errors and omission as follow<br />
- and my apologies in advance for those of my own:</p>
<p>In the example in the Apache configuration file<br />
httpd.conf<br />
the Apache directive<br />
Include /private/etc/apache2/extra/httpd-vhosts.conf<br />
points to both the path<br />
/private/etc/apache2/extra/<br />
and file named<br />
httpd-vhosts.conf</p>
<p>In the example above, the author never explains that/how the file<br />
vhosts-temp.conf gets renamed to httpd-vhosts.conf<br />
and the author never states that the same physical file must be<br />
moved to the path<br />
/private/etc/apache2/extra/ </p>
<p>Under Snow Leopard, if the defaults are taken, Apache, that is to say, apachectl,<br />
will default to the directory<br />
/Library/WebServer/Documents/index.html.en<br />
The html file<br />
index.html.en<br />
has the words &#8220;It worked!&#8221; in it.<br />
When the user types into the browser command line either<br />
<a href="http://localhost/" rel="nofollow">http://localhost/</a><br />
or types in<br />
<a href="http://127.0.0.1/" rel="nofollow">http://127.0.0.1/</a><br />
the words &#8220;It worked!&#8221; appear &#8212; which actually means the &#8220;It did NOT work&#8221;.<br />
That is to say, Apache did NOT boot and redirect itself to the html file<br />
index.html<br />
in the &#8220;default directory&#8221; which for purposes of testing <a href="http://localhost/" rel="nofollow">http://localhost/</a><br />
has traditionally defaulted to<br />
/Users/shortname/Sites/<br />
See definition of &#8220;shortname&#8221; below.       </p>
<p>To confirm and thus troubleshoot that in fact Apache is working but<br />
the apache .conf files are mis-directed or defaulted to<br />
/Library/WebServer/Documents/index.html.en<br />
one has only to append a &#8220;~&#8221; plus the shortname of the user as follows:<br />
<a href="http://localhost/~shortname" rel="nofollow">http://localhost/~shortname</a><br />
where &#8220;shortname&#8221; is substituted with logon shortname found in preferences<br />
otherwise identified by the name beside the little house in the Finder display.<br />
This is also the same name substituted, in the author’s example, in the file<br />
vhosts-temp.conf<br />
which ultimately becomes the file<br />
httpd-vhost.conf<br />
When using the &#8220;~&#8221; with the user shortname, Apache should be redirected<br />
to the html file<br />
index.html<br />
in the path<br />
/Users/shortname/Sites/</p>
<p>To summarize this whole procedure, the Apache directive<br />
Include /private/etc/apache2/extra/httpd-vhosts.conf<br />
located in the Apache configuration file<br />
httpd.conf<br />
located (in Snow Leopard version) in the path<br />
/private/etc/apache2/<br />
points to both the path and filename that must contain<br />
the default path and shortname for localhost<br />
so that Apache actually sees <a href="http://localhost/~shortname" rel="nofollow">http://localhost/~shortname</a> when presented with the defaults of<br />
<a href="http://localhost/" rel="nofollow">http://localhost/</a> or with <a href="http://127.0.0.1/" rel="nofollow">http://127.0.0.1/</a><br />
so that Apache does not default to<br />
/Library/WebServer/Documents/index.html.en<br />
which will display &#8220;It worked!&#8221; when in fact &#8220;It did NOT work!.&#8221;</p>
<p>As for virtual hosts, they must be added by placing them respectively,<br />
according to the author, for the purpose of his/this article,<br />
&#8220;after&#8221; the default &#8220;localhost&#8221; in both the file<br />
httpd-vhosts<br />
located in the path<br />
/private/etc/apache2/extra/httpd-vhosts.conf<br />
and file<br />
hosts<br />
located in the path<br />
/private/etc/</p>
<p>Feel free to revise or correct this update and use it as you will.</p>
<p>Again thanks,</p>
<p>Bruce</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cari</title>
		<link>http://danilo.ariadoss.com/setup-virtual-hosts-mac-os-x-leopard/comment-page-1/#comment-15746</link>
		<dc:creator>Cari</dc:creator>
		<pubDate>Tue, 17 Nov 2009 05:51:24 +0000</pubDate>
		<guid isPermaLink="false">http://danilo.ariadoss.com/?p=190#comment-15746</guid>
		<description>Danilo,

Congrats on graduation! I love it when something is easy and your two tutorials did the trick.

Thanks a bunch!</description>
		<content:encoded><![CDATA[<p>Danilo,</p>
<p>Congrats on graduation! I love it when something is easy and your two tutorials did the trick.</p>
<p>Thanks a bunch!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randy Leinen</title>
		<link>http://danilo.ariadoss.com/setup-virtual-hosts-mac-os-x-leopard/comment-page-1/#comment-15437</link>
		<dc:creator>Randy Leinen</dc:creator>
		<pubDate>Fri, 21 Aug 2009 23:57:40 +0000</pubDate>
		<guid isPermaLink="false">http://danilo.ariadoss.com/?p=190#comment-15437</guid>
		<description>I followed all of the steps but I have a problem. When I go to http://192.168.1.78 it goes to the apache start page. But if I go to localhost or 127.0.0.1 I get the message - Safari can’t connect to the server “127.0.0.1”. I know that the hosts file and the httpd.conf and the httpd-vhosts.conf are setup correctly. Any ideas?</description>
		<content:encoded><![CDATA[<p>I followed all of the steps but I have a problem. When I go to <a href="http://192.168.1.78" rel="nofollow">http://192.168.1.78</a> it goes to the apache start page. But if I go to localhost or 127.0.0.1 I get the message &#8211; Safari can’t connect to the server “127.0.0.1”. I know that the hosts file and the httpd.conf and the httpd-vhosts.conf are setup correctly. Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danilo Stern-Sapad</title>
		<link>http://danilo.ariadoss.com/setup-virtual-hosts-mac-os-x-leopard/comment-page-1/#comment-15348</link>
		<dc:creator>Danilo Stern-Sapad</dc:creator>
		<pubDate>Tue, 30 Jun 2009 21:53:14 +0000</pubDate>
		<guid isPermaLink="false">http://danilo.ariadoss.com/?p=190#comment-15348</guid>
		<description>Hi Karen,

This question deserves its own tutorial so I wrote one on &lt;a href=&quot;http://danilo.ariadoss.com/how-to-setup-virtual-hosts-mamp-environment/&quot; rel=&quot;nofollow&quot;&gt;how to setup virtual hosts in the MAMP environment&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Hi Karen,</p>
<p>This question deserves its own tutorial so I wrote one on <a href="http://danilo.ariadoss.com/how-to-setup-virtual-hosts-mamp-environment/" rel="nofollow">how to setup virtual hosts in the MAMP environment</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karen Clarke</title>
		<link>http://danilo.ariadoss.com/setup-virtual-hosts-mac-os-x-leopard/comment-page-1/#comment-15343</link>
		<dc:creator>Karen Clarke</dc:creator>
		<pubDate>Tue, 30 Jun 2009 18:10:50 +0000</pubDate>
		<guid isPermaLink="false">http://danilo.ariadoss.com/?p=190#comment-15343</guid>
		<description>I am new to this and currently working on a photography website. which I already have set up in my htdocs folder in MAMP.
I would like to start work on another web site and I would also like to set up virtual hosts.
Can I set up multiple hosts while I have a website stored in htdocs, or do I have to move that site somewhere else while I set up Vhosts?
Great tutorial by the way it&#039;s very clear all the others I looked at can get confusing.</description>
		<content:encoded><![CDATA[<p>I am new to this and currently working on a photography website. which I already have set up in my htdocs folder in MAMP.<br />
I would like to start work on another web site and I would also like to set up virtual hosts.<br />
Can I set up multiple hosts while I have a website stored in htdocs, or do I have to move that site somewhere else while I set up Vhosts?<br />
Great tutorial by the way it&#8217;s very clear all the others I looked at can get confusing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to setup Apache, PHP, &#38; MySQL on Mac OS X 10.5 (Leopard) &#124; Tangential Musings</title>
		<link>http://danilo.ariadoss.com/setup-virtual-hosts-mac-os-x-leopard/comment-page-1/#comment-14989</link>
		<dc:creator>How to setup Apache, PHP, &#38; MySQL on Mac OS X 10.5 (Leopard) &#124; Tangential Musings</dc:creator>
		<pubDate>Tue, 02 Jun 2009 14:08:51 +0000</pubDate>
		<guid isPermaLink="false">http://danilo.ariadoss.com/?p=190#comment-14989</guid>
		<description>[...] Personally, I hate typing in ~ariadoss every time I need to test a site so I made some further changes to my httpd.conf file, which you probably only want to implement if there are no other users on your computer. We could setup virtual hosts to make short memorable URLs like http://ariadoss/ instead of just pointing /Users/ariadoss/Sites to http://localhost but that&#8217;s outside the scope of this tutorial. However, if this interests you read my tutorial on How to setup virtual hosts on Mac OS X 10.5 (Leopard). [...]</description>
		<content:encoded><![CDATA[<p>[...] Personally, I hate typing in ~ariadoss every time I need to test a site so I made some further changes to my httpd.conf file, which you probably only want to implement if there are no other users on your computer. We could setup virtual hosts to make short memorable URLs like <a href="http://ariadoss/" rel="nofollow">http://ariadoss/</a> instead of just pointing /Users/ariadoss/Sites to <a href="http://localhost" rel="nofollow">http://localhost</a> but that&#8217;s outside the scope of this tutorial. However, if this interests you read my tutorial on How to setup virtual hosts on Mac OS X 10.5 (Leopard). [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->