XAMPP Install - Cannot load http://localhost/

  • natas
  • PHP Ninja
  • Proficient
  • natas
  • Posts: 308
  • Loc: AFK

Post 3+ Months Ago

Hello again,

This XAMPP install is apparently giving me more headaches than most. Believe me, I'm going through the documentation and FAQ's and even trying to decipher the Apache Forums.

I can view the install using http://127.0.0.1 but not http://localhost/

Will this cause me problems? (I'm just using this to learn PHP programming and MYSQL tutorials) If so, how do I fix it?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

Check your host file

Windows\System32\drivers\etc\host

make sure you have a record for localhost.
  • natas
  • PHP Ninja
  • Proficient
  • natas
  • Posts: 308
  • Loc: AFK

Post 3+ Months Ago

SpooF wrote:
Check your host file

Windows\System32\drivers\etc\host

make sure you have a record for localhost.


Contents of that file:

Code: [ Select ]
# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#     102.54.94.97     rhino.acme.com         # source server
#      38.25.63.10     x.acme.com             # x client host


::1             localhost
  1. # Copyright (c) 1993-2006 Microsoft Corp.
  2. #
  3. # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
  4. #
  5. # This file contains the mappings of IP addresses to host names. Each
  6. # entry should be kept on an individual line. The IP address should
  7. # be placed in the first column followed by the corresponding host name.
  8. # The IP address and the host name should be separated by at least one
  9. # space.
  10. #
  11. # Additionally, comments (such as these) may be inserted on individual
  12. # lines or following the machine name denoted by a '#' symbol.
  13. #
  14. # For example:
  15. #
  16. #     102.54.94.97     rhino.acme.com         # source server
  17. #      38.25.63.10     x.acme.com             # x client host
  18. ::1             localhost
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

add

127.0.0.1 localhost

When you save it click File Save. Do not click Save As.
  • natas
  • PHP Ninja
  • Proficient
  • natas
  • Posts: 308
  • Loc: AFK

Post 3+ Months Ago

Thanks a million AT/NO, SPooF!!! I had another friend who installed this on a very similar computer to mine, and had absolutely no problems with localhost. I wonder why my settings were different?

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 140 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.