Localhost not working on WAMP server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sousou
    New Member
    • Mar 2010
    • 4

    Localhost not working on WAMP server

    I have installed the wamp server correctly but when i called http://localhost/sam.php for example it didn't work it gave me (the web cannot found this page).
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hey.

    What does the error say, exactly? And which browser are you using?
    Are you 100% sure the file you are asking for exists?

    If WAMP isn't working properly, I would recommend you try the XAMPP package instead. I've never had any problems with that one.

    Comment

    • philipwayne
      New Member
      • Mar 2010
      • 50

      #3
      WAMP and XAMPP and just simple programs that control apache and other applications like MySQL there both pretty good I prefer installing everything myself.

      You need to make sure the file exists and is in the directory that apache is serving files from. Those are the only problems you can be having with that other then messed up rewrite rules in apache and maybe a few others I'm unaware of.

      Comment

      • sousou
        New Member
        • Mar 2010
        • 4

        #4
        hi i had installed also the xamp and it's the same problem .
        yes the file exists, and the page didn't open at all it said internet explorer cannot open this page !!! but there is a file which already exixts in wamp (index.php) when i wrote http://localhost/index.php it opened . so what's the problem (PS: i have windows XP and i'm using the version 5 of wamp server) and thanks for replying.

        Comment

        • philipwayne
          New Member
          • Mar 2010
          • 50

          #5
          Okay lets try to go over this again. Make sure the file exists from where apache is taking your documents. Likely to be something like "C:/xampp/apache/htdocs/" if you accepted the default make sure you saved your file there unless you changed the directory from where apache will start serving your files.

          Comment

          • Atli
            Recognized Expert Expert
            • Nov 2006
            • 5062

            #6
            Originally posted by sousou
            but there is a file which already exixts in wamp (index.php) when i wrote http://localhost/index.php it opened
            Where exactly is that file located on your hard drive?
            If you change that file, does WAMP show the change?

            And I assume this file is located where you tried to put your other files?

            Comment

            • sousou
              New Member
              • Mar 2010
              • 4

              #7
              hi i discovered where was the problem .it was in the code php (i was writing a space btween<? and php ) that was the problem anw wamp is now working very well so thanks for allllll of u.

              Comment

              • umairkhanafridi
                New Member
                • Apr 2013
                • 1

                #8
                Hello sousou
                if your php short tags not working, then please click wampserver icon -> PHP -> php.ini
                in this file change short code status on
                short_open_tag = On

                Comment

                Working...