Results 1 to 10 of 47

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    193
    Plugin Contributions
    0

    Default Re: MAMP/XAMPP set up local host

    Thanks for the instructions. Ive uninstalled xampp and im trying mamp.

    Step 12 isnt working. when i type in http://localhost/zencart i get 'Safari can’t connect to the server.'

  2. #2
    Join Date
    Apr 2008
    Posts
    193
    Plugin Contributions
    0

    Default Re: MAMP/XAMPP set up local host

    Turns out I needed the port number in the address as well. Thanks for the instructions, it seems to be working.

  3. #3
    Join Date
    Apr 2008
    Location
    Nottingham, UK
    Posts
    46
    Plugin Contributions
    1

    Default Re: MAMP/XAMPP set up local host

    Yes, MAMP uses port 8888 as default, but you change it to default Apache port 80 and it will then work without the port number.

    That one scuppered me for quite a while when I switched to Mac

    Nick

  4. #4
    Join Date
    Apr 2008
    Posts
    193
    Plugin Contributions
    0

    Default Re: MAMP/XAMPP set up local host

    How do I set up my local host as www.example.com? the zen cart guide only has instructions for windows.
    james

  5. #5
    Join Date
    Apr 2008
    Location
    Nottingham, UK
    Posts
    46
    Plugin Contributions
    1

    Default Re: MAMP/XAMPP set up local host

    I didn't know that was possible - it would have been very helpful if I had done that with the shop I am currently working on!

  6. #6
    Join Date
    Jan 2004
    Posts
    66,380
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: MAMP/XAMPP set up local host

    To set up www.example.com in MAMP, you follow the same steps as in the book, but with a couple variations due to the way the Mac OS operates:

    1. To edit your "hosts" file, instead of accessing C:\WINDOWS\system32\drivers\etc\hosts , you will need to edit /etc/hosts
    However, since that is a system file, you must do it with admin privileges, as follows:
    a) Open the Terminal.app application
    b) Type: [FONT="Courier New"]sudo vi /etc/hosts[/FONT]
    c) enter your password if prompted (If you are an administrator, use your current password, if you're not an administrator of the computer, ask your administrator for the password, or get them to do it for you)
    d) Use the arrow keys to move down to the existing line that says 127.0.0.1 and press the letter i
    e) On the new line, fill in the new definition and press Return:
    [FONT="Courier New"]127.0.0.1 www.example.com[/FONT]
    f) Press ESC then : then x then Return
    g) Type [FONT="Courier New"]exit[/FONT] and press Return

    2. For the Configuring Apache step, your <xampp-home> refers to /Applications/MAMP/ ... which means you will be editing this file:
    /Applications/MAMP/conf/apache/httpd.conf

    (You can use Finder to locate the file, and edit it with TextEdit or your favorite text-only editor.
    Make the edits described in the book, and then save the file, and restart MAMP. It should work as described in the book, ie: pointing your browser to www.example.com should now show your MAMP sites.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Sep 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: MAMP/XAMPP set up local host

    Hi there, your tip got example.com working perfectly - thanks. However it seems to have affected my (mac) mail which now wont retrieve any mail from my web-based mail server. Can anyone help?

  8. #8
    Join Date
    Feb 2010
    Posts
    5
    Plugin Contributions
    0

    red flag Re: MAMP/XAMPP set up local host

    Quote Originally Posted by DrByte View Post
    To set up www.example.com in MAMP, you follow the same steps as in the book, but with a couple variations due to the way the Mac OS operates:

    1. To edit your "hosts" file, instead of accessing C:\WINDOWS\system32\drivers\etc\hosts , you will need to edit /etc/hosts
    However, since that is a system file, you must do it with admin privileges, as follows:
    a) Open the Terminal.app application
    b) Type: [FONT="Courier New"]sudo vi /etc/hosts[/FONT]
    c) enter your password if prompted (If you are an administrator, use your current password, if you're not an administrator of the computer, ask your administrator for the password, or get them to do it for you)
    d) Use the arrow keys to move down to the existing line that says 127.0.0.1 and press the letter i
    e) On the new line, fill in the new definition and press Return:
    [FONT="Courier New"]127.0.0.1 www.example.com[/FONT]
    f) Press ESC then : then x then Return
    g) Type [FONT="Courier New"]exit[/FONT] and press Return

    2. For the Configuring Apache step, your <xampp-home> refers to /Applications/MAMP/ ... which means you will be editing this file:
    /Applications/MAMP/conf/apache/httpd.conf

    (You can use Finder to locate the file, and edit it with TextEdit or your favorite text-only editor.
    Make the edits described in the book, and then save the file, and restart MAMP. It should work as described in the book, ie: pointing your browser to www.example.com should now show your MAMP sites.
    Hello,
    I'm trying to follow these instructions, however, I can't locate the Terminal.app application. I used the finder icon to look for it, but nothing came up. I can't find it in the applications folder or in the systems preferences. I'm waiting to finish installing Zencart until after I set up the www.example.com domain. Can you PLEASE help me. I'm a bit overwhelmed.
    Thanks in advance.
    debora

  9. #9
    Join Date
    Feb 2008
    Location
    Bay Area
    Posts
    1
    Plugin Contributions
    0

    Default Re: MAMP/XAMPP set up local host

    Quote Originally Posted by DrByte View Post
    To set up www.example.com in MAMP, you follow the same steps as in the book, but with a couple variations due to the way the Mac OS operates:

    Thanks for the install instructions DrByte, works great now on my Mac (OS X 10.6.4) ! ! !

 

 

Similar Threads

  1. v139h local host - how do I set up a copy of my site on xampp?
    By Maynards in forum Installing on a Windows Server
    Replies: 2
    Last Post: 3 Mar 2012, 08:23 PM
  2. set up local host : HELP needed for MAC!!!!
    By debora crosby in forum Installing on a Mac Server
    Replies: 5
    Last Post: 4 Mar 2010, 12:19 AM
  3. XAMPP Local Host Page Won't Load
    By jwj11 in forum Installing on a Windows Server
    Replies: 1
    Last Post: 29 Mar 2009, 12:34 AM
  4. Should I continue installing without MAMP (XAMPP)?
    By ProfKT in forum Installing on a Mac Server
    Replies: 17
    Last Post: 15 Jul 2008, 06:18 PM
  5. Local host not finding XAMPP
    By GroverGirl in forum Installing on a Windows Server
    Replies: 1
    Last Post: 26 Jan 2008, 07:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR