Comments on: How to set up Apache Virtual hosting on MAMP for Magento http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/ Notes on Web Development Wed, 23 Dec 2020 09:25:05 +0000 hourly 1 https://wordpress.org/?v=4.8.15 By: Georgia http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-10376 Fri, 21 Jun 2013 10:16:20 +0000 http://www.aschroder.com/?p=141#comment-10376 Third on the shortlist is the military-style. Shoes create
a arely there?aesthetic and could possibly pretty much with regard to
everything. These frequencies may vary from one starting point
another. Feel women can quickly embrace heels,
flats, flip flops also sandals! karen millen ebay outlet *Georgia*.

]]>
By: mtupper http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-10121 Wed, 24 Apr 2013 03:20:47 +0000 http://www.aschroder.com/?p=141#comment-10121 OMG!!! How embarrassing… as soon as I hit “Post Comment” I realized: clear cache! That did it. Basic— total rookie error. Sorry.

]]>
By: mtupper http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-10120 Wed, 24 Apr 2013 03:16:03 +0000 http://www.aschroder.com/?p=141#comment-10120 So, I had Magento 1.7.0.2 CE running fine on MAMP using the http://localhost/magento/ URL, but had the problem with Chrome not being able to login. I read about the issue with cookies and extending the Cookie Lifetime to 86400, but also understand that Chrome wouldn’t accept any cookies not from a qualified domain, so it seemed like it was time to bite the bullet and implement this Virtual Server solution with MAMP. After some playing with various configs, it is working fine with multiple fake domains pointing to plain index.html sites.

So my problem is somewhere in Magento. Now when I goto the new domain, http://magdevsite.com it is redirecting straight away to http://localhost/magento/ where it was originally installed. I have checked:
– .htaccess has: RewriteBase /
– core_config_data has both unsecure and secure URL set to new domain (ej. http://magdevsite.com/ )
– pinging http://magdevsite.com/ resolves correctly to 127.0.0.1

Can’t figure out what is causing this! Any ideas maestro?

]]>
By: Brady http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-4834 Sat, 02 Jun 2012 01:11:11 +0000 http://www.aschroder.com/?p=141#comment-4834 I’m a bit confused about the virtual subdomain in the hosts file…

If I already have Magento installed at example.com and I create a hosts entry for local.example.com, the Magento install example.com won’t run, will it? Wouldn’t I need to update the Magento database so it shows local.example.com as the site URL?

The issue I’m running into is with certain paid extensions you have to give them the URL you are going to use. Any deviation from that URL and the extension will not work. So doing local development, I need to keep the URL the same as the live site. That’s why I was thinking of using MAMP’s ports, but I can’t seem to get Magento configured to use those.

Any ideas?

]]>
By: Ivn http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-2790 Tue, 06 Dec 2011 14:44:10 +0000 http://www.aschroder.com/?p=141#comment-2790 Hi there,

I am trying to set up local environment for one of my client’s Magento sites.
I have copied their files and folders in my local folder and followed your instructions bt couldn’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’t know how to edit etc/host and where it is located.
And have I done all the steps until here properly?
Please help !!

]]>
By: dan http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-2635 Sat, 17 Sep 2011 00:39:25 +0000 http://www.aschroder.com/?p=141#comment-2635 Thanks for this clear write up!

]]>
By: Andrew Y http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-2444 Mon, 11 Jul 2011 09:53:46 +0000 http://www.aschroder.com/?p=141#comment-2444 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:

< ![CDATA[localhost]]>

…needed to be updated to reflect the exact name of the virtual host:

< ![CDATA[virtualhostname]]>

I assumed that because the virtual host was local, and the mySQL
connection worked with localhost, this setting would be fine.
However, localhost won’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……

]]>
By: ghanu http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-1893 Wed, 29 Sep 2010 15:20:27 +0000 http://www.aschroder.com/?p=141#comment-1893 thanks lot learn new thing from you…….

]]>
By: Ashley http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-1498 Mon, 05 Jul 2010 10:25:45 +0000 http://www.aschroder.com/?p=141#comment-1498 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.

]]>
By: Matt http://www.aschroder.com/2009/02/how-to-set-up-apache-virtual-hosting-on-mamp-for-magento/comment-page-1/#comment-1497 Mon, 05 Jul 2010 09:14:54 +0000 http://www.aschroder.com/?p=141#comment-1497 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.

]]>