Microsoft IIS - Uninstall PHP
by
Jeremy Canfield |
Updated: March 11 2020
| Microsoft IIS articles
Follow these steps to uninstall PHP from IIS.
- Go to
C:\Windows\System32\inetsrv\config
and open the applicationHost file in a text editor such as Notepad or Notepad++ - Delete the following text from the applicationHost file:
<application
fullPath="C:\Program Files\iis express\PHP\v7.0\php-cgi.exe"
monitorChangesTo="php.ini"
activityTimeout="600"
requestTimeout="600"
instanceMaxRequests="10000
">
<environmentVariables>
<environmentVariable name="PHP_FCGI_MAX_REQUESTS" value="10000" />
<environmentVariable name="PHPRC" value="C:\Program Files\iis express\PHP\v7.0" />
</environmentVariables>
</application>
- Also delete the following text from the applicationHost file:
<add
name="PHP52_via_FastCGI"
path="*.php"
verb="GET,HEAD,POST"
modules="FastCgiModule"
scriptProcessor="C:\Program Files (x86)\iis express\PHP\v5.2\php-cgi.exe"
resourceType="Either"
/>
- Go to C:\Program Files\PHP, and delete the version folder.
Did you find this article helpful?
If so, consider buying me a coffee over at