Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MAMP local host not working

My MacBook Pro 13 inch is running on OS X 10.8.2 and I have downloaded MAMP 2.1.4.

I want to run the MAMP program. After I connect to the servers successfully I then try to press the 'open start page'. It takes me to the Google Chrome browser with a page that says the page can't be found.

I've installed MAMP and am running the Apache server and MySQL servers fine through either port 80 and 3306 or 8888 and 8889 - using either combination makes the status lights go green. The local host can't be found for some reason.

I have done extensive research where I have:

  • uninstalled and reinstalled MAMP three times and restarted the computer each time
  • physically put in the address to the start page, ie http://<localhost>:8888/. This is what it says when I put that in the address bar: Oops! Google Chrome could not find localhost:8888 or the same for http://localhost:80/
  • made sure in the MAMP preferences under PHP, that PHP5 is enabled and then stopped and started MAMP again (i have 5.4.10 php version and Chache is XChache)
  • tried to use sharing under system preferences to enable internet sharing - does nothing.

What should I do?

like image 337
user2454016 Avatar asked Jun 05 '13 03:06

user2454016


People also ask

Why my localhost is not working?

It is triggered if the firewall wrongly blocks your server or you're using the wrong port. The localhost error can also happen if your Apache web server or Chrome browser is not configured correctly.

How do I access localhost in MAMP?

You can use a Mac's Local Hostname to access your localhost on another Mac on your LAN, To find out the Local Hostname of this Mac, go to System Preferences > Sharing > Edit. To access your localhost from a different Mac on your LAN. Input :8888 (assuming your are using Apache port 8888) as a suffix in your url bar.

Why MAMP server is not working?

The issue is usually due to another MySQL service running on the same port. The easiest solution is to kill all MySQL processes and restart MAMP. On macOS, you can do this using the Activity Monitor, which you'll find in the Utilities folder on your computer.

How do I fix local host refused to connect?

Temporary Disable the Firewall Once you disable the firewall, navigate to localhost in a browser to check whether it connects. If localhost still refuses to connect, move on to other potential causes. Also, make sure to turn on the firewall once you have finished working with localhost.


1 Answers

I had the same issue i just changed the port for apache to 90 and connected then to http://localhost:90

127.0.0.1:90

respectively. Fixed it in my case. Hope that helps.


System iMac OS X Yosemite 10.10.1 MAMP 3.0.7.3

like image 158
Anzumana Avatar answered Sep 26 '22 07:09

Anzumana