Wie kann ich eine Komponente deinstallieren, die vom Web Platform Installer installiert wurde?

36405
JannieT

Der Web Platform Installer von Microsoft hat es sehr einfach gemacht, IIS, PHP, Xdebugger usw. zu installieren und zu konfigurieren. Es scheint einen großen Nachteil zu geben. Sobald eine Komponente installiert ist, scheint es keine saubere Möglichkeit zu geben, sie zu deinstallieren oder zu entfernen. Insbesondere habe ich sowohl PHP 5.3 als auch PHP 5.4 über WPI installiert und möchte PHP 5.3 deinstallieren

Wie kann das gemacht werden?

14

2 Antworten auf die Frage

12
AaronM

Following on from the answer by Dan, the applicationhost.config file is located at C:\Windows\System32\inetsrv\config, and the sections are detailed in it:

  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" /> 

This is simply the configuration file sitting behind the IIS Manager console, the same result can be achieved by opening the IIS Manager Console, and then opening the FastCGI settings and deleting the reference to PHP 5.3, and then opening the handler mapping section and removing the mapping for PHP 5.3.

Das war's. Vielen Dank. JannieT vor 11 Jahren 0
2
Dave

Eine ähnliche Frage wurde zu Serverfehler gestellt .

%userprofile%\documents\iisexpress\config\applicationhost.configDatei öffnen und

Suchen Sie den folgenden Eintrag (oder einen ähnlichen Eintrag) in der Datei applicationhost.config und kommentieren Sie ihn oder löschen Sie ihn.

<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> 

Suchen Sie den folgenden Eintrag im Abschnitt "Hanlders" und kommentieren Sie ihn ebenfalls oder löschen Sie ihn.

 <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" /> 

Standardmäßig installiert Web Platform Installer PHP in% programfiles% \ iis express \ php. Öffnen Sie also% programfiles% \ iis express \ php \ ordner und löschen Sie den nicht mehr benötigten php-Versionsordner (vergessen Sie nicht, relavante Einträge aus der applicationhost.config zu entfernen, wie in Schritt 1 und 2 oben beschrieben).

Danke, Dave. Ich habe diese Frage tatsächlich gesehen. Das einzige Problem ist, dass ich keinen iisexpress-Ordner oder keine Datei namens applicationhost.config auf meinem System habe JannieT vor 11 Jahren 0