Search code examples
phphttp-status-code-404iis-10

SOLVED Error 404.0 on IIS 10.0, but file exist in IIS directory


I have installed IIS 10.0 on an Windows Server 2019 Datacenter. To use PHP-Files I have installed PHP over CGI and its works great. All php files working without an error. But when I go to ".../task/php/sql_task_success.php"

Error 404.0 returns. MIME-TYPE from *.php is "application/octet-stream". The Error-Code from IIS is: 0x80070002 and the handler is: PHP.

I have tried to find a solution in this and other forums, but nothing works. I have checked the rights an IUSR has full access and the physical path exist and the file is in this directory the file.


Solution

  • The error was the folder named "php" in the physical path . Thank you for this tip @ADyson :)