404 error when I run test.php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • barnesb
    New Member
    • Jun 2007
    • 2

    404 error when I run test.php

    I installed php 5.2.3 using the .msi installer on a w2k3 server, when I try to run a test.php on a i.e. browser, I get "page not found" 404 error. I have verified that the php extension is allowed in IIS and that the IUSR_xxxxx has read permissions on the php dir. I have also checked some other sites for help, but still no go. HELP.

    php 5.2.3 .msi
    w2k3 w/IIS6
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, barnesb. Welcome to TSDN!

    Is test.php in the correct location? Double-check to make sure that your webserver's document root is set to the same location as it's supposed to be.

    A 404 error's on the webserver side; PHP doesn't ever see the request. So I'm going to go ahead and move this to the IIS forum where you will receive more relevant exposure.

    Comment

    • kenobewan
      Recognized Expert Specialist
      • Dec 2006
      • 4871

      #3
      Here is an article that may help:
      Common reasons IIS Server returns "HTTP 404 - File not found" error

      Comment

      • barnesb
        New Member
        • Jun 2007
        • 2

        #4
        Ok, I moved the test.php into a directory that I know works (one of my other webpages) and I still got page not found? I've had php working before, but had to reload due server hack. Of course I didn't write any of the steps down that I did to make it work (over a year ago), so I'm basically starting from scratch. Any ideas?

        Comment

        • kenobewan
          Recognized Expert Specialist
          • Dec 2006
          • 4871

          #5
          Was your previous application php? Try adding the name of your file, index.php, to the list files - default.html etc.

          Comment

          • pbmods
            Recognized Expert Expert
            • Apr 2007
            • 5821

            #6
            I read the article posted above, and this line piqued my interest:
            Originally posted by Microsoft (yeah, I know...)
            IIS 6.0: The appropriate Web service extension or MIME type is not enabled.
            Maybe IIS gives a 404 on .php files when PHP is not installed/enabled?

            Comment

            Working...