Skip to content
Advertisement

Local IIS installation doesn’t show phpinfo page

I’ve installed PHP on my windows 10 computer, and started IIS.

But when I browse to http://localhost/phpinfo.hml the page is completely blank.

And if I look at the file view in IIS, it seems that it’s not aware that the file exists.

enter image description here

I’ve verified that the phpinfo.html file is in the right place:

JavaScript

And has the right contents:

JavaScript

PHP is installed:

JavaScript

I gave my windows user full access to that directory. What am I doing wrong? How can I get this working?

Advertisement

Answer

If you want to show phpinfo page, you need to change phpinfo.html to phpinfo.php.

And you also need to handle PHP requests by using IIS Manager, you can set this in Handler Mappings.

enter image description here

More information about how to configure IIS to Handle PHP Requests you can refer to this link: Configure IIS to Handle PHP Requests

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement