I've installed MAMP on my Mac. Then, I put my website into the htdocs folder of MAMP. I started the Server. But how can I launch the website in Safari now? What's the URL to the website, when it's named "testsite" for example?
To start the MAMP Apache and MySQL servers, simply click “Start Servers” from the main MAMP screen. Your MAMP servers have now been started. Once the MAMP servers start, the MAMP start page should open in your default web browser. If not, click on “Open start page” in the MAMP window.
To install MAMP on your Mac go to: https://mamp.info and click on the Free download button. Next, click on the Apple logo to start the download. Once the download has completed, go to your Downloads folder and double-click on the package file to start the installation. Follow the instructions to install MAMP.
To access your localhost on another Mac on your LAN, you need to type in it's Local Hostname. To find out the Local Hostname of this Mac, go to System Preferences > Sharing > Edit . Now you can access your hosts from a different Mac on your LAN. Input :8888 as a suffix in your url bar to see the localhost.
There is a separate php. ini file for each of the PHP versions present in MAMP. You can find it here (where “x.y.z” stands for the corresponding PHP version): “/Applications/MAMP/bin/php/phpx.
If it is named "testsite.html" then it will be at
localhost:8888/testsite.html
Good luck with the MAMP fun that should ensue!
Have you tried localhost:8888
? See Installing MAMP for more details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With