RE: File not found

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I've installed PHP 5.03 (the full package, not the installer) 
> in Windows
> 2003 / IIS.
> I've folloewd all instrctions very carefully in ISAPI mode.
> Nothing is misconfigured so long as the install.txt says.
> 
> Now, i've put a very simple script in C:\Inetpyb\wwwroot and 
> i get "404 File Not Found".
> 

And if you rename the file to a .htm or .html it's returned without issue? 

Sounds like a mime type problem that IIS 6 introduces since it's so much
more "secure" than previous versions.

Go into IIS and check out the Web Service Extensions. Make sure that you've
added an item for PHP pages and that it's turned on. I believe that the
instructions talk about this, but it's pretty straight forward. But whenever
IIS 6 is saying that it can't return a page that you know for a fact is
there and other pages of a different type that are right next to it are
returned without issue it usually indicates this sort of mime or web
services problem.

For a quick test, you may wish to 'Allow' the "All unknown CGI Extensions"
and "All unknown ISAPI Extensions" just to check.

Good luck.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux