I am on OSX 10.8.2 with XAMPP 1.8.3-3
I have installed XAMPP a couple of days ago successfully, and used it for a while. Then I learned about vhosts function and wanted to use it (to have multiple sites and try different stuff) and it has all gone down the drain from there. I followed the instructions available online on various blogs but I could never get VHOSTS function to work. The worst thing is that I couldn't even get the XAMPP to its default state and work again.
De-installed everything, tried MAMP. There I got the dreaded "Couldnt write to etc/hosts file" message and de-installed that one.
Finally, I reinstalled XAMPP and decided to give it one more shot, using default settings and not using VHOSTS function as it is obviously too advanced for me for now.
PROBLEM: when I enter 127.0.0.1 into browsers address bar I get XAMPP homepage. If I put "Localhost" stupid Chrome (or Firefox) go online and search localhost with Google or try to go to localhost.com.
- I did a clean re-install of XAMPP
- I restarted my MacBook
- Started all three services with Manager utility
- Checked the notorious "hosts" file and it says as follows:
- Code: Select all
# Host Database
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
I commented out the ::1. I even tried leaving just 127.0.0.1 localhost line in the file, saving it, restarting everything - no luck. I can get it to work with 127.0.0.1 but not with "localhost", not with "http://localhost", not with "http://localhost/index.php"... Nothing.