Jump to content

php auf iis wie geht das?


Der letzte Beitrag zu diesem Thema ist mehr als 180 Tage alt. Bitte erstelle einen neuen Beitrag zu Deiner Anfrage!

Empfohlene Beiträge

Geschrieben

Einen wunderschönen guten Morgen,

 

ich habe nun schon seit einiger Zeit vergeblich versucht php auf einem Windows 2003 R3 Server zum laufen zu bekommen. Dieverse Anleitungen im INternet haben nicht den Erfolg gebracht. Nun hoffe ich hier auf offene Ohren zu treffen die mir weiterhelfen können. Gibt es ein deutsches verständliches Howto? oder jemanden der sich erbarmt mir Schrit für Schritt zusagen was ich tun soll. Ich bin mittlerweile etwas frustriert. Auf dem Server ist nichts drauf ausser IIS, Print und Fileserver Dienst. Ich lege mir langsam die Karten.

 

So hoffe ich denn hier mal wieder fündig zu werden.

 

Vielen Dank im Voraus!

 

Gruß Thomas

Geschrieben

Eigentlich nicht schwierg:

 

Windows NT/200x/XP and IIS 4 or newer

PHP may be installed as a CGI binary, or with the ISAPI module. In either case, you need to start the Microsoft Management Console (may appear as 'Internet Services Manager', either in your Windows NT 4.0 Option Pack branch or the Control Panel=>Administrative Tools under Windows 2000/XP). Then right click on your Web server node (this will most probably appear as 'Default Web Server'), and select 'Properties'.

 

If you want to use the CGI binary, do the following:

 

■Under 'Home Directory', 'Virtual Directory', or 'Directory', do the following:

■Change the Execute Permissions to 'Scripts only'

■Click on the 'Configuration' button, and choose the Application Mappings tab. Click Add and set the Executable path to the appropriate CGI file. An example PHP 5 value is: C:\php\php-cgi.exe Supply .php as the extension. Leave 'Method exclusions' blank, and check the 'Script engine' checkbox. Now, click OK a few times.

■Set up the appropriate security. (This is done in Internet Service Manager), and if your NT Server uses NTFS file system, add execute rights for I_USR_ to the directory that contains php.exe / php-cgi.exe.

 

To use the ISAPI module, do the following:

 

■If you don't want to perform HTTP Authentication using PHP, you can (and should) skip this step. Under ISAPI Filters, add a new ISAPI filter. Use PHP as the filter name, and supply a path to the php4isapi.dll / php5isapi.dll.

■Under 'Home Directory', 'Virtual Directory', or 'Directory', do the following:

■Change the Execute Permissions to 'Scripts only'

■Click on the 'Configuration' button, and choose the Application Mappings tab. Click Add and set the Executable path to the appropriate ISAPI DLL. An example PHP 5 value is: C:\php\php5isapi.dll Supply .php as the extension. Leave 'Method exclusions' blank, and check the 'Script engine' checkbox. Now, click OK a few times.

■Stop IIS completely (NET STOP iisadmin)

■Start IIS again (NET START w3svc)

 

With IIS 6 (2003 Server), open up the IIS Manager, go to Web Service Extensions, choose "Add a new Web service extension", enter in a name such as PHP, choose the Add button and for the value browse to either the ISAPI file (php4isapi.dll or php5isapi.dll) or CGI (php.exe or php-cgi.exe) then check "Set extension status to Allowed" and click OK.

 

In order to use index.php as a default content page, do the following: From within the Documents tab, choose Add. Type in index.php and click OK. Adjust the order by choosing Move Up or Move Down. This is similar to setting DirectoryIndex with Apache.

 

The steps above must be repeated for each extension that is to be associated with PHP scripts. .php is the most common although .php3 may be required for legacy applications.

 

If you experience 100% CPU usage after some time, turn off the IIS setting Cache ISAPI Application.

 

 

Quelle:

 

PHP: Microsoft IIS / PWS - Manual

 

Ein kurzes "Gegoogle" bringt noch:

 

Beispielkonfiguration für einen Windows 2003 IIS 6.0 Webserver

Der letzte Beitrag zu diesem Thema ist mehr als 180 Tage alt. Bitte erstelle einen neuen Beitrag zu Deiner Anfrage!

Schreibe einen Kommentar

Du kannst jetzt antworten und Dich später registrieren. Falls Du bereits ein Mitglied bist, logge Dich jetzt ein.

Gast
Auf dieses Thema antworten...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Editor-Fenster leeren

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...