Home » Php » php – xampp installed on Mac not accessible via localhost, only local ip

php – xampp installed on Mac not accessible via localhost, only local ip

Posted by: admin July 12, 2020 Leave a comment

Questions:

After intalling Xampp on my Mac.
The address is http://192.168.64.2/dashboard
how can I make it to be accessible via localhost or 127.0.0.1 ?

How to&Answers:

You most likely installed the application that sets up a virtual machine. Revisit the download page and select the application without ‘vm’ at the end

here: https://www.apachefriends.org/download.html

Answer:

Like Ab Ned said, you’ve probably installed the VM version. I guess that’s a good thing because it might save your from unwanted side-effects. So, if you want to stick with it, just activate the port forwarding:

enter image description here

There’s also a little walkthrough at https://www.apachefriends.org/faq_stackman.html.