can't access my localhost

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • simon2x1
    New Member
    • Dec 2008
    • 123

    can't access my localhost

    I'm using a wampserver 2.0, whenever I turn it on and open my web browser to access my localhost nothing display on the browser. but before now it does work. Please how can I solve this problem?
  • simon2x1
    New Member
    • Dec 2008
    • 123

    #2
    please i need an answer to my question i have uninstall and install my wamp, uninstall my anti virus an my firewall is still on Off but yet i can not access my localhost from my browser (but firefox n explorer)if i acesss my localhost form my browser it dont display any thing.

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      Have you checked the Apache error logs?
      If the server isn't starting because of an error, then it would be logged there. In WAMP you can left click the WAMP system tray icon, "Apache", and "Apache error log".

      You can also try opening a command prompt and typing:
      Code:
      net start wampapache
      This attempts to start the server. If there is an error this should show what it is.

      Comment

      • simon2x1
        New Member
        • Dec 2008
        • 123

        #4
        When i click on the apache error log as you said it bought out a notepad which is blank and when i type net start wampapache in cmd it showed SYSTEM ERROR 5 HAS OCCURRED. ACCESS IS DENIED

        Comment

        • Atli
          Recognized Expert Expert
          • Nov 2006
          • 5062

          #5
          If you'r using Vista or Win7 you need to execute the command as admin. Right click on the command prompt icon and select "Run as admin".

          Comment

          • simon2x1
            New Member
            • Dec 2008
            • 123

            #6
            I have run the cmd as admin type net start wampapache this was what appear
            THE WAMPAPCHE SERVICE IS STARTING...
            THE WAMPAPCHE SERVICE COULD NOT BE STARTED.
            A SERVICE SPECIFIC ERROR OCCURRED: 1
            MORE HELP IS AVAILABLE BY TYPING NET HELPMSG 35470
            so i typed it and this what appear
            A SERVICE SPECIFIC ERROR OCCURRED: ***

            Comment

            • Atli
              Recognized Expert Expert
              • Nov 2006
              • 5062

              #7
              That's odd. When you type in localhost in your browser, do you get an empty page or a page telling you it can't connect?

              Could there be another HTTP server running on the machine? IIS, for example?

              Try changing the port your Apache server runs on. You can do that by opening the file "C:\wamp\bin\ap ache\Apache2.2. 11\conf\httpd.c onf" in notepad and changing the number in the following line to something else. I'd recommend something around 50000, to avoid conflicts.
              Code:
              Listen 80
              Then try to start the server.

              Comment

              • simon2x1
                New Member
                • Dec 2008
                • 123

                #8
                i have try it i replace Listen 80 with Listen 50000 it is still the something that is it was an empty page that display and there was no message on the page telling you it can't connect?

                Comment

                • Atli
                  Recognized Expert Expert
                  • Nov 2006
                  • 5062

                  #9
                  Did you use the proper port in your URL? If you are connecting to a local HTTP server on port 50000 the URL should be: http://localhost:50000/

                  Comment

                  Working...