MAMP questions

Associate
Joined
17 Mar 2004
Posts
1,562
Hi all,

Installed MAMP on my MacBook so I can have a play around with Zen Cart without having to keep uploading changes.

I've got it installed, is it as simple as placing files in the htdocs folder and just openin them in Firefox? Could I have more than 1 site stored at a time, if so do I just create new folders in htdocs for each site?

How do I create actual databases? I don't need to modify them myself as I think ZC writes all the data to them on installation.

Also is it possible to link a domain to these sites on my machine? I know it'd probably be slow but it might come in handy for viewing things when i'm not at my laptop etc.

Thanks in advance. :)
 
I've got it installed, is it as simple as placing files in the htdocs folder and just openin them in Firefox? Could I have more than 1 site stored at a time, if so do I just create new folders in htdocs for each site?

Yes. You can create folders in htdocs and go to http://localhost:port/folder

How do I create actual databases? I don't need to modify them myself as I think ZC writes all the data to them on installation.

Using PHPMyAdmin

Also is it possible to link a domain to these sites on my machine? I know it'd probably be slow but it might come in handy for viewing things when i'm not at my laptop etc.

Probably but I personally don't know how to do it.
 
EDIT: beaten to it

ok,

with regards to the htdocs folder, you can do what you want really as long as you point to the right folder in the preferences... i have many sites on my mac (none of the live versions run from there though) and if i want to run one through MAMP i just point it to the necessary folder, doesn't matter where that folder is either.

databases, just use phpMyAdmin...

to link a domain its fine (you just point it to your IP address and make sure the ports are forwarded correctly on your router for port 80) but the only problem is if you're on a dynamic IP... what you need to do in this case is get an account with NoIP or similar and link to that instead (what NoIP does is gives you a pseudo domain thing like phaser.no-ip.com or something like that which gets constantly updated with the right IP for your computer using a small updater-app on your computer). So instead of pointing the domain directly to your IP, you point it to your NoIP address which in turn points to your IP, and if your IP changes which it will if its dynamic, then the updater changes the target of the NoIP address etc...

hope this helps :)
 
Last edited:
Cheers guys,

Got both green lights and the MAMP page saying everything is installed, i've created a folder in the htdocs but when clicking on any pages it just loads up the source code in FF etc. Tried placing the files direct in the htdocs but the same thing happens?
 
Yeah that's right, the Zen Cart installation page to be precise. Been through the preferences and everything looks in order.
 
Still having problems.

I've got the apache web sharing turned on.

Reinstalled MAMP and got the page saying everything is working fine etc. Got the 2 green lights on the MAMP startup

Copied a php file into the htdocs folder and tried opening in firefox but again it's just showing the source code?
 
Back
Top Bottom