MAMP/XAMPP set up local host
I first tried installing MAMP but i seemed to have all sort of problems.
I then got the 'zen cart 400 page manual' which told me to use XAMPP, but the instructions are for windows. Does anyone know how to set up the local host for Mac?
I got my macbook pro a month ago so im sure ive got the latest os, etc.
Thanks
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.'
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.
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 :blink:
Nick
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
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!
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.
Re: MAMP/XAMPP set up local host
OK, I am new to Zencart.
I got to step 12 in DrByte's instructions and can't figure out what to do. When I put in http://localhost/zencart Safari can't connect. When I try to use 80 in the mix I cant get any other reaction from Safari. Help a newcomer, PLEASE!!!
KEN
Re: MAMP/XAMPP set up local host
Make sure you do not have Personal Web Sharing turned on for your Mac if you are running your MAMP server on port 80.
Also check that you have renamed the uncompressed Zen Cart zipped file to something like "zencart" as per Step 10 of DrByte's instructions if you want to access your Zen Cart store at http://localhost/zencart. If you have renamed it to "shop", then access your Zen Cart store at http://localhost/shop.