This Question have no Text answers yet!

IIS 10 to execure PHP failed

Tags: php iis
By : scarlet

I have followed some videos and seen some questions on here to no avail.

I have installed IIS (using windows 10) and downloaded PHP 7 along with Microsoft visual as stated to do so on a few tutorials. Also I installed the CGI which is a visible Icon on my IIS. I then went into Handler Mapping and created a new module and entered the request path as '*.php' and selected FastCgiModule, to which I choose entered the Executable to the folder where the Php files I download are located and selected the PHP CGI(C:\PHP\php-cgi.exe). I have a file named index.php and inside the file I have "Hello" and phpinfo() function in the file.

However, when I view the page it shows the text "Hello "but its not executing the PHP Code (<?php phpinfo(); ?>).

Any advice as to what I'm doing wrong here?

Thanks Chantal

By : scarlet

Video about IIS 10 to execure PHP failed