locked
Uninstalling components RRS feed

  • Question

  • User937121016 posted
    Hello. For my previous project I needed two PHP versions: PHP 5.2 and PHP 5.3. Now I'm working on another project and I definetely know that I will not need PHP 5.2. But how I can delete it? I used Microsoft Web Platform Installer 3.0 to install it. I can't find neither a delete option in the control panel nor in the WebMatrix. So my question is: how to delete unwanted components from WebMatrix?
    Friday, June 3, 2011 1:19 PM

Answers

  • User1317031888 posted

    Open %userprofile%\documents\iisexpress\config\applicationhost.config file and
    1. Find following entry (or similar entry) in applicationhost.config file and comment it or delete it.
                <application fullPath="C:\Program Files\iis express\PHP\v5.2\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\v5.2" />
                    </environmentVariables>
                </application>

    2. Find following entry in hanlders section and comment this as well or delete.
                    <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" />


    3.By default Web Platform Installer installs PHP to %programfiles%\iis express\php\. so open %programfiles%\iis express\php\ folder and delete the php version folder that you no longer need (don't forget to remove relavant entries from applicationhost.config as mentioned in step 1 and 2 above)

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Friday, June 3, 2011 6:31 PM

All replies

  • User1317031888 posted

    Open %userprofile%\documents\iisexpress\config\applicationhost.config file and
    1. Find following entry (or similar entry) in applicationhost.config file and comment it or delete it.
                <application fullPath="C:\Program Files\iis express\PHP\v5.2\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\v5.2" />
                    </environmentVariables>
                </application>

    2. Find following entry in hanlders section and comment this as well or delete.
                    <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" />


    3.By default Web Platform Installer installs PHP to %programfiles%\iis express\php\. so open %programfiles%\iis express\php\ folder and delete the php version folder that you no longer need (don't forget to remove relavant entries from applicationhost.config as mentioned in step 1 and 2 above)

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Friday, June 3, 2011 6:31 PM
  • User937121016 posted

    Thanks a lot!

    Sunday, June 5, 2011 2:12 AM