<?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 Apache Virtual hosting on MAMP for Magento</title>
	<atom:link href="http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/</link>
	<description>Notes on Ecommerce Web Development</description>
	<lastBuildDate>Mon, 06 Feb 2012 20:02:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ivn</title>
		<link>http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-2790</link>
		<dc:creator>Ivn</dc:creator>
		<pubDate>Tue, 06 Dec 2011 14:44:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=141#comment-2790</guid>
		<description>Hi there,

I am trying to set up local environment for one of my client&#039;s Magento sites.
I have copied their files and folders in my local folder and followed your instructions bt couldn&#039;t set up a local environment.
I took the backup of httpd.conf file.
I also edited the file and added the following line at the end of the file
#Include /Applications/MAMP/conf/apache/sites
I created a text file called as sites in Applications/MAMP/conf/apache which has the following content
 NameVirtualHost *:80
 
 
 ServerName localhost
 DocumentRoot /Applications/MAMP/htdocs/foldername
 

But don&#039;t know how to edit etc/host and where it is located.
And have I done all the steps until here properly?
Please help !!</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>I am trying to set up local environment for one of my client&#8217;s Magento sites.<br />
I have copied their files and folders in my local folder and followed your instructions bt couldn&#8217;t set up a local environment.<br />
I took the backup of httpd.conf file.<br />
I also edited the file and added the following line at the end of the file<br />
#Include /Applications/MAMP/conf/apache/sites<br />
I created a text file called as sites in Applications/MAMP/conf/apache which has the following content<br />
 NameVirtualHost *:80</p>
<p> ServerName localhost<br />
 DocumentRoot /Applications/MAMP/htdocs/foldername</p>
