Mos of the time this issue occur when application extensions path is setup incorrectly. The correct path should be "C:\Program Files (x86)\PHP\v5.6\php-cgi.exe" in IIS. Let’s see how to set the correct PHP extensions path:
- Login to remote desktop services (RDP).
- Now open “IIS”.
- You have to click on servername and then search for PHP Manager.
- After searching double click on it.
- Here under PHP setup, you will find "PHP executable" and its path should be "C:\Program Files (x86)\PHP\v5.6\php-cgi.exe"
- If you are not able to see the path then you can click on "Register new PHP version" and add path for cgi.exe.