http://localhost/ not working on Windows 7. What's the problem?

后端 未结 22 1597
眼角桃花
眼角桃花 2020-12-03 01:07

I have a big problem opening http://localhost/ on Windows 7 (beta). I installed this os and everything went great; when I installed Wamp I saw that localhost is not working

相关标签:
22条回答
  • 2020-12-03 01:42

    I got a 404 could not connect error then I set wampmanager.exe to run as Xp Sp3 and it seems to be working fine this can be done by


    1. Right Clicking on it
    2. Properties
    3. click tab labled "Compatibility"
    4. Tick Box just undeder "Compatibility mode"
    5. Select Windows XP (Service Pack 3)
    6. Click Apply then OK

    0 讨论(0)
  • 2020-12-03 01:42

    I had the exact same issue, and the solution is what someone has already said:

    In the taskbar, click on the WAMP icon.

    Go to Apache-->Service-->Install Service

    Then go back by clicking and selecting Apache-->Service-->Start/Resume Service

    This will allow the localhost function to work (keep in mind I had already changed the host file located under c:\windows\system32\drivers\etc to remove the # from the 127.0.0.1 line)

    If you need to edit that file still, you need to right click on it and select Properties. Then go to the Security tab, and click the Advanced button. You then need to select the Users, click Edit and select "Full Control". This will enable you to edit it.

    That being said, you need to ALSO install the MySQL service following the same procedure.

    MySQL-->Service-->Install Service

    Then go back by right clicking yet again and selecting MySQL-->Service-->Start/Resume Service.

    And that should fix it all up in Windows 7!

    0 讨论(0)
  • 2020-12-03 01:44

    To fix the port 80 problem do:

    From cmd as administrator:

    1. sc config http start= demand (you need a space after the equal sign and not before)
    2. Reboot
    3. Run the command (netsh http show servicestate) as administrator to check that the port 80 is in use

    After you have run this command, you can disable http.sys as follows:

    1. net stop http (stop the process)
    2. Sc config http start= disabled (if you want to disable the service forever)

    it works for me.

    0 讨论(0)
  • 2020-12-03 01:44

    Before installing Wamp, go to controlpanel=> Adminstrative tools => IIS Manager and turn off the IIS server. Install wamp and everything works fine. When IIS is on it also uses port 80. You can go through a lot of changing the ports and permissions for wamp but I have found this the quickest and easiest method of getting wamp to run successfully.

    0 讨论(0)
  • 2020-12-03 01:45

    Got any other Programs running ? msn ect... ? some bind to port 8080 then your webserver wouldnt start and would cause a 404 , try binding it to a different port 80 which its default should be

    0 讨论(0)
  • 2020-12-03 01:47

    It sounds like you have no web server running at all anywhere.

    Have you tried enabling IIS and using it to display a basic html file first?

    Programs & Features -> Turn Windows Features On/Off -> Internet Information Servcies

    Then, place your html file in C:\inetpub\wwwroot\index.html and browse to http://localhost.

    Once this works, try to get WAMP/php working. Be careful of port conflicts.

    0 讨论(0)
提交回复
热议问题