« Previous Next »

Thread: Error 404 from .php files using php5, fastcgi and iis7

Last post 11-04-2008 10:27 AM by ksingla. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 10-24-2008, 9:11 AM

    Error 404 from .php files using php5, fastcgi and iis7

    Hi,

    It started as an error 500 but I've resolved that. Now, IIS7/FastCGI is returning an error 404 when I try to access a .php file that I know exists, but serves other files ok...

    http://support.ashleyschool.co.uk/index.html - serves fine

    http://support.ashleyschool.co.uk/index2.php - the same file just with a different name, doesn't serve... and returns 404, as does http://support.ashleyschool.co.uk/test.php - a file containing only the phpinfo(); statement

    Any suggestions how to resolve this please?

     

    Thanks

     

    Gareth

  • 10-24-2008, 11:45 AM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-14-2006, 3:02 AM
    • Redmond, WA
    • Posts 863

    Re: Error 404 from .php files using php5, fastcgi and iis7

    What steps did you take to configure the php handler? This article has the steps written in detail. If you did follow the steps as outlined in the article, request the page from machine running IIS and paste the detail error message you get.

    Thanks,
    Kanwal

    Follow me on twitter at http://twitter.com/kjsingla
  • 11-03-2008, 6:01 AM In reply to

    Re: Error 404 from .php files using php5, fastcgi and iis7

    I've done a fresh re-install of php from those instructions; now getting an error 500 for php files.

    I've checked that iusr has the relevant permissions to read & execute, but it doesnt like it... any ideas?

     I'm able to process the .php files on the command line using both php.exe and php-cgi.exe - it does output sensible code... the problem seems to be in that being redirected through IIS to the outside world...

  • 11-04-2008, 10:27 AM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-14-2006, 3:02 AM
    • Redmond, WA
    • Posts 863

    Re: Error 404 from .php files using php5, fastcgi and iis7

    Hi,

    Can you pls send a request from the machine running IIS and paste the detailed error message you get? If you can collect freb logs, that can pin point to the error really quickly. Follow steps here to enable freb and collect logs.

    Thanks.
    Kanwal

    Follow me on twitter at http://twitter.com/kjsingla
Page 1 of 1 (4 items)
Microsoft Communities