<p>But don&#8217;t know how to edit etc/host and where it is located.<br />
And have I done all the steps until here properly?<br />
Please help !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dan</title>
		<link>http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-2635</link>
		<dc:creator>dan</dc:creator>
		<pubDate>Sat, 17 Sep 2011 00:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=141#comment-2635</guid>
		<description>Thanks for this clear write up!</description>
		<content:encoded><![CDATA[<p>Thanks for this clear write up!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Y</title>
		<link>http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-2444</link>
		<dc:creator>Andrew Y</dc:creator>
		<pubDate>Mon, 11 Jul 2011 09:53:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=141#comment-2444</guid>
		<description>When I setup a virtual host domain on my local MAMP Magento site, the
homepage would show up fine, but none of the links from the homepage
would work - I would get server errors.  I originally thought that the
problem was with my .htaccess files and Apache settings, but the
problem was actually in the /app/etc/local.xml config file.  The line:

&lt;code&gt;&lt;host&gt;&lt;![CDATA[localhost]]&gt;&lt;/host&gt;&lt;/code&gt;


...needed to be updated to reflect the exact name of the virtual host:

&lt;code&gt;&lt;host&gt;&lt;![CDATA[virtualhostname]]&gt;&lt;/host&gt;&lt;/code&gt;

I assumed that because the virtual host was local, and the mySQL
connection worked with localhost, this setting would be fine.
However, localhost won&#039;t work - it needs to be the virtual host name. 
A pretty obvious mistake, but one that is easy to make.   Hope this 
helps someone troubleshoot in the future......
</description>
		<content:encoded><![CDATA[<p>When I setup a virtual host domain on my local MAMP Magento site, the<br />
homepage would show up fine, but none of the links from the homepage<br />
would work &#8211; I would get server errors.  I originally thought that the<br />
problem was with my .htaccess files and Apache settings, but the<br />
problem was actually in the /app/etc/local.xml config file.  The line:</p>
<p><code><host>< ![CDATA[localhost]]></host></code></p>
<p>&#8230;needed to be updated to reflect the exact name of the virtual host:</p>
<p><code><host>< ![CDATA[virtualhostname]]></host></code></p>
<p>I assumed that because the virtual host was local, and the mySQL<br />
connection worked with localhost, this setting would be fine.<br />
However, localhost won&#8217;t work &#8211; it needs to be the virtual host name.<br />
A pretty obvious mistake, but one that is easy to make.   Hope this<br />
helps someone troubleshoot in the future&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ghanu</title>
		<link>http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-1893</link>
		<dc:creator>ghanu</dc:creator>
		<pubDate>Wed, 29 Sep 2010 15:20:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=141#comment-1893</guid>
		<description>thanks lot learn new thing from you.......</description>
		<content:encoded><![CDATA[<p>thanks lot learn new thing from you&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley</title>
		<link>http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-1498</link>
		<dc:creator>Ashley</dc:creator>
		<pubDate>Mon, 05 Jul 2010 10:25:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=141#comment-1498</guid>
		<description>Hi, Matt - Sorry you solved this before I got a chance to offer some suggestions - glad to hear you got it sorted and thanks for stopping by to post your fixes.</description>
		<content:encoded><![CDATA[<p>Hi, Matt &#8211; Sorry you solved this before I got a chance to offer some suggestions &#8211; glad to hear you got it sorted and thanks for stopping by to post your fixes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-1497</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 05 Jul 2010 09:14:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=141#comment-1497</guid>
		<description>I finally solved my magento issue of taking a site from a remote host to a local host and I thought my notes may help someone else

1. Check .htaccess file for #RewriteBase - my previous programmer had added rules

2. Check MAMP Preferences - Mine was set to PHP 5.3 when it should have been PHP 5.2

It has taken me almost 12 hours to resolve this, 3 times longer than the actual job. But now I can get on with the design changes.</description>
		<content:encoded><![CDATA[<p>I finally solved my magento issue of taking a site from a remote host to a local host and I thought my notes may help someone else</p>
<p>1. Check .htaccess file for #RewriteBase &#8211; my previous programmer had added rules</p>
<p>2. Check MAMP Preferences &#8211; Mine was set to PHP 5.3 when it should have been PHP 5.2</p>
<p>It has taken me almost 12 hours to resolve this, 3 times longer than the actual job. But now I can get on with the design changes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-1496</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sun, 04 Jul 2010 07:44:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=141#comment-1496</guid>
		<description>Hi Ashley

I could really do with your help 

I&#039;m running MAMP 1.9 on OS X 10.5.8 

I done a fresh install of Magento locally and it works, using default ports. 

However, I have downloaded a remote site to make changes locally and am struggling to get this to work as it continues to go to the live site or brings up an error.

I have several questions.
1. Does Little Snitch affect the host file ?
2. If I add &quot;Include /Applications/MAMP/conf/apache/sites&quot; Apache server does not start (Web sharing is switched off in sharing preferences)

I appreciate any help you can offer

Thanks Matt :)</description>
		<content:encoded><![CDATA[<p>Hi Ashley</p>
<p>I could really do with your help </p>
<p>I&#8217;m running MAMP 1.9 on OS X 10.5.8 </p>
<p>I done a fresh install of Magento locally and it works, using default ports. </p>
<p>However, I have downloaded a remote site to make changes locally and am struggling to get this to work as it continues to go to the live site or brings up an error.</p>
<p>I have several questions.<br />
1. Does Little Snitch affect the host file ?<br />
2. If I add &#8220;Include /Applications/MAMP/conf/apache/sites&#8221; Apache server does not start (Web sharing is switched off in sharing preferences)</p>
<p>I appreciate any help you can offer</p>
<p>Thanks Matt <img src='http://cdn.aschroder.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley</title>
		<link>http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-1483</link>
		<dc:creator>Ashley</dc:creator>
		<pubDate>Wed, 30 Jun 2010 23:18:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=141#comment-1483</guid>
		<description>Glad to hear it Leon! I also hate it when you do that same thing and get different results. A programmer I used to work with called that &#039;solar flares&#039; - seems like a good excuse to me!</description>
		<content:encoded><![CDATA[<p>Glad to hear it Leon! I also hate it when you do that same thing and get different results. A programmer I used to work with called that &#8216;solar flares&#8217; &#8211; seems like a good excuse to me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leon de Rijke</title>
		<link>http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-1481</link>
		<dc:creator>Leon de Rijke</dc:creator>
		<pubDate>Wed, 30 Jun 2010 06:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=141#comment-1481</guid>
		<description>Ok, I deleted all virtual hosts from both the httpd.conf and the hosts file. I set up blahblah.com with just an index.html file in it. That worked. Then I added blahblah2.com with just an index.html file. That worked too!

Now I set up the other virtual hosts for my sites and they all worked! I really have no idea what went wrong (which frightens me a bit) but in any case: everything works fine now.

Thanks for your help Ashley!!</description>
		<content:encoded><![CDATA[<p>Ok, I deleted all virtual hosts from both the httpd.conf and the hosts file. I set up blahblah.com with just an index.html file in it. That worked. Then I added blahblah2.com with just an index.html file. That worked too!</p>
<p>Now I set up the other virtual hosts for my sites and they all worked! I really have no idea what went wrong (which frightens me a bit) but in any case: everything works fine now.</p>
<p>Thanks for your help Ashley!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley</title>
		<link>http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-1480</link>
		<dc:creator>Ashley</dc:creator>
		<pubDate>Tue, 29 Jun 2010 23:18:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.aschroder.com/?p=141#comment-1480</guid>
		<description>Hmmm - I suggest back peddling a bit, to try and get a more minimal setup working. How about setting up a vhost for &#039;blahblah.com&#039; and pointing it&#039;s root at a directory somewhere that just has a single index.html file in it. Add blahblah.com to your hosts file pointing to 127... and see if that works (remove all other vhost config while testing it)</description>
		<content:encoded><![CDATA[<p>Hmmm &#8211; I suggest back peddling a bit, to try and get a more minimal setup working. How about setting up a vhost for &#8216;blahblah.com&#8217; and pointing it&#8217;s root at a directory somewhere that just has a single index.html file in it. Add blahblah.com to your hosts file pointing to 127&#8230; and see if that works (remove all other vhost config while testing it)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching using apc
Object Caching 347/348 objects using apc
Content Delivery Network via cdn.aschroder.com

Served from: www.aschroder.com @ 2012-02-08 03:48:56 -->
