cvs: phpdoc /de/chapters install.xml
| From: | Thomas Schoefbeck | Date: | Mon, 05 Nov 2001 22:54:16 +0000 |
| Subject: | cvs: phpdoc /de/chapters install.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969338507@lists.php.net to get a copy of this message | ||
tom Mon Nov 5 17:54:16 2001 EDT
Modified files:
/phpdoc/de/chapters install.xml
Log:
the file is actual now, complete translation will follow
Index: phpdoc/de/chapters/install.xml diff -u phpdoc/de/chapters/install.xml:1.20 phpdoc/de/chapters/install.xml:1.21 --- phpdoc/de/chapters/install.xml:1.20 Thu Oct 4 17:05:51 2001 +++ phpdoc/de/chapters/install.xml Mon Nov 5 17:54:16 2001 @@ -1,4 +1,5 @@ -<!-- EN-Revision: 1.75 Maintainer: tom Status: working --> +<?xml encoding="iso-8859-1"?> +<!-- EN-Revision: 1.86 Maintainer: tom Status: working --> <chapter id="installation"> <title>Installation</title> @@ -320,7 +321,7 @@ </itemizedlist> Zusätzlich werden Sie für die Installation (und vielleicht auch zum Kompilieren) eine andere, für Ihre Konfiguration spezifische Software - benötigen (wie z.B. Oracle oder MySQL). + benötigen, wie z.B. Oracle oder MySQL. </para> </sect2> <sect2 id="install.solaris.packages"> @@ -1556,6 +1557,20 @@ </para> </listitem> </varlistentry> + <varlistentry id="install.configure.enable-pcntl"> + <term> + <parameter>--enable-pcntl</parameter> + </term> + <listitem> + <para> + PHP 3: Ist in PHP 3 nicht verfügbar + </para> + <para> + PHP 4: Aktiviert Prozeßsteuerungsfunktionen. (fork, waitpid, + signal, etc.) + </para> + </listitem> + </varlistentry> <varlistentry id="install.configure.disable-rpath"> <term> <parameter>--disable-rpath</parameter> @@ -2407,8 +2422,7 @@ <listitem> <para> PHP 3: Ist nicht verfügbar; verwenden Sie stattdessen <link - linkend="install.configure.with-ftp">--with-ftp</link> - instead. + linkend="install.configure.with-ftp">--with-ftp</link>. </para> <para> PHP 4: Inkludiert FTP Unterstützung @@ -2426,8 +2440,7 @@ </para> <para> PHP 4: Ist nicht verfügbar; verwenden Sie stattdessen <link - linkend="install.configure.enable-ftp">--enable-ftp</link> - instead + linkend="install.configure.enable-ftp">--enable-ftp</link>. </para> </listitem> </varlistentry> @@ -2757,7 +2770,7 @@ PHP 3: Ist in PHP 3 nicht verfügbar </para> <para> - PHP 4: Ertellt PHP als ein Modul für Pi3Web. + PHP 4: Erstellt PHP als ein Modul für Pi3Web. </para> </listitem> </varlistentry> @@ -3009,7 +3022,14 @@ </sect1> <sect1 id="install.windows"> - <title>Installation auf Windows 9x/Me/NT/2000 Systemen</title> + <title>Installation auf Windows Systemen</title> + <para> + Dieser Teil behandelt Windows 95/98/Me und Windows NT/2000/XP + (Das Setup auf XP ist dzt. noch nicht getestet). Erwarten Sie + nicht, dass PHP auf 16 Bit-Plattformen, wie z.B. Windows 3.1 + läuft. Manchmal sprechen wir bei den unterstützten Plattformen + von Win32. + </para> <para> Es gibt zwei Wege PHP für Windows zu installieren: entweder <link linkend="install.windows.manual">manuell</link>, oder mittels @@ -3033,7 +3053,11 @@ <para> Der von der Downloadseite auf <ulink url="&url.php;">&url.php;</ulink> erhältliche Windows PHP Installer installiert die CGI Version von PHP, - und konfiguriert auch die Webserver IIS, PWS, und Xitami. + und konfiguriert auch die Webserver IIS, PWS, und Xitami. Beachten Sie + aber auch, dass der InstallShield Installer zwar eine einfache Art der + Installation von PHP ist, gleichzeitig aber auch in verschiedenen + Aspekten eingeschränkt ist (z.B. wird ein automatisches Setup von + Erweiterungen nicht unterstützt). </para> <simpara> @@ -3065,15 +3089,26 @@ der Nutzung von PHP beginnen können. </simpara> + <warning> + <para> + Seien Sie sich darüber im Klaren, dass dieses Setup von PHP nicht sicher + ist. Wenn Sie ein sicheres Setup von PHP möchten, Setzen Sie PHP + manuell auf, und wählen jede Option sorgfältig aus. Dieses automatische + Setup bietet Ihnen eine sofort lauffähige PHP Installation, ist jedoch + nicht für den Einsatz auf Online-Servern gedacht. + </para> + </warning> + </sect2> <sect2 id="install.windows.manual"> - <title>Generelle Installationsschritte</title> + <title>Manuelle Installationsschritte</title> <simpara> - Diese Installationsanleitung hilft Ihnen, PHP auf Ihren - Windows 9x/Me/NT/2000 Webservern zu installieren und zu konfigurieren. - Die Originalversion dieser Anleitung wurde von &link.bob; verfasst, - welche Sie auf + Diese Installationsanleitung hilft Ihnen, PHP auf Ihrem Windows + Webserver manuell zu installieren und zu konfigurieren. Laden Sie sich + hierfür bitte die gezippte Distribution von der Downloadseite <ulink + url="&url.php;">&url.php;</ulink> herunter. Die Originalversion dieser + Anleitung wurde von &link.bob; verfasst, welche Sie auf <ulink url="&url.win32install;">&url.win32install;</ulink> finden. </simpara> <para> @@ -3109,32 +3144,46 @@ Xitami </para> </listitem> + <listitem> + <para> + Netscape Enterprise Server, iPlanet + </para> + </listitem> </itemizedlist> </para> <para> PHP 4 für Windows gibt es in zwei Varianten - ein CGI Modul (php.exe), und verschiedene SAPI Module (z.B. php4isapi.dll). Letztere ist neu in PHP 4, und bietet eine signifikant höhere Performance, sowie neue - Funktionalitäten. Beachten Sie jedoch, dass die Qualität der SAPI - Module für den Einsatz auf Produktionsservern dzt. als noch - <emphasis>NICHT</emphasis> hoch genug eingestuft wird. Der Grund dafür - ist, dass die PHP SAPI Module die Thread-safe Version des PHP Codes - benutzen. Diese ist neu in PHP 4, und wurde noch nicht eingehend genug - getestet und belastet, um als komplett stabil angesehen werden zu - können, und es sind dzt. auch ein paar Fehler bekannt. Andererseits - haben einige Leute über sehr gute Resultate mit den SAPI Modulen - berichtet, auch wenn wir über niemanden informiert sind, der sie auf - Produktionsservern einsetzt. Kurz gesagt - Ihr Nutzen kann variieren; - Wenn Sie absolute Stabilität benötigen, tauschen Sie die Performance - der SAPI Module gegen die Stabilität des CGI Moduls. - </para> + Funktionalitäten. + </para> + <warning> + <para> + Beachten Sie bitte, dass die Qualität der SAPI Module für den Einsatz + auf Produktionsservern dzt. als noch <emphasis>NICHT</emphasis> hoch + genug eingestuft wird. Besonders beim ISAPI Modul können speziell auf + älteren Plattformen als W2k ernsthafte Stabilitätsprobleme auftreten - + Sie könnten z.B. einige Server 500 Errors erleben, und am Ausfall + anderer Servermodule wie ASP leiden. Sie wurden gewarnt! + </para> + <para> + Der Grund dafür ist, dass die PHP SAPI Module die Thread-safe Version + des PHP Codes nutzen. Diese ist neu in PHP 4, und wurde noch nicht + eingehend genug getestet und belastet, um als völlig stabil angesehen + werden zu können, und es sind dzt. auch ein paar Fehler bekannt. + Andererseits haben einige Leute über sehr gute Resultate mit den SAPI + Modulen berichtet, auch wenn wir über niemanden informiert sind, der + sie auf Produktionsservern einsetzt. Kurz gesagt - Ihr Nutzen kann + variieren; Wenn Sie absolute Stabilität benötigen, tauschen Sie die + Performance der SAPI Module gegen die Stabilität des CGI Moduls. + </para> + </warning> <para> Wenn Sie eines der SAPI Module unter Windows 95 einsetzen möchten, holen - Sie sich das DCOM Update von den <ulink - url="http://download.microsoft.com/msdownload/dcom/95/x86/en/dcom95.exe">Microsoft + Sie sich das DCOM Update von den <ulink url="&url.dcom.update;">Microsoft DCOM Seiten</ulink>. Für das ISAPI Modul wird ein ISAPI 4.0 kompatibler Webserver benötigt (getestet wurden IIS 4.0, PWS 4.0 und IIS 5.0). - IIS 3.0 wird <emphasis>NICHT</emphasis> unterstützt; Wenn Sie gediegene + IIS 3.0 wird <emphasis>NICHT</emphasis> unterstützt. Wenn Sie gediegene PHP Unterstützung wünschen, sollten Sie In diesem Fall den Windows NT 4.0 Option Pack mit IIS 4.0 downloaden. </para> @@ -3145,18 +3194,34 @@ <listitem> <para> Entpacken Sie die in der Distribution enthaltenen Dateien, in - ein Verzeichnis Ihrer Wahl. Wir empfehlen "C:\PHP\". + ein Verzeichnis Ihrer Wahl. Wir empfehlen "c:\php\". </para> </listitem> <listitem> <para> + Stellen Sie sicher, dass die von PHP verwendeten DLLs gefunden + werden können. Welche DLLs benötigt werden, hängt von dem + verwendeten Webserver, und ob Sie PHP als CGI- oder Server-Modul + einsetzen. <filename>php4ts.dll</filename> wird immer verwendet. + Wenn Sie ein Server-Modul benutzen (z.B. ISAPI oder Apache), dann + brauchen Sie die entsprechende DLL des <filename>sapi</filename> + Verzeichnisses. Wenn Sie PHP extension DLLs benutzen, benötigen + Sie diese ebenfalls. Um sicherzugehen, dass diese auch gefunden + werden, können Sie sie entweder in das Systemverzeichnis (z.B. + <filename>winnt/system32</filename> oder + <filename>windows/system</filename>) kopieren, oder Sie können + sie in das gleiche Verzeichnis stellen, in welchem sich auch + die von Ihrem Webserver benutzte EXE- bzw. DLL-Datei befindet + (z.B. php.exe, php4apache.dll). + </para> + <para> Die 'php.exe', die SAPI Module, und einige Erweiterungen benötigen externe DLLs. Stellen Sie sicher, dass diese DLLs der Distribution in einem Verzeichnis liegen, welches im Windows PATH liegt. Der einfachste Weg dazu ist, die nachstehenden Dateien in Ihr Systemverzeichnis zu kopieren. Dieses heißt gewöhnlich: <simplelist> - <member>c:\windows\system auf Windows 95/98</member> + <member>c:\windows\system auf Windows 9x/Me</member> <member>c:\winnt\system32 auf Windows NT/2000</member> </simplelist> Die zu kopierenden Dateien sind: @@ -3169,24 +3234,44 @@ Die Dateien in dem Verzeichnis 'dlls' Ihrer Distribution. Sollten diese Dateien bereits auf Ihrem System installiert sein, überschreiben Sie diese nur, wenn etwas - nicht korrekt läuft (davor wird ein Back-up empfohlen). + nicht korrekt läuft (Vor dem Überschreiben empfehlen wir ein + Backup, oder verschieben diese Dateien in ein anderes + Verzeichnis - nur für den Fall dass etwas schiefgeht). </member> </simplelist> </para> + <para> + Holen Sie sich die letzte Version der Microsoft Data Access + Components (MDAC) für Ihre Plattform, speziell wenn Sie Windows + 9x/NT4 benutzen. MDAC finden Sie unter <ulink + url="&url.mdac;">&url.mdac;</ulink>. + </para> </listitem> <listitem> <para> - Kopieren Sie die Datei 'php.ini-dist' in Ihr - '%WINDOWS%' Verzeichnis auf Windows 95/98, oder in Ihr - '%SYSTEMROOT%&apos Verzeichnis unter Windows NT oder Windows - 2000, und bennen Sie sie in 'php.ini' um. Ihr + Kopieren Sie die gewünschte ini Datei (siehe unten) in Ihr + '%WINDOWS%' Verzeichnis auf Windows 9x/ME, oder in Ihr + '%SYSTEMROOT%' Verzeichnis unter Windows NT oder Windows + 2000, und benennen Sie sie in <filename>php.ini</filename> um. Ihr '%WINDOWS%' oder '%SYSTEMROOT%' Verzeichnis ist normalerweise: <simplelist> - <member>c:\windows für Windows 95/98</member> + <member>c:\windows für Windows 9x/ME</member> <member>c:\winnt oder c:\winnt40 für NT/2000 Server</member> </simplelist> </para> + <para> + In der Zip-Datei befinden sich zwei ini Dateien: + <filename>php.ini-dist</filename> und + <filename>php.ini-optimized</filename>. Wir empfehlen, die + <filename>php.ini-optimized</filename> zu verwenden, da in + dieser Datei die Default-Einstellungen für Performance und + Sicherheit optimiert sind. Am besten ist es, all die + <link linkend="configuration.file">ini Einstellungen</link> + selbst manuell vorzunehmen. Wenn Sie die bestmögliche Sicherheit + erreichen wollen ist dies der Weg für Sie, auch wenn PHP mit den + Standardeinstellungen gut läuft. + </para> </listitem> <listitem> <para> @@ -3195,7 +3280,8 @@ <listitem> <simpara> Tragen Sie bei 'extension_dir' Ihr PHP Installationsverzeichnis - oder den Pfad zu Ihren 'php_*.dll' Dateien ein. Z.B.: c:\php + oder den Pfad zu Ihren 'php_*.dll' Dateien ein, z.B.: + c:\php\extensions </simpara> </listitem> <listitem> @@ -3208,13 +3294,12 @@ <listitem> <simpara> Wählen Sie nun die Erweiterungen (Module) aus, die Sie benutzen - möchten, wenn PHP startet. Entfernen Sie in der - <filename>php.ini</filename> die Kommentarzeichen (';') in den - entsprechenden 'extension=php_*.dll' Zeilen, um die gewünschten - Erweiterungen zu laden. Sie können Module mittels - <function>dl</function> auch dynamisch laden, siehe auch - <link linkend="install.windows.extensions">Windows - Erweiterungen</link>. + möchten, wenn PHP startet. Lesen Sie in <link + linkend="install.windows.extensions">Windows Erweiterungen</link> + wie Sie eine aktivieren können, und welche bereits inkludiert sind. + Bei einer Neuinstallation ist es ratsam, erst PHP zu installieren + und zu testen, bevor Sie Erweiterungen in der + <filename>php.ini</filename> aktivieren. </simpara> </listitem> <listitem> @@ -3225,6 +3310,16 @@ setzen. </simpara> </listitem> + <listitem> + <simpara> + Beachten Sie, dass das <filename>mibs</filename> Verzeichnis + in der Windows Distribution Dateien für die SNMP Unterstützung + enthält. Dieses Verzeichnis sollte nach + <filename>DRIVE:\usr\mibs</filename> verschoben werden + (<filename>DRIVE</filename> ist das Laufwerk, auf dem PHP + installiert ist). + </simpara> + </listitem> </itemizedlist> </para> </listitem> @@ -3462,10 +3557,10 @@ <sect2 id="install.windows.extensions"> <title>Installation von Windows Erweiterungen</title> <para> - Sind PHP und ein Webserver auf Windows einmal installiert, möchten + Sind PHP und ein Webserver einmal auf Windows installiert, möchten Sie vielleicht einige Erweiterungen für zusätzliche Funktionalität - installieren. Wie bereits im Kapitel Generelle Installationsschritte - beschrieben, können Sie Erweiterungen auswählen, welche beim Start + installieren. Die folgende Tabelle beschreibt einige der verfügbaren + Erweiterungen. Sie können Erweiterungen auswählen, welche beim Start von PHP geladen werden, indem Sie das Kommentarzeichen (';') in den entsprechenden 'extension=php_*.dll' Zeilen in der <filename>php.ini</filename> entfernen. Sie können Module mittels @@ -3492,19 +3587,21 @@ Einige Erweiterungen benötigen externe DLLs, wovon bereits einige im Verzeichnis 'dlls' der PHP Distribution enthalten sind. Manche Erweiterungen benötigen jedoch DLLs, welche nicht in der PHP - Distrbution enthalten sind, wie z.B. Oracle (php_oci8.dll). + Distribution enthalten sind, wie z.B. Oracle (php_oci8.dll). </para> <para> Kopieren Sie die DLLs vom Verzeichnis 'dlls' in Ihren Windows PATH, gute Plätze sind: <simplelist> - <member>c:\windows\system für Windows 95/98</member> + <member>c:\windows\system für Windows 9x/ME</member> <member>c:\winnt\system32 für Windows NT/2000</member> </simplelist> Sollten diese Dateien bereits auf Ihrem System installiert sein, überschreiben Sie diese nur, wenn etwas nicht korrekt läuft - (davor wird ein Back-up empfohlen). + (Vor dem Überschreiben empfehlen wir ein Backup, oder verschieben + diese Dateien in ein anderes Verzeichnis - nur für den Fall dass + etwas schiefgeht). </para> </note> @@ -3788,7 +3885,7 @@ Version. </para> <sect2 id="install.apache.unix"> - <title>Details der Installation von PHP mit Apache auf Unix.</title> + <title>Details der Installation von PHP mit Apache auf Unix</title> <para> Aus der <link linkend="install.configure">Kompletten Liste der Konfigurationsoptionen</link> können Sie die weitere Argumente @@ -3816,9 +3913,9 @@ 13. make 14. make install - Instead of this step you may prefer to simply copy the httpd binary - overtop of your existing binary. Make sure you shut down your - server first though. + Statt diesem Schritt können Sie auch die httpd Binärdatei einfach über + Ihre existierende Binärdatei kopieren. Stellen Sie jedoch sicher, dass + der Server zuvor heruntergefahren wurde. 15. cd ../php-x.x.x 16. for PHP 3: cp php3.ini-dist /usr/local/lib/php3.ini @@ -3845,10 +3942,11 @@ <para> Es gibt abhängig von Ihrer Apache Installation und Unix Variante viele - mögliche Wege den Server zu stoppen und restarten. Nachstehend finden - Sie einige typische Zeilen für einen Server Restart auf verschiedenen - apache/unix Installationen. Ersetzen Sie <literal>/path/to/</literal> - mit dem Pfad zu diesen Applikationen auf Ihrem System. + mögliche Wege den Server zu stoppen und neu zu starten. Nachstehend + finden Sie einige typische Zeilen für einen Server Restart auf + verschiedenen apache/unix Installationen. Ersetzen Sie + <literal>/path/to/</literal> mit dem Pfad zu diesen Applikationen auf + Ihrem System. <informalexample> <programlisting> 1. Verschiedene Linux und SysV Varianten: @@ -3953,13 +4051,13 @@ <sect2 id="install.apache.windows"> - <title>Details der Installation von PHP auf Windows mit Apache 1.3.x</title> + <title>Installation von PHP auf Windows mit Apache 1.3.x</title> <simpara> Es gibt zwei Arten, PHP mit Apache 1.3.x unter Windows aufzusetzen. Eine ist die Verwendung des CGi Moduls (php.exe), die andere ist der Einsatz der Apache Modul dll. In beiden Fällen müssen Sie den - Apache Server stoppen, und Ihre <literal>srm.conf</literal> oder - <literal>httpd.conf</literal> editieren, um Apache für die + Apache Server stoppen, und Ihre <filename>srm.conf</filename> oder + <filename>httpd.conf</filename> editieren, um Apache für die Zusammenarbeit mit PHP zu konfigurieren. </simpara> <simpara> @@ -3971,10 +4069,10 @@ <para> Wenn Sie die PHP Distribution wie im Teil <link - linkend="install.windows.manual">Generelle - Installationsschritte</link> beschrieben nach C:\PHP\ entpackt - haben, müssen Sie die folgenden Zeilen in Ihrer Apache conf Datei - einfügen, um das CGI-Modul aufzusetzen: + linkend="install.windows.manual">Manuelle + Installationsschritte</link> beschrieben nach c:\php\ entpackt + haben, müssen Sie die folgenden Zeilen in Ihrer Apache + Konfigurationsdatei einfügen, um das CGI-Modul aufzusetzen: <itemizedlist> <listitem> <simpara> @@ -3998,18 +4096,22 @@ </simpara> </listitem> </itemizedlist> - Vergessen Sie nicht den Server zu restarten, z.B. mit - <literal>NET STOP APACHE</literal> gefolgt von - <literal>NET START APACHE</literal>. + Beachten Sie, dass die zweite Zeile der obigen Liste in den + aktuellen Versionen von <filename>httpd.conf</filename> bereits + enthalten, jedoch auskommentiert ist. Vergessen Sie nicht, nach + der Änderung der Konfigurationsdatei den Server neu zu starten, + z.B. mit <literal>NET STOP APACHE</literal>, gefolgt von + <literal>NET START APACHE</literal> wenn Sie Apache als Windows + Service nutzen, oder verwenden Sie Ihre Shortcuts. </para> <para> - Wenn Sie PHP als Apache Modul einsetzen möchten, sollten Sie die + Wenn Sie PHP als Apache Modul einsetzen möchten, kopieren Sie die <filename>php4ts.dll</filename> in Ihr windows/system (für Windows - 9x/Me) oder winnt/system32 (für Windows NT/2000) Verzeichnis - kopieren, und die dort eventuell bereits existierende Datei - überschreiben. Dann sollten Sie die folgenden zwei Zeilen in Ihrer - Apache conf Datei einfügen: + 9x/Me) oder winnt/system32 (für Windows NT/2000) Verzeichnis, + und überschreiben die dort eventuell bereits existierende Datei. + Dann sollten Sie die folgenden zwei Zeilen in Ihrer Apache conf + Datei einfügen: <itemizedlist> <listitem> <simpara> @@ -4028,18 +4130,32 @@ </itemizedlist> </para> + <note> + <simpara> + Apache 1.3.22 for Windows hat in seiner Konfigurationsdatei + (<filename>httpd.conf-dist-win</filename>) die + <literal>ClearModuleList</literal> Direktive standardmäßig + inkludiert. Wird diese Direktive verwendet, muss eine + <literal>AddModule mod_php4.c</literal> in die + <literal>AddModule</literal> Liste aufgenommen werden, da + PHP sonst nicht als ein Apache Modul registriert wird. + </simpara> + </note> + <simpara> Um das Source Code Highlighting Feature verwenden zu können, erstellen Sie einfach eine PHP Skriptdatei, und fügen diesen Code ein: <literal><?php show_source ("original_php_script.php"); ?></literal>. Ersetzen Sie <literal>original_php_script.php</literal> durch den Dateinamen der Datei, dessen Sourcecode Sie anzeigen - lassen möchten (Das ist der einzige Weg, dies zu tun). + lassen möchten (Das ist der einzige Weg, dies zu tun, da unter + Windows kein Feature wie .phps existiert). </simpara> <note> <simpara> Auf Win-Apache müssen alle Backslashes "\" in einer Pfadangabe, - wie z.B. "c:\directory\file.ext", in Slashes "/" umgewandelt werden. + wie z.B. "c:\directory\file.ext", in Slashes "/" umgewandelt + werden, wie z.B. "c:/directory/file.ext". </simpara> </note> </sect2> @@ -4074,12 +4190,13 @@ <simpara> Haben Sie PHP 3 als CGI Programm erstellt, können Sie Ihren Build mit <command>make bench</command> bewerten. Beachten Sie, dass wenn - Safe Mode standardmäßig aktiviert ist, der Benchmark nicht fertig - durchgeführt werden kann, sollte dieser länger als die erlaubten 30 - Sekunden dauern. Der Grund dafür liegt in der Tatsache, dass - <function>set_time_limit</function> in Safe Mode nicht benutzt werden - kann. Verwenden Sie die Konfigurationsoption <link - linkend="ini.max-execution-time">max_execution_time</link>, um diese + <link linkend="features.safe-mode">Safe Mode</link> standardmäßig + aktiviert ist, der Benchmark nicht fertiggestellt werden kann, + sollte dieser länger als die erlaubten 30 Sekunden dauern. Der Grund + dafür liegt in der Tatsache, dass <function>set_time_limit</function> + in Safe Mode nicht benutzt werden kann. Verwenden Sie die + Konfigurationsoption <link + linkend="ini.max-execution-time">max_execution_time</link>, um diese Zeit für Ihre eigenen Skripte einzustellen. <command>make bench</command> ignoriert die <link linkend="configuration.file">Konfigurationsdatei</link>. @@ -4108,50 +4225,51 @@ </sect1> <sect1 id="install.caudium"> - <title>Servers-Caudium</title> + <title>Server - Caudium</title> <para> - PHP 4 can be build as a Pike module for the Caudium webserver. Note - that this is not supported with PHP 3. Follow the simple - instructions below to install PHP 4 for Caudium. + PHP 4 kann als Pike Modul für den Caudium Webserver erstellt werden. + Dies wird mit PHP 3 nicht unterstützt. Folgen Sie einfach den + nachstehenden Instruktionen, um PHP 4 für Caudium zu installieren. </para> <example id="install.caudium.instructions"> - <title>Caudium Installation Instructions</title> + <title>Caudium Installationsanweisungen</title> <programlisting> -1. Make sure you have Caudium installed prior to attempting to - install PHP 4. For PHP 4 to work correctly, you will need Pike - 7.0.268 or newer. For the sake of this example we assume that - Caudium is installed in /opt/caudium/server/. -2. Change directory to php-x.y.z (where x.y.z is the version number). +1. Installieren Sie Caudium, bevor Sie mit der Installation von PHP 4 + beginnen. Damit PHP 4 einwandfrei arbeitet, benötigen Sie Pike + 7.0.268 oder neuer. In diesem Beispiel nehmen wir an, dass Caudium + in /opt/caudium/server/ installiert ist. +2. Wechseln Sie in das Verzeichnis php-x.y.z (wobei x.y.z die + Versionsnummer darstellt) 3. ./configure --with-caudium=/opt/caudium/server 4. make 5. make install -6. Restart Caudium if it's currently running. -7. Log into the graphical configuration interface and go to the - virtual server where you want to add PHP 4 support. -8. Click Add Module and locate and then add the PHP 4 Script Support module. -9. If the documentation says that the 'PHP 4 interpreter isn't - available', make sure that you restarted the server. If you did - check /opt/caudium/logs/debug/default.1 for any errors related to - <filename>PHP4.so</filename>. Also make sure that +6. Starten Sie Caudium neu, sollte er gerade laufen. +7. Öffnen Sie die grafische Konfigurationsoberfläche, und wechseln Sie + zu dem virtuellen Server, welcher PHP 4 Unterstützung bieten soll. +8. Klicken Sie auf Add Module and locate, und fügen das PHP 4 Script + Support Modul hinzu. +9. Sollte die Dokumentation meinen 'PHP 4 interpreter isn't available', + vergewissern Sie sich, dass der Server neu gestartet wurde. Prüfen + Sie /opt/caudium/logs/debug/default.1 auf Fehler in Bezug auf + <filename>PHP4.so</filename>. Vergewissern Sie sich ebenfalls, dass <filename>caudium/server/lib/[pike-version]/PHP4.so</filename> - is present. -10. Configure the PHP Script Support module if needed. + vorhanden ist. +10. Konfigurieren Sie das PHP Script Support Module wenn nötig. </programlisting> </example> <para> - You can of course compile your Caudium module with support for the - various extensions available in PHP 4. See the - <link linkend="install.configure">complete list of configure - options</link> for an exhaustive rundown. + Sie können Ihr Caudium Modul natürlich mit Unterstützung der + verschiedenen in PHP 4 verfügbaren Erweiterungen kompilieren. Die + <link linkend="install.configure">Komplette Liste der + Konfigurationsoptionen</link> bietet hierfür eine gute Übersicht. </para> <note> <para> - When compiling PHP 4 with MySQL support you must make sure that - the normal MySQL client code is used. Otherwise there might be - conflicts if your Pike already has MySQL support. You do this by - specifying a MySQL install directory <link - linkend="install.configure.with-mysql">the --with-mysql - option</link>. + Wenn Sie PHP 4 mit MySQL Unterstützung kompilieren müssen Sie + sicherstellen, dass der normale MySQL Client Code verwendet wird. + Die tun Sie, indem Sie ein MySQL Installationsverzeichnis mittels + <link linkend="install.configure.with-mysql"> der --with-mysql + Option</link> spezifizieren. </para> </note> </sect1> @@ -4160,7 +4278,7 @@ <title>Servers-IIS/PWS</title> <para> This section contains notes and hints specific to IIS (Microsoft - Internet Information Server) installing PHP for + Internet Information Server). Installing PHP for <link linkend="install.iis.iis3">PWS/IIS 3</link>, <link linkend="install.iis.pws4">PWS 4 or newer</link> and <link linkend="install.iis.iis4">IIS 4 or newer</link> versions. @@ -4170,8 +4288,8 @@ <simpara> The recommended method for configuring these servers is to use - the INF file included with the distribution - (php_iis_reg.inf). You may want to edit this file and make sure + the REG file included with the distribution + (pws-php4cgi.reg). You may want to edit this file and make sure the extensions and PHP install directories match your configuration. Or you can follow the steps below to do it manually. @@ -4208,15 +4326,14 @@ <listitem> <simpara> Type in the extension you wish to use for your php - scripts. ex: <literal>.php</literal> + scripts. For example <literal>.php</literal> </simpara> </listitem> <listitem> <simpara> Double click on the new string value and enter the path to <literal>php.exe</literal> in the value data field. ex: - <literal>c:\php\php.exe %s %s</literal>. The '%s %s' is VERY - important, PHP will not work properly without it. + <literal>c:\php\php.exe</literal>. </simpara> </listitem> <listitem> @@ -4225,9 +4342,22 @@ with PHP scripts. </simpara> </listitem> + </itemizedlist> + </para> + <para> + The following steps do not affect the web server installation + and only apply if you want your php scripts to be executed when + they are run from the command line (ex. run + <filename>c:\myscripts\test.php</filename>) or by double clicking + on them in a directory viewer window. You may wish to skip these + steps as you might prefer the PHP files to load into a text + editor when you double click on them. + </para> + <para> + <itemizedlist> <listitem> <simpara> - Now navigate to: <literal>HKEY_CLASSES_ROOT</literal> + Navigate to: <literal>HKEY_CLASSES_ROOT</literal> </simpara> </listitem> <listitem> @@ -4332,7 +4462,7 @@ Edit the enclosed <filename>pws-php4cgi.reg</filename> file (look into the sapi dir) to reflect the location of your php.exe. Forward slashes should be escaped, for example: - <literal>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] ".php"="C:\\PHP\\php.exe"</literal> + <literal>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] ".php"="c:\\php\\php.exe"</literal> </simpara> </listitem> <listitem> @@ -4353,7 +4483,7 @@ Edit the enclosed <filename>pws-php4isapi.reg</filename> file (look into the sapi dir) to reflect the location of your php4isapi.dll. Forward slashes should be escaped, for example: - <literal>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] ".php"="C:\\PHP\\sapi\\php4isapi.dll"</literal> + <literal>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] ".php"="c:\\php\\sapi\\php4isapi.dll"</literal> </simpara> </listitem> <listitem> @@ -4399,21 +4529,27 @@ <listitem> <simpara> Click Add, and in the Executable box, type: - <literal>c:\php\php.exe %s %s</literal> (assuming - that you have unziped PHP in c:\php\). You MUST - have the %s %s on the end, PHP will not function - properly if you fail to do this. + <literal>c:\php\php.exe</literal> (assuming + that you have unziped PHP in c:\php\). </simpara> </listitem> <listitem> <simpara> In the Extension box, type the file name extension you want associated with PHP scripts. Leave 'Method exclusions' - blank, and check the Script engine checkbox. - You must repeat step 3 and 4 for each extension you - want associated with PHP scripts. - (<literal>.php</literal> and <literal>.phtml</literal> - are common.) + blank, and check the Script engine checkbox. You may also + like to check the 'check that file exists' box - for a small + performance penalty, IIS (or PWS) will check that the script + file exists and sort out authentication before firing up php. + This means that you will get sensible 404 style error messages + instead of cgi errors complaing that php did not output any data. + </simpara> + <simpara> + You must start over from the previous step for each + extension you want associated with PHP scripts. + <literal>.php</literal> and <literal>.phtml</literal> + are common, although <literal>.php3</literal> may be + required for legacy applications. </simpara> </listitem> <listitem> @@ -4442,19 +4578,19 @@ <simpara> Under 'Home Directory', click on the 'Configuration' button. Add a new entry to the Application Mappings. Use the path - to the php4isapi.dll as the Executable, supply .php as the - extension, leave Method exclusions blank, and check the - Script engine checkbox. + to the php4isapi.dll as the Executable, supply + <literal>.php</literal> as the extension, leave Method + exclusions blank, and check the Script engine checkbox. </simpara> </listitem> <listitem> <simpara> - Stop IIS completely + Stop IIS completely (NET STOP iisadmin) </simpara> </listitem> <listitem> <simpara> - Start IIS again + Start IIS again (NET START w3svc) </simpara> </listitem> </itemizedlist> @@ -4465,19 +4601,29 @@ <sect1 id="install.netscape-enterprise"> <title>Servers-Netscape and iPlanet</title> <para> - To build PHP with NES or iPlanet web servers, enter the proper - install directory for the - <option><link linkend="install.configure.with-nsapi">--with-nsapi</link> = <replaceable>DIR</replaceable></option> - option. The default directory is usually - <filename class="directory">/opt/netscape/suitespot/</filename>. - Please also read <filename>/php-xxx-version/sapi/nsapi/nsapi-readme.txt</filename>. + This section contains notes and hints specific to Netscape and iPlanet + installs of PHP, both for <link linkend="install.netscape.sun">Sun Solaris</link> + and <link linkend="install.netscape.windows">Windows</link> versions. </para> <para> - <example id="install.netscape-enterprise.solaris"> - <title> - Installation Example for Netscape Enterprise on Solaris - </title> - <programlisting> + You can find more information about setting up PHP for + the Netscape Enterprise Server here: + <ulink url="&url.netscape.nsapi;">&url.netscape.nsapi;</ulink> + </para> + <sect2 id="install.netscape.sun"> + <title>Installing PHP with Netscape on Sun Solaris</title> + <para> + To build PHP with NES or iPlanet web servers, enter the proper + install directory for the + <option><link linkend="install.configure.with-nsapi">--with-nsapi</link> + = <replaceable>DIR</replaceable></option> option. The default + directory is usually <filename class="directory">/opt/netscape/suitespot/</filename>. + Please also read <filename>/php-xxx-version/sapi/nsapi/nsapi-readme.txt</filename>. + </para> + <para> + <example id="install.netscape-enterprise.solaris"> + <title>Installation Example for Netscape Enterprise on Solaris</title> + <programlisting> Instructions for Sun Solaris 2.6 with Netscape Enterprise Server 3.6 From: bhager@invacare.com @@ -4529,12 +4675,12 @@ located in:<filename class="directory">/path/to/server/https-servername/config/</filename>. </para> - - <example id="install.netscape-enterprise.configure"> - <title> - Configuration Example for Netscape Enterprise - </title> - <programlisting> + + <example id="install.netscape-enterprise.configure"> + <title> + Configuration Example for Netscape Enterprise + </title> + <programlisting> Configuration Instructions for Netscape Enterprise Server From: bhager@invacare.com @@ -4587,7 +4733,9 @@ </Object> </programlisting> </example> - <para>If you are running Netscape Enterprise 4.x, then you should use the following:</para> + <para> + If you are running Netscape Enterprise 4.x, then you should use the following: + </para> <example> <title>Configuration Example for Netscape Enterprise 4.x</title> <programlisting> @@ -4599,6 +4747,134 @@ Init fn="php4_init" LateInit="yes" </programlisting> </example> + </sect2> + <sect2 id="install.netscape.windows"> + <title>Installing PHP with Netscape on Windows</title> + <para> + To Install PHP as CGI (for Netscape Enterprise Server, + iPlanet, perhaps Fastrack), do the following: + </para> + <itemizedlist> + <listitem> + <simpara> + Copy <filename>php4ts.dll</filename> to your systemroot + (the directory where you installed windows) + </simpara> + </listitem> + <listitem> + <para> + Make a file association from the command line. + Type the following two lines: + <programlisting> +assoc .php=PHPScript +ftype PHPScript=c:\php\php.exe %1 %* + </programlisting> + </para> + </listitem> + <listitem> + <simpara> + In the Netscape Enterprise Administration Server create + a dummy shellcgi directory and remove it just after (this + step creates 5 important lines in obj.conf and allow the + web server to handle shellcgi scripts). + </simpara> + </listitem> + <listitem> + <simpara> + In the Netscape Enterprise Administration Server create + a new mime type (Category: type, + Content-Type: magnus-internal/shellcgi, File Suffix:php). + </simpara> + </listitem> + <listitem> + <simpara> + Do it for each web server instance you want php to run + </simpara> + </listitem> + </itemizedlist> + <para> + More details about setting up + PHP as a CGI executable can be found here: + <ulink url="&url.netscape.cgi;">&url.netscape.cgi;</ulink> + </para> + <para> + To Install PHP as NSAPI (for Netscape Enterprise Server, + iPlanet, perhaps Fastrack, do the following: + </para> + <itemizedlist> + <listitem> + <simpara> + Copy <filename>php4ts.dll</filename> to your systemroot + (the directory where you installed windows) + </simpara> + </listitem> + <listitem> + <para> + Make a file association from the command line. + Type the following two lines: + <programlisting> +assoc .php=PHPScript +ftype PHPScript=c:\php\php.exe %1 %* + </programlisting> + </para> + </listitem> + <listitem> + <simpara> + In the Netscape Enterprise Administration Server create + a new mime type (Category: type, + Content-Type: magnus-internal/x-httpd-php, File Suffix:php). + </simpara> + </listitem> + <listitem> + <para> + Stop your web service and edit <filename>obj.conf</filename>. + At the end of the Init section, place these two lines + (necessarily after mime type init!): + <programlisting> +Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans" shlib="c:/php/sapi/php4nsapi.dll" +Init fn="php4_init" errorString="Failed to initialise PHP!" + </programlisting> + </para> + </listitem> + <listitem> + <para> + In The <literal>< Object name="default" ></literal> + section, place this line necessarily after all 'ObjectType' + and before all 'AddLog' lines: + <programlisting> +Service fn="php4_execute" type="magnus-internal/x-httpd-php" + </programlisting> + </para> + </listitem> + <listitem> + <para> + At the end of the file, create a new object called + <literal>x-httpd-php</literal>, by inserting these lines: + <programlisting> +<Object name="x-httpd-php"> +ObjectType fn="force-type" type="magnus-internal/x-httpd-php" +Service fn=php4_execute +</Object> + </programlisting> + </para> + </listitem> + <listitem> + <simpara> + Restart your web service and apply changes + </simpara> + </listitem> + <listitem> + <simpara> + Do it for each web server instance you want PHP to run + </simpara> + </listitem> + </itemizedlist> + <para> + More details about setting up + PHP as an NSAPI filter can be found here: + <ulink url="&url.netscape.nsapi;">&url.netscape.nsapi;</ulink> + </para> + </sect2> </sect1> <sect1 id="install.omnihttpd"> @@ -4610,7 +4886,11 @@ <title>OmniHTTPd 2.0b1 and up for Windows</title> <simpara> - This has got to be the easiest config there is: + You need to complete the folowing steps to make PHP + work with OmniHTTPd. This is a CGI executable setup. + SAPI is supported by OmniHTTPd, but some tests showed, + that it is not so stable to use PHP as an ISAPI module + in OmniHTTPd. </simpara> <para> @@ -4696,18 +4976,18 @@ <listitem> <para> From the List select "Associations" and enter the desired - extension (".php") and the path to the CGI exe - (ex. c:\php\php.exe) or the ISAPI dll file - (ex. c:\php\sapi\php4isapi.dll). + extension (<literal>.php</literal>) and the path to the CGI exe + (ex. <filename>c:\php\php.exe</filename>) or the ISAPI DLL file + (ex. <filename>c:\php\sapi\php4isapi.dll</filename>). </para> </listitem> <listitem> <para> - Select "Content Types" add the same extension ".php" - and enter the content type. If you choose the CGI exe - file, enter 'wwwserver/shellcgi', if you chosse the - ISAPI module, enter 'wwwserver/isapi' (both without - quotes). + Select "Content Types" add the same extension + (<literal>.php</literal>) and enter the content type. + If you choose the CGI executable file, enter + 'wwwserver/shellcgi', if you chosse the ISAPI module, + enter 'wwwserver/isapi' (both without quotes). </para> </listitem> </itemizedlist> @@ -4734,21 +5014,21 @@ <para> Make sure the webserver is running, and point your browser to xitamis admin console - (usually http://127.0.0.1/admin), and click on - Configuration. + (usually <literal>http://127.0.0.1/admin</literal>), + and click on Configuration. </para> </listitem> <listitem> <para> Navigate to the Filters, and put the - extension which php should parse (i.e. .php) + extension which PHP should parse (i.e. .php) into the field File extensions (.xxx). </para> </listitem> <listitem> <para> In Filter command or script put the path and name - of your php executable i.e. c:\php\php.exe. + of your php executable i.e. <literal>c:\php\php.exe</literal>. </para> </listitem> <listitem> @@ -4778,9 +5058,9 @@ <sect2> <title>Read the FAQ</title> <simpara> - Some problems are more common than others. The most common ones - are listed in the PHP FAQ, found at <ulink - url="&url.php.faq;">&url.php.faq;</ulink> + Some problems are more common than others. The most + common ones are listed in the PHP FAQ, found at <ulink + url="&url.php.faq;">&url.php.faq;</ulink> </simpara> </sect2> @@ -4792,11 +5072,10 @@ able to help you. You should check out the archive first, in case someone already answered someone else who had the same problem as you. The archives are available from the support page on <ulink - url="&url.php;">&url.php;</ulink>. To subscribe to the PHP installation + url="&url.php;">&url.php;</ulink>. To subscribe to the PHP installation mailing list, send an empty mail to <ulink - url="mailto:&email.php.install.subscribe;">&email.php.install.subscribe;</ulink>. - The mailing list address is - <literal>&email.php.install;</literal>. + url="mailto:&email.php.install.subscribe;">&email.php.install.subscribe;</ulink>. + The mailing list address is <literal>&email.php.install;</literal>. </simpara> <simpara> If you want to get help on the mailing list, please try to be @@ -4815,11 +5094,11 @@ PHP developers probably don't know about it, and unless you report it, chances are it won't be fixed. You can report bugs using the bug-tracking system at <ulink - url="&url.php.bugs;">&url.php.bugs;</ulink>. + url="&url.php.bugs;">&url.php.bugs;</ulink>. </simpara> <simpara> Read the <ulink - url="&url.php.bugdosdonts;">Bugs-Dos-And-Donts</ulink> + url="&url.php.bugdosdonts;">Bugs-Dos-And-Donts</ulink> before submitting any bug reports! </simpara> </sect2> @@ -4828,20 +5107,22 @@ </chapter> - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - sgml-parent-document:nil - sgml-default-dtd-file:"../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: -vi: et:ts=1:sw=1:textwidth=78:syntax=sgml - --> +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +sgml-parent-document:nil +sgml-default-dtd-file:"../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +-->
Index: phpdoc/de/chapters/install.xml diff -u phpdoc/de/chapters/install.xml:1.20 phpdoc/de/chapters/install.xml:1.21 --- phpdoc/de/chapters/install.xml:1.20 Thu Oct 4 17:05:51 2001 +++ phpdoc/de/chapters/install.xml Mon Nov 5 17:54:16 2001 @@ -1,4 +1,5 @@ -<!-- EN-Revision: 1.75 Maintainer: tom Status: working --> +<?xml encoding="iso-8859-1"?> +<!-- EN-Revision: 1.86 Maintainer: tom Status: working --> <chapter id="installation"> <title>Installation</title> @@ -320,7 +321,7 @@ </itemizedlist> Zusätzlich werden Sie für die Installation (und vielleicht auch zum Kompilieren) eine andere, für Ihre Konfiguration spezifische Software - benötigen (wie z.B. Oracle oder MySQL). + benötigen, wie z.B. Oracle oder MySQL. </para> </sect2> <sect2 id="install.solaris.packages"> @@ -1556,6 +1557,20 @@ </para> </listitem> </varlistentry> + <varlistentry id="install.configure.enable-pcntl"> + <term> + <parameter>--enable-pcntl</parameter> + </term> + <listitem> + <para> + PHP 3: Ist in PHP 3 nicht verfügbar + </para> + <para> + PHP 4: Aktiviert Prozeßsteuerungsfunktionen. (fork, waitpid, + signal, etc.) + </para> + </listitem> + </varlistentry> <varlistentry id="install.configure.disable-rpath"> <term> <parameter>--disable-rpath</parameter> @@ -2407,8 +2422,7 @@ <listitem> <para> PHP 3: Ist nicht verfügbar; verwenden Sie stattdessen <link - linkend="install.configure.with-ftp">--with-ftp</link> - instead. + linkend="install.configure.with-ftp">--with-ftp</link>. </para> <para> PHP 4: Inkludiert FTP Unterstützung @@ -2426,8 +2440,7 @@ </para> <para> PHP 4: Ist nicht verfügbar; verwenden Sie stattdessen <link - linkend="install.configure.enable-ftp">--enable-ftp</link> - instead + linkend="install.configure.enable-ftp">--enable-ftp</link>. </para> </listitem> </varlistentry> @@ -2757,7 +2770,7 @@ PHP 3: Ist in PHP 3 nicht verfügbar </para> <para> - PHP 4: Ertellt PHP als ein Modul für Pi3Web. + PHP 4: Erstellt PHP als ein Modul für Pi3Web. </para> </listitem> </varlistentry> @@ -3009,7 +3022,14 @@ </sect1> <sect1 id="install.windows"> - <title>Installation auf Windows 9x/Me/NT/2000 Systemen</title> + <title>Installation auf Windows Systemen</title> + <para> + Dieser Teil behandelt Windows 95/98/Me und Windows NT/2000/XP + (Das Setup auf XP ist dzt. noch nicht getestet). Erwarten Sie + nicht, dass PHP auf 16 Bit-Plattformen, wie z.B. Windows 3.1 + läuft. Manchmal sprechen wir bei den unterstützten Plattformen + von Win32. + </para> <para> Es gibt zwei Wege PHP für Windows zu installieren: entweder <link linkend="install.windows.manual">manuell</link>, oder mittels @@ -3033,7 +3053,11 @@ <para> Der von der Downloadseite auf <ulink url="&url.php;">&url.php;</ulink> erhältliche Windows PHP Installer installiert die CGI Version von PHP, - und konfiguriert auch die Webserver IIS, PWS, und Xitami. + und konfiguriert auch die Webserver IIS, PWS, und Xitami. Beachten Sie + aber auch, dass der InstallShield Installer zwar eine einfache Art der + Installation von PHP ist, gleichzeitig aber auch in verschiedenen + Aspekten eingeschränkt ist (z.B. wird ein automatisches Setup von + Erweiterungen nicht unterstützt). </para> <simpara> @@ -3065,15 +3089,26 @@ der Nutzung von PHP beginnen können. </simpara> + <warning> + <para> + Seien Sie sich darüber im Klaren, dass dieses Setup von PHP nicht sicher + ist. Wenn Sie ein sicheres Setup von PHP möchten, Setzen Sie PHP + manuell auf, und wählen jede Option sorgfältig aus. Dieses automatische + Setup bietet Ihnen eine sofort lauffähige PHP Installation, ist jedoch + nicht für den Einsatz auf Online-Servern gedacht. + </para> + </warning> + </sect2> <sect2 id="install.windows.manual"> - <title>Generelle Installationsschritte</title> + <title>Manuelle Installationsschritte</title> <simpara> - Diese Installationsanleitung hilft Ihnen, PHP auf Ihren - Windows 9x/Me/NT/2000 Webservern zu installieren und zu konfigurieren. - Die Originalversion dieser Anleitung wurde von &link.bob; verfasst, - welche Sie auf + Diese Installationsanleitung hilft Ihnen, PHP auf Ihrem Windows + Webserver manuell zu installieren und zu konfigurieren. Laden Sie sich + hierfür bitte die gezippte Distribution von der Downloadseite <ulink + url="&url.php;">&url.php;</ulink> herunter. Die Originalversion dieser + Anleitung wurde von &link.bob; verfasst, welche Sie auf <ulink url="&url.win32install;">&url.win32install;</ulink> finden. </simpara> <para> @@ -3109,32 +3144,46 @@ Xitami </para> </listitem> + <listitem> + <para> + Netscape Enterprise Server, iPlanet + </para> + </listitem> </itemizedlist> </para> <para> PHP 4 für Windows gibt es in zwei Varianten - ein CGI Modul (php.exe), und verschiedene SAPI Module (z.B. php4isapi.dll). Letztere ist neu in PHP 4, und bietet eine signifikant höhere Performance, sowie neue - Funktionalitäten. Beachten Sie jedoch, dass die Qualität der SAPI - Module für den Einsatz auf Produktionsservern dzt. als noch - <emphasis>NICHT</emphasis> hoch genug eingestuft wird. Der Grund dafür - ist, dass die PHP SAPI Module die Thread-safe Version des PHP Codes - benutzen. Diese ist neu in PHP 4, und wurde noch nicht eingehend genug - getestet und belastet, um als komplett stabil angesehen werden zu - können, und es sind dzt. auch ein paar Fehler bekannt. Andererseits - haben einige Leute über sehr gute Resultate mit den SAPI Modulen - berichtet, auch wenn wir über niemanden informiert sind, der sie auf - Produktionsservern einsetzt. Kurz gesagt - Ihr Nutzen kann variieren; - Wenn Sie absolute Stabilität benötigen, tauschen Sie die Performance - der SAPI Module gegen die Stabilität des CGI Moduls. - </para> + Funktionalitäten. + </para> + <warning> + <para> + Beachten Sie bitte, dass die Qualität der SAPI Module für den Einsatz + auf Produktionsservern dzt. als noch <emphasis>NICHT</emphasis> hoch + genug eingestuft wird. Besonders beim ISAPI Modul können speziell auf + älteren Plattformen als W2k ernsthafte Stabilitätsprobleme auftreten - + Sie könnten z.B. einige Server 500 Errors erleben, und am Ausfall + anderer Servermodule wie ASP leiden. Sie wurden gewarnt! + </para> + <para> + Der Grund dafür ist, dass die PHP SAPI Module die Thread-safe Version + des PHP Codes nutzen. Diese ist neu in PHP 4, und wurde noch nicht + eingehend genug getestet und belastet, um als völlig stabil angesehen + werden zu können, und es sind dzt. auch ein paar Fehler bekannt. + Andererseits haben einige Leute über sehr gute Resultate mit den SAPI + Modulen berichtet, auch wenn wir über niemanden informiert sind, der + sie auf Produktionsservern einsetzt. Kurz gesagt - Ihr Nutzen kann + variieren; Wenn Sie absolute Stabilität benötigen, tauschen Sie die + Performance der SAPI Module gegen die Stabilität des CGI Moduls. + </para> + </warning> <para> Wenn Sie eines der SAPI Module unter Windows 95 einsetzen möchten, holen - Sie sich das DCOM Update von den <ulink - url="http://download.microsoft.com/msdownload/dcom/95/x86/en/dcom95.exe">Microsoft + Sie sich das DCOM Update von den <ulink url="&url.dcom.update;">Microsoft DCOM Seiten</ulink>. Für das ISAPI Modul wird ein ISAPI 4.0 kompatibler Webserver benötigt (getestet wurden IIS 4.0, PWS 4.0 und IIS 5.0). - IIS 3.0 wird <emphasis>NICHT</emphasis> unterstützt; Wenn Sie gediegene + IIS 3.0 wird <emphasis>NICHT</emphasis> unterstützt. Wenn Sie gediegene PHP Unterstützung wünschen, sollten Sie In diesem Fall den Windows NT 4.0 Option Pack mit IIS 4.0 downloaden. </para> @@ -3145,18 +3194,34 @@ <listitem> <para> Entpacken Sie die in der Distribution enthaltenen Dateien, in - ein Verzeichnis Ihrer Wahl. Wir empfehlen "C:\PHP\". + ein Verzeichnis Ihrer Wahl. Wir empfehlen "c:\php\". </para> </listitem> <listitem> <para> + Stellen Sie sicher, dass die von PHP verwendeten DLLs gefunden + werden können. Welche DLLs benötigt werden, hängt von dem + verwendeten Webserver, und ob Sie PHP als CGI- oder Server-Modul + einsetzen. <filename>php4ts.dll</filename> wird immer verwendet. + Wenn Sie ein Server-Modul benutzen (z.B. ISAPI oder Apache), dann + brauchen Sie die entsprechende DLL des <filename>sapi</filename> + Verzeichnisses. Wenn Sie PHP extension DLLs benutzen, benötigen + Sie diese ebenfalls. Um sicherzugehen, dass diese auch gefunden + werden, können Sie sie entweder in das Systemverzeichnis (z.B. + <filename>winnt/system32</filename> oder + <filename>windows/system</filename>) kopieren, oder Sie können + sie in das gleiche Verzeichnis stellen, in welchem sich auch + die von Ihrem Webserver benutzte EXE- bzw. DLL-Datei befindet + (z.B. php.exe, php4apache.dll). + </para> + <para> Die 'php.exe', die SAPI Module, und einige Erweiterungen benötigen externe DLLs. Stellen Sie sicher, dass diese DLLs der Distribution in einem Verzeichnis liegen, welches im Windows PATH liegt. Der einfachste Weg dazu ist, die nachstehenden Dateien in Ihr Systemverzeichnis zu kopieren. Dieses heißt gewöhnlich: <simplelist> - <member>c:\windows\system auf Windows 95/98</member> + <member>c:\windows\system auf Windows 9x/Me</member> <member>c:\winnt\system32 auf Windows NT/2000</member> </simplelist> Die zu kopierenden Dateien sind: @@ -3169,24 +3234,44 @@ Die Dateien in dem Verzeichnis 'dlls' Ihrer Distribution. Sollten diese Dateien bereits auf Ihrem System installiert sein, überschreiben Sie diese nur, wenn etwas - nicht korrekt läuft (davor wird ein Back-up empfohlen). + nicht korrekt läuft (Vor dem Überschreiben empfehlen wir ein + Backup, oder verschieben diese Dateien in ein anderes + Verzeichnis - nur für den Fall dass etwas schiefgeht). </member> </simplelist> </para> + <para> + Holen Sie sich die letzte Version der Microsoft Data Access + Components (MDAC) für Ihre Plattform, speziell wenn Sie Windows + 9x/NT4 benutzen. MDAC finden Sie unter <ulink + url="&url.mdac;">&url.mdac;</ulink>. + </para> </listitem> <listitem> <para> - Kopieren Sie die Datei 'php.ini-dist' in Ihr - '%WINDOWS%' Verzeichnis auf Windows 95/98, oder in Ihr - '%SYSTEMROOT%&apos Verzeichnis unter Windows NT oder Windows - 2000, und bennen Sie sie in 'php.ini' um. Ihr + Kopieren Sie die gewünschte ini Datei (siehe unten) in Ihr + '%WINDOWS%' Verzeichnis auf Windows 9x/ME, oder in Ihr + '%SYSTEMROOT%' Verzeichnis unter Windows NT oder Windows + 2000, und benennen Sie sie in <filename>php.ini</filename> um. Ihr '%WINDOWS%' oder '%SYSTEMROOT%' Verzeichnis ist normalerweise: <simplelist> - <member>c:\windows für Windows 95/98</member> + <member>c:\windows für Windows 9x/ME</member> <member>c:\winnt oder c:\winnt40 für NT/2000 Server</member> </simplelist> </para> + <para> + In der Zip-Datei befinden sich zwei ini Dateien: + <filename>php.ini-dist</filename> und + <filename>php.ini-optimized</filename>. Wir empfehlen, die + <filename>php.ini-optimized</filename> zu verwenden, da in + dieser Datei die Default-Einstellungen für Performance und + Sicherheit optimiert sind. Am besten ist es, all die + <link linkend="configuration.file">ini Einstellungen</link> + selbst manuell vorzunehmen. Wenn Sie die bestmögliche Sicherheit + erreichen wollen ist dies der Weg für Sie, auch wenn PHP mit den + Standardeinstellungen gut läuft. + </para> </listitem> <listitem> <para> @@ -3195,7 +3280,8 @@ <listitem> <simpara> Tragen Sie bei 'extension_dir' Ihr PHP Installationsverzeichnis - oder den Pfad zu Ihren 'php_*.dll' Dateien ein. Z.B.: c:\php + oder den Pfad zu Ihren 'php_*.dll' Dateien ein, z.B.: + c:\php\extensions </simpara> </listitem> <listitem> @@ -3208,13 +3294,12 @@ <listitem> <simpara> Wählen Sie nun die Erweiterungen (Module) aus, die Sie benutzen - möchten, wenn PHP startet. Entfernen Sie in der - <filename>php.ini</filename> die Kommentarzeichen (';') in den - entsprechenden 'extension=php_*.dll' Zeilen, um die gewünschten - Erweiterungen zu laden. Sie können Module mittels - <function>dl</function> auch dynamisch laden, siehe auch - <link linkend="install.windows.extensions">Windows - Erweiterungen</link>. + möchten, wenn PHP startet. Lesen Sie in <link + linkend="install.windows.extensions">Windows Erweiterungen</link> + wie Sie eine aktivieren können, und welche bereits inkludiert sind. + Bei einer Neuinstallation ist es ratsam, erst PHP zu installieren + und zu testen, bevor Sie Erweiterungen in der + <filename>php.ini</filename> aktivieren. </simpara> </listitem> <listitem> @@ -3225,6 +3310,16 @@ setzen. </simpara> </listitem> + <listitem> + <simpara> + Beachten Sie, dass das <filename>mibs</filename> Verzeichnis + in der Windows Distribution Dateien für die SNMP Unterstützung + enthält. Dieses Verzeichnis sollte nach + <filename>DRIVE:\usr\mibs</filename> verschoben werden + (<filename>DRIVE</filename> ist das Laufwerk, auf dem PHP + installiert ist). + </simpara> + </listitem> </itemizedlist> </para> </listitem> @@ -3462,10 +3557,10 @@ <sect2 id="install.windows.extensions"> <title>Installation von Windows Erweiterungen</title> <para> - Sind PHP und ein Webserver auf Windows einmal installiert, möchten + Sind PHP und ein Webserver einmal auf Windows installiert, möchten Sie vielleicht einige Erweiterungen für zusätzliche Funktionalität - installieren. Wie bereits im Kapitel Generelle Installationsschritte - beschrieben, können Sie Erweiterungen auswählen, welche beim Start + installieren. Die folgende Tabelle beschreibt einige der verfügbaren + Erweiterungen. Sie können Erweiterungen auswählen, welche beim Start von PHP geladen werden, indem Sie das Kommentarzeichen (';') in den entsprechenden 'extension=php_*.dll' Zeilen in der <filename>php.ini</filename> entfernen. Sie können Module mittels @@ -3492,19 +3587,21 @@ Einige Erweiterungen benötigen externe DLLs, wovon bereits einige im Verzeichnis 'dlls' der PHP Distribution enthalten sind. Manche Erweiterungen benötigen jedoch DLLs, welche nicht in der PHP - Distrbution enthalten sind, wie z.B. Oracle (php_oci8.dll). + Distribution enthalten sind, wie z.B. Oracle (php_oci8.dll). </para> <para> Kopieren Sie die DLLs vom Verzeichnis 'dlls' in Ihren Windows PATH, gute Plätze sind: <simplelist> - <member>c:\windows\system für Windows 95/98</member> + <member>c:\windows\system für Windows 9x/ME</member> <member>c:\winnt\system32 für Windows NT/2000</member> </simplelist> Sollten diese Dateien bereits auf Ihrem System installiert sein, überschreiben Sie diese nur, wenn etwas nicht korrekt läuft - (davor wird ein Back-up empfohlen). + (Vor dem Überschreiben empfehlen wir ein Backup, oder verschieben + diese Dateien in ein anderes Verzeichnis - nur für den Fall dass + etwas schiefgeht). </para> </note> @@ -3788,7 +3885,7 @@ Version. </para> <sect2 id="install.apache.unix"> - <title>Details der Installation von PHP mit Apache auf Unix.</title> + <title>Details der Installation von PHP mit Apache auf Unix</title> <para> Aus der <link linkend="install.configure">Kompletten Liste der Konfigurationsoptionen</link> können Sie die weitere Argumente @@ -3816,9 +3913,9 @@ 13. make 14. make install - Instead of this step you may prefer to simply copy the httpd binary - overtop of your existing binary. Make sure you shut down your - server first though. + Statt diesem Schritt können Sie auch die httpd Binärdatei einfach über + Ihre existierende Binärdatei kopieren. Stellen Sie jedoch sicher, dass + der Server zuvor heruntergefahren wurde. 15. cd ../php-x.x.x 16. for PHP 3: cp php3.ini-dist /usr/local/lib/php3.ini @@ -3845,10 +3942,11 @@ <para> Es gibt abhängig von Ihrer Apache Installation und Unix Variante viele - mögliche Wege den Server zu stoppen und restarten. Nachstehend finden - Sie einige typische Zeilen für einen Server Restart auf verschiedenen - apache/unix Installationen. Ersetzen Sie <literal>/path/to/</literal> - mit dem Pfad zu diesen Applikationen auf Ihrem System. + mögliche Wege den Server zu stoppen und neu zu starten. Nachstehend + finden Sie einige typische Zeilen für einen Server Restart auf + verschiedenen apache/unix Installationen. Ersetzen Sie + <literal>/path/to/</literal> mit dem Pfad zu diesen Applikationen auf + Ihrem System. <informalexample> <programlisting> 1. Verschiedene Linux und SysV Varianten: @@ -3953,13 +4051,13 @@ <sect2 id="install.apache.windows"> - <title>Details der Installation von PHP auf Windows mit Apache 1.3.x</title> + <title>Installation von PHP auf Windows mit Apache 1.3.x</title> <simpara> Es gibt zwei Arten, PHP mit Apache 1.3.x unter Windows aufzusetzen. Eine ist die Verwendung des CGi Moduls (php.exe), die andere ist der Einsatz der Apache Modul dll. In beiden Fällen müssen Sie den - Apache Server stoppen, und Ihre <literal>srm.conf</literal> oder - <literal>httpd.conf</literal> editieren, um Apache für die + Apache Server stoppen, und Ihre <filename>srm.conf</filename> oder + <filename>httpd.conf</filename> editieren, um Apache für die Zusammenarbeit mit PHP zu konfigurieren. </simpara> <simpara> @@ -3971,10 +4069,10 @@ <para> Wenn Sie die PHP Distribution wie im Teil <link - linkend="install.windows.manual">Generelle - Installationsschritte</link> beschrieben nach C:\PHP\ entpackt - haben, müssen Sie die folgenden Zeilen in Ihrer Apache conf Datei - einfügen, um das CGI-Modul aufzusetzen: + linkend="install.windows.manual">Manuelle + Installationsschritte</link> beschrieben nach c:\php\ entpackt + haben, müssen Sie die folgenden Zeilen in Ihrer Apache + Konfigurationsdatei einfügen, um das CGI-Modul aufzusetzen: <itemizedlist> <listitem> <simpara> @@ -3998,18 +4096,22 @@ </simpara> </listitem> </itemizedlist> - Vergessen Sie nicht den Server zu restarten, z.B. mit - <literal>NET STOP APACHE</literal> gefolgt von - <literal>NET START APACHE</literal>. + Beachten Sie, dass die zweite Zeile der obigen Liste in den + aktuellen Versionen von <filename>httpd.conf</filename> bereits + enthalten, jedoch auskommentiert ist. Vergessen Sie nicht, nach + der Änderung der Konfigurationsdatei den Server neu zu starten, + z.B. mit <literal>NET STOP APACHE</literal>, gefolgt von + <literal>NET START APACHE</literal> wenn Sie Apache als Windows + Service nutzen, oder verwenden Sie Ihre Shortcuts. </para> <para> - Wenn Sie PHP als Apache Modul einsetzen möchten, sollten Sie die + Wenn Sie PHP als Apache Modul einsetzen möchten, kopieren Sie die <filename>php4ts.dll</filename> in Ihr windows/system (für Windows - 9x/Me) oder winnt/system32 (für Windows NT/2000) Verzeichnis - kopieren, und die dort eventuell bereits existierende Datei - überschreiben. Dann sollten Sie die folgenden zwei Zeilen in Ihrer - Apache conf Datei einfügen: + 9x/Me) oder winnt/system32 (für Windows NT/2000) Verzeichnis, + und überschreiben die dort eventuell bereits existierende Datei. + Dann sollten Sie die folgenden zwei Zeilen in Ihrer Apache conf + Datei einfügen: <itemizedlist> <listitem> <simpara> @@ -4028,18 +4130,32 @@ </itemizedlist> </para> + <note> + <simpara> + Apache 1.3.22 for Windows hat in seiner Konfigurationsdatei + (<filename>httpd.conf-dist-win</filename>) die + <literal>ClearModuleList</literal> Direktive standardmäßig + inkludiert. Wird diese Direktive verwendet, muss eine + <literal>AddModule mod_php4.c</literal> in die + <literal>AddModule</literal> Liste aufgenommen werden, da + PHP sonst nicht als ein Apache Modul registriert wird. + </simpara> + </note> + <simpara> Um das Source Code Highlighting Feature verwenden zu können, erstellen Sie einfach eine PHP Skriptdatei, und fügen diesen Code ein: <literal><?php show_source ("original_php_script.php"); ?></literal>. Ersetzen Sie <literal>original_php_script.php</literal> durch den Dateinamen der Datei, dessen Sourcecode Sie anzeigen - lassen möchten (Das ist der einzige Weg, dies zu tun). + lassen möchten (Das ist der einzige Weg, dies zu tun, da unter + Windows kein Feature wie .phps existiert). </simpara> <note> <simpara> Auf Win-Apache müssen alle Backslashes "\" in einer Pfadangabe, - wie z.B. "c:\directory\file.ext", in Slashes "/" umgewandelt werden. + wie z.B. "c:\directory\file.ext", in Slashes "/" umgewandelt + werden, wie z.B. "c:/directory/file.ext". </simpara> </note> </sect2> @@ -4074,12 +4190,13 @@ <simpara> Haben Sie PHP 3 als CGI Programm erstellt, können Sie Ihren Build mit <command>make bench</command> bewerten. Beachten Sie, dass wenn - Safe Mode standardmäßig aktiviert ist, der Benchmark nicht fertig - durchgeführt werden kann, sollte dieser länger als die erlaubten 30 - Sekunden dauern. Der Grund dafür liegt in der Tatsache, dass - <function>set_time_limit</function> in Safe Mode nicht benutzt werden - kann. Verwenden Sie die Konfigurationsoption <link - linkend="ini.max-execution-time">max_execution_time</link>, um diese + <link linkend="features.safe-mode">Safe Mode</link> standardmäßig + aktiviert ist, der Benchmark nicht fertiggestellt werden kann, + sollte dieser länger als die erlaubten 30 Sekunden dauern. Der Grund + dafür liegt in der Tatsache, dass <function>set_time_limit</function> + in Safe Mode nicht benutzt werden kann. Verwenden Sie die + Konfigurationsoption <link + linkend="ini.max-execution-time">max_execution_time</link>, um diese Zeit für Ihre eigenen Skripte einzustellen. <command>make bench</command> ignoriert die <link linkend="configuration.file">Konfigurationsdatei</link>. @@ -4108,50 +4225,51 @@ </sect1> <sect1 id="install.caudium"> - <title>Servers-Caudium</title> + <title>Server - Caudium</title> <para> - PHP 4 can be build as a Pike module for the Caudium webserver. Note - that this is not supported with PHP 3. Follow the simple - instructions below to install PHP 4 for Caudium. + PHP 4 kann als Pike Modul für den Caudium Webserver erstellt werden. + Dies wird mit PHP 3 nicht unterstützt. Folgen Sie einfach den + nachstehenden Instruktionen, um PHP 4 für Caudium zu installieren. </para> <example id="install.caudium.instructions"> - <title>Caudium Installation Instructions</title> + <title>Caudium Installationsanweisungen</title> <programlisting> -1. Make sure you have Caudium installed prior to attempting to - install PHP 4. For PHP 4 to work correctly, you will need Pike - 7.0.268 or newer. For the sake of this example we assume that - Caudium is installed in /opt/caudium/server/. -2. Change directory to php-x.y.z (where x.y.z is the version number). +1. Installieren Sie Caudium, bevor Sie mit der Installation von PHP 4 + beginnen. Damit PHP 4 einwandfrei arbeitet, benötigen Sie Pike + 7.0.268 oder neuer. In diesem Beispiel nehmen wir an, dass Caudium + in /opt/caudium/server/ installiert ist. +2. Wechseln Sie in das Verzeichnis php-x.y.z (wobei x.y.z die + Versionsnummer darstellt) 3. ./configure --with-caudium=/opt/caudium/server 4. make 5. make install -6. Restart Caudium if it's currently running. -7. Log into the graphical configuration interface and go to the - virtual server where you want to add PHP 4 support. -8. Click Add Module and locate and then add the PHP 4 Script Support module. -9. If the documentation says that the 'PHP 4 interpreter isn't - available', make sure that you restarted the server. If you did - check /opt/caudium/logs/debug/default.1 for any errors related to - <filename>PHP4.so</filename>. Also make sure that +6. Starten Sie Caudium neu, sollte er gerade laufen. +7. Öffnen Sie die grafische Konfigurationsoberfläche, und wechseln Sie + zu dem virtuellen Server, welcher PHP 4 Unterstützung bieten soll. +8. Klicken Sie auf Add Module and locate, und fügen das PHP 4 Script + Support Modul hinzu. +9. Sollte die Dokumentation meinen 'PHP 4 interpreter isn't available', + vergewissern Sie sich, dass der Server neu gestartet wurde. Prüfen + Sie /opt/caudium/logs/debug/default.1 auf Fehler in Bezug auf + <filename>PHP4.so</filename>. Vergewissern Sie sich ebenfalls, dass <filename>caudium/server/lib/[pike-version]/PHP4.so</filename> - is present. -10. Configure the PHP Script Support module if needed. + vorhanden ist. +10. Konfigurieren Sie das PHP Script Support Module wenn nötig. </programlisting> </example> <para> - You can of course compile your Caudium module with support for the - various extensions available in PHP 4. See the - <link linkend="install.configure">complete list of configure - options</link> for an exhaustive rundown. + Sie können Ihr Caudium Modul natürlich mit Unterstützung der + verschiedenen in PHP 4 verfügbaren Erweiterungen kompilieren. Die + <link linkend="install.configure">Komplette Liste der + Konfigurationsoptionen</link> bietet hierfür eine gute Übersicht. </para> <note> <para> - When compiling PHP 4 with MySQL support you must make sure that - the normal MySQL client code is used. Otherwise there might be - conflicts if your Pike already has MySQL support. You do this by - specifying a MySQL install directory <link - linkend="install.configure.with-mysql">the --with-mysql - option</link>. + Wenn Sie PHP 4 mit MySQL Unterstützung kompilieren müssen Sie + sicherstellen, dass der normale MySQL Client Code verwendet wird. + Die tun Sie, indem Sie ein MySQL Installationsverzeichnis mittels + <link linkend="install.configure.with-mysql"> der --with-mysql + Option</link> spezifizieren. </para> </note> </sect1> @@ -4160,7 +4278,7 @@ <title>Servers-IIS/PWS</title> <para> This section contains notes and hints specific to IIS (Microsoft - Internet Information Server) installing PHP for + Internet Information Server). Installing PHP for <link linkend="install.iis.iis3">PWS/IIS 3</link>, <link linkend="install.iis.pws4">PWS 4 or newer</link> and <link linkend="install.iis.iis4">IIS 4 or newer</link> versions. @@ -4170,8 +4288,8 @@ <simpara> The recommended method for configuring these servers is to use - the INF file included with the distribution - (php_iis_reg.inf). You may want to edit this file and make sure + the REG file included with the distribution + (pws-php4cgi.reg). You may want to edit this file and make sure the extensions and PHP install directories match your configuration. Or you can follow the steps below to do it manually. @@ -4208,15 +4326,14 @@ <listitem> <simpara> Type in the extension you wish to use for your php - scripts. ex: <literal>.php</literal> + scripts. For example <literal>.php</literal> </simpara> </listitem> <listitem> <simpara> Double click on the new string value and enter the path to <literal>php.exe</literal> in the value data field. ex: - <literal>c:\php\php.exe %s %s</literal>. The '%s %s' is VERY - important, PHP will not work properly without it. + <literal>c:\php\php.exe</literal>. </simpara> </listitem> <listitem> @@ -4225,9 +4342,22 @@ with PHP scripts. </simpara> </listitem> + </itemizedlist> + </para> + <para> + The following steps do not affect the web server installation + and only apply if you want your php scripts to be executed when + they are run from the command line (ex. run + <filename>c:\myscripts\test.php</filename>) or by double clicking + on them in a directory viewer window. You may wish to skip these + steps as you might prefer the PHP files to load into a text + editor when you double click on them. + </para> + <para> + <itemizedlist> <listitem> <simpara> - Now navigate to: <literal>HKEY_CLASSES_ROOT</literal> + Navigate to: <literal>HKEY_CLASSES_ROOT</literal> </simpara> </listitem> <listitem> @@ -4332,7 +4462,7 @@ Edit the enclosed <filename>pws-php4cgi.reg</filename> file (look into the sapi dir) to reflect the location of your php.exe. Forward slashes should be escaped, for example: - <literal>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] ".php"="C:\\PHP\\php.exe"</literal> + <literal>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] ".php"="c:\\php\\php.exe"</literal> </simpara> </listitem> <listitem> @@ -4353,7 +4483,7 @@ Edit the enclosed <filename>pws-php4isapi.reg</filename> file (look into the sapi dir) to reflect the location of your php4isapi.dll. Forward slashes should be escaped, for example: - <literal>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] ".php"="C:\\PHP\\sapi\\php4isapi.dll"</literal> + <literal>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] ".php"="c:\\php\\sapi\\php4isapi.dll"</literal> </simpara> </listitem> <listitem> @@ -4399,21 +4529,27 @@ <listitem> <simpara> Click Add, and in the Executable box, type: - <literal>c:\php\php.exe %s %s</literal> (assuming - that you have unziped PHP in c:\php\). You MUST - have the %s %s on the end, PHP will not function - properly if you fail to do this. + <literal>c:\php\php.exe</literal> (assuming + that you have unziped PHP in c:\php\). </simpara> </listitem> <listitem> <simpara> In the Extension box, type the file name extension you want associated with PHP scripts. Leave 'Method exclusions' - blank, and check the Script engine checkbox. - You must repeat step 3 and 4 for each extension you - want associated with PHP scripts. - (<literal>.php</literal> and <literal>.phtml</literal> - are common.) + blank, and check the Script engine checkbox. You may also + like to check the 'check that file exists' box - for a small + performance penalty, IIS (or PWS) will check that the script + file exists and sort out authentication before firing up php. + This means that you will get sensible 404 style error messages + instead of cgi errors complaing that php did not output any data. + </simpara> + <simpara> + You must start over from the previous step for each + extension you want associated with PHP scripts. + <literal>.php</literal> and <literal>.phtml</literal> + are common, although <literal>.php3</literal> may be + required for legacy applications. </simpara> </listitem> <listitem> @@ -4442,19 +4578,19 @@ <simpara> Under 'Home Directory', click on the 'Configuration' button. Add a new entry to the Application Mappings. Use the path - to the php4isapi.dll as the Executable, supply .php as the - extension, leave Method exclusions blank, and check the - Script engine checkbox. + to the php4isapi.dll as the Executable, supply + <literal>.php</literal> as the extension, leave Method + exclusions blank, and check the Script engine checkbox. </simpara> </listitem> <listitem> <simpara> - Stop IIS completely + Stop IIS completely (NET STOP iisadmin) </simpara> </listitem> <listitem> <simpara> - Start IIS again + Start IIS again (NET START w3svc) </simpara> </listitem> </itemizedlist> @@ -4465,19 +4601,29 @@ <sect1 id="install.netscape-enterprise"> <title>Servers-Netscape and iPlanet</title> <para> - To build PHP with NES or iPlanet web servers, enter the proper - install directory for the - <option><link linkend="install.configure.with-nsapi">--with-nsapi</link> = <replaceable>DIR</replaceable></option> - option. The default directory is usually - <filename class="directory">/opt/netscape/suitespot/</filename>. - Please also read <filename>/php-xxx-version/sapi/nsapi/nsapi-readme.txt</filename>. + This section contains notes and hints specific to Netscape and iPlanet + installs of PHP, both for <link linkend="install.netscape.sun">Sun Solaris</link> + and <link linkend="install.netscape.windows">Windows</link> versions. </para> <para> - <example id="install.netscape-enterprise.solaris"> - <title> - Installation Example for Netscape Enterprise on Solaris - </title> - <programlisting> + You can find more information about setting up PHP for + the Netscape Enterprise Server here: + <ulink url="&url.netscape.nsapi;">&url.netscape.nsapi;</ulink> + </para> + <sect2 id="install.netscape.sun"> + <title>Installing PHP with Netscape on Sun Solaris</title> + <para> + To build PHP with NES or iPlanet web servers, enter the proper + install directory for the + <option><link linkend="install.configure.with-nsapi">--with-nsapi</link> + = <replaceable>DIR</replaceable></option> option. The default + directory is usually <filename class="directory">/opt/netscape/suitespot/</filename>. + Please also read <filename>/php-xxx-version/sapi/nsapi/nsapi-readme.txt</filename>. + </para> + <para> + <example id="install.netscape-enterprise.solaris"> + <title>Installation Example for Netscape Enterprise on Solaris</title> + <programlisting> Instructions for Sun Solaris 2.6 with Netscape Enterprise Server 3.6 From: bhager@invacare.com @@ -4529,12 +4675,12 @@ located in:<filename class="directory">/path/to/server/https-servername/config/</filename>. </para> - - <example id="install.netscape-enterprise.configure"> - <title> - Configuration Example for Netscape Enterprise - </title> - <programlisting> + + <example id="install.netscape-enterprise.configure"> + <title> + Configuration Example for Netscape Enterprise + </title> + <programlisting> Configuration Instructions for Netscape Enterprise Server From: bhager@invacare.com @@ -4587,7 +4733,9 @@ </Object> </programlisting> </example> - <para>If you are running Netscape Enterprise 4.x, then you should use the following:</para> + <para> + If you are running Netscape Enterprise 4.x, then you should use the following: + </para> <example> <title>Configuration Example for Netscape Enterprise 4.x</title> <programlisting> @@ -4599,6 +4747,134 @@ Init fn="php4_init" LateInit="yes" </programlisting> </example> + </sect2> + <sect2 id="install.netscape.windows"> + <title>Installing PHP with Netscape on Windows</title> + <para> + To Install PHP as CGI (for Netscape Enterprise Server, + iPlanet, perhaps Fastrack), do the following: + </para> + <itemizedlist> + <listitem> + <simpara> + Copy <filename>php4ts.dll</filename> to your systemroot + (the directory where you installed windows) + </simpara> + </listitem> + <listitem> + <para> + Make a file association from the command line. + Type the following two lines: + <programlisting> +assoc .php=PHPScript +ftype PHPScript=c:\php\php.exe %1 %* + </programlisting> + </para> + </listitem> + <listitem> + <simpara> + In the Netscape Enterprise Administration Server create + a dummy shellcgi directory and remove it just after (this + step creates 5 important lines in obj.conf and allow the + web server to handle shellcgi scripts). + </simpara> + </listitem> + <listitem> + <simpara> + In the Netscape Enterprise Administration Server create + a new mime type (Category: type, + Content-Type: magnus-internal/shellcgi, File Suffix:php). + </simpara> + </listitem> + <listitem> + <simpara> + Do it for each web server instance you want php to run + </simpara> + </listitem> + </itemizedlist> + <para> + More details about setting up + PHP as a CGI executable can be found here: + <ulink url="&url.netscape.cgi;">&url.netscape.cgi;</ulink> + </para> + <para> + To Install PHP as NSAPI (for Netscape Enterprise Server, + iPlanet, perhaps Fastrack, do the following: + </para> + <itemizedlist> + <listitem> + <simpara> + Copy <filename>php4ts.dll</filename> to your systemroot + (the directory where you installed windows) + </simpara> + </listitem> + <listitem> + <para> + Make a file association from the command line. + Type the following two lines: + <programlisting> +assoc .php=PHPScript +ftype PHPScript=c:\php\php.exe %1 %* + </programlisting> + </para> + </listitem> + <listitem> + <simpara> + In the Netscape Enterprise Administration Server create + a new mime type (Category: type, + Content-Type: magnus-internal/x-httpd-php, File Suffix:php). + </simpara> + </listitem> + <listitem> + <para> + Stop your web service and edit <filename>obj.conf</filename>. + At the end of the Init section, place these two lines + (necessarily after mime type init!): + <programlisting> +Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans" shlib="c:/php/sapi/php4nsapi.dll" +Init fn="php4_init" errorString="Failed to initialise PHP!" + </programlisting> + </para> + </listitem> + <listitem> + <para> + In The <literal>< Object name="default" ></literal> + section, place this line necessarily after all 'ObjectType' + and before all 'AddLog' lines: + <programlisting> +Service fn="php4_execute" type="magnus-internal/x-httpd-php" + </programlisting> + </para> + </listitem> + <listitem> + <para> + At the end of the file, create a new object called + <literal>x-httpd-php</literal>, by inserting these lines: + <programlisting> +<Object name="x-httpd-php"> +ObjectType fn="force-type" type="magnus-internal/x-httpd-php" +Service fn=php4_execute +</Object> + </programlisting> + </para> + </listitem> + <listitem> + <simpara> + Restart your web service and apply changes + </simpara> + </listitem> + <listitem> + <simpara> + Do it for each web server instance you want PHP to run + </simpara> + </listitem> + </itemizedlist> + <para> + More details about setting up + PHP as an NSAPI filter can be found here: + <ulink url="&url.netscape.nsapi;">&url.netscape.nsapi;</ulink> + </para> + </sect2> </sect1> <sect1 id="install.omnihttpd"> @@ -4610,7 +4886,11 @@ <title>OmniHTTPd 2.0b1 and up for Windows</title> <simpara> - This has got to be the easiest config there is: + You need to complete the folowing steps to make PHP + work with OmniHTTPd. This is a CGI executable setup. + SAPI is supported by OmniHTTPd, but some tests showed, + that it is not so stable to use PHP as an ISAPI module + in OmniHTTPd. </simpara> <para> @@ -4696,18 +4976,18 @@ <listitem> <para> From the List select "Associations" and enter the desired - extension (".php") and the path to the CGI exe - (ex. c:\php\php.exe) or the ISAPI dll file - (ex. c:\php\sapi\php4isapi.dll). + extension (<literal>.php</literal>) and the path to the CGI exe + (ex. <filename>c:\php\php.exe</filename>) or the ISAPI DLL file + (ex. <filename>c:\php\sapi\php4isapi.dll</filename>). </para> </listitem> <listitem> <para> - Select "Content Types" add the same extension ".php" - and enter the content type. If you choose the CGI exe - file, enter 'wwwserver/shellcgi', if you chosse the - ISAPI module, enter 'wwwserver/isapi' (both without - quotes). + Select "Content Types" add the same extension + (<literal>.php</literal>) and enter the content type. + If you choose the CGI executable file, enter + 'wwwserver/shellcgi', if you chosse the ISAPI module, + enter 'wwwserver/isapi' (both without quotes). </para> </listitem> </itemizedlist> @@ -4734,21 +5014,21 @@ <para> Make sure the webserver is running, and point your browser to xitamis admin console - (usually http://127.0.0.1/admin), and click on - Configuration. + (usually <literal>http://127.0.0.1/admin</literal>), + and click on Configuration. </para> </listitem> <listitem> <para> Navigate to the Filters, and put the - extension which php should parse (i.e. .php) + extension which PHP should parse (i.e. .php) into the field File extensions (.xxx). </para> </listitem> <listitem> <para> In Filter command or script put the path and name - of your php executable i.e. c:\php\php.exe. + of your php executable i.e. <literal>c:\php\php.exe</literal>. </para> </listitem> <listitem> @@ -4778,9 +5058,9 @@ <sect2> <title>Read the FAQ</title> <simpara> - Some problems are more common than others. The most common ones - are listed in the PHP FAQ, found at <ulink - url="&url.php.faq;">&url.php.faq;</ulink> + Some problems are more common than others. The most + common ones are listed in the PHP FAQ, found at <ulink + url="&url.php.faq;">&url.php.faq;</ulink> </simpara> </sect2> @@ -4792,11 +5072,10 @@ able to help you. You should check out the archive first, in case someone already answered someone else who had the same problem as you. The archives are available from the support page on <ulink - url="&url.php;">&url.php;</ulink>. To subscribe to the PHP installation + url="&url.php;">&url.php;</ulink>. To subscribe to the PHP installation mailing list, send an empty mail to <ulink - url="mailto:&email.php.install.subscribe;">&email.php.install.subscribe;</ulink>. - The mailing list address is - <literal>&email.php.install;</literal>. + url="mailto:&email.php.install.subscribe;">&email.php.install.subscribe;</ulink>. + The mailing list address is <literal>&email.php.install;</literal>. </simpara> <simpara> If you want to get help on the mailing list, please try to be @@ -4815,11 +5094,11 @@ PHP developers probably don't know about it, and unless you report it, chances are it won't be fixed. You can report bugs using the bug-tracking system at <ulink - url="&url.php.bugs;">&url.php.bugs;</ulink>. + url="&url.php.bugs;">&url.php.bugs;</ulink>. </simpara> <simpara> Read the <ulink - url="&url.php.bugdosdonts;">Bugs-Dos-And-Donts</ulink> + url="&url.php.bugdosdonts;">Bugs-Dos-And-Donts</ulink> before submitting any bug reports! </simpara> </sect2> @@ -4828,20 +5107,22 @@ </chapter> - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - sgml-parent-document:nil - sgml-default-dtd-file:"../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: -vi: et:ts=1:sw=1:textwidth=78:syntax=sgml - --> +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +sgml-parent-document:nil +sgml-default-dtd-file:"../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +-->