Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 3 Installation von Web-Server in Windows XP mit Apache2, PHP5 und MySQL4 - Teil 3
Part 3 - Install PHP 5 Teil 3 - Installieren Sie PHP 5
Unzip the PHP zip package that downloaded in Entpacken Sie die Zip-PHP-Paket heruntergeladen, dass in Part 1 Teil 1 to C:\PHP (Create a new folder named PHP at C:\ root level). nach C: \ PHP (Erstellen Sie einen neuen Ordner mit dem Namen PHP unter C: \ Root-Ebene). Then shut down Apache server. Dann heruntergefahren Apache-Server.
Open the Apache httpd.conf with a text editor and add two lines of code: Öffnen Sie die Apache httpd.conf mit einem Texteditor und fügen Sie zwei Zeilen Code:
LoadModule php5_module C:/php/php5apache2.dll LoadModule php5_module C: / php/php5apache2.dll
AddType application/x-httpd-php .php AddType application / x-httpd-php. Php
Added .php extension to show how to parse .php files Eingestellt. Php Verlängerung um zu zeigen, wie zu analysieren. Php-Dateien
Note also the directory in load module points to where we installed PHP. Beachten Sie auch das Verzeichnis, in Load-Modul zeigt auf, wo wir PHP installiert. So if you install PHP at other location, change it accordingly. Also, wenn Sie PHP auf einem anderen Standort, ändern sie entsprechend. The directory style should be / too instead of common DOS \. Das Verzeichnis Stil sollte / zu anstelle von gemeinsamem DOS \.
These two lines can be added to the bottom of the httpd.conf file. Diese beiden Zeilen hinzugefügt werden können an das Ende der httpd.conf Datei. However, note that modules in the load list are in reverse-priority order; those that come later can override or pre-empt those listed earlier. Es ist jedoch zu beachten, dass die Module in die Liste geladen werden in umgekehrter Reihenfolge Priorität; diejenigen, die später kommen können oder vorweggenommen diese zuvor. Therefore, adding php_mod at the end of the list can have unexpected results, such as disabling mod_rewrite (and other modules) for any php files that exist (mod_rewrite will run fine if the file doesn’t exist). Daher hinzufügen php_mod am Ende der Liste können unerwartete Ergebnisse, wie zum Beispiel mod_rewrite deaktivieren (und andere Module) für jede PHP-Dateien, die vorhanden sein (mod_rewrite läuft gut, wenn die Datei nicht existiert). The same error can disable mod_auth and other important modules. Das gleiche Fehler kann deaktivieren mod_auth und anderen wichtigen Module. In summary, php_mod should be loaded before any modules you wish to run before your php code is executed. Zusammenfassend lässt sich sagen, php_mod geladen werden sollen, bevor Sie alle Module laufen wollen, bevor Sie Ihre PHP-Code ausgeführt wird. See the note in the Sehen Sie die Notiz in der Apache AddModule documentation Apache-Dokumentation AddModule for how to find the recommended ordering. Wie finden Sie die empfohlene Bestellung.
Next, copy/paste “php.ini-recommended” to C:/Program Files/Apache Group/Apache2 (or your Apache installation path), and rename it to php.ini. Weiter, copy / paste "php.ini-recommended" nach C: / Program Files / Apache Group/Apache2 (oder Ihre Apache-Installation Pfad), und benennen Sie sie in der php.ini. Restart the Apache server. Starten Sie den Apache-Server.
Testing php5 Installation Testing PHP5 Installation
Create a file with the following contents and save it to the root web folder (C:/Server/htdocs or default C:/Program Files/Apache Group/Apache2/htdocs/) as “php5info.php”. Erstellen Sie eine Datei mit folgendem Inhalt und speichern Sie es auf der Web-Root-Ordner (C: / Server / htdocs oder standardmäßig C: / Program Files / Apache Group/Apache2/htdocs /) als "php5info.php".
<?php <? php
phpinfo(); phpinfo ();
?>
Access the following url Rufen Sie die folgende URL http://localhost/php5_info.php . Werden. The complete PHP setting should be displayed on the browser. Die vollständige PHP-Einstellung sollte angezeigt werden in den Browser. If there is an error or nothing been shown, there is problem with installation. Wenn es einen Fehler oder nichts erwiesen, gibt es Probleme mit der Installation. Try the installation procedures again. Probieren Sie die Installation erneut.
Enable MySQL extension Aktivieren Sie MySQL-Erweiterung
The php.ini that copied from php.ini-recommended already being set to optimum setting, so there is no special need to edit it. Die php.ini, kopiert aus der php.ini-recommended bereits auf optimale Einstellung, so gibt es keine besondere Notwendigkeit zu bearbeiten. However, it still need to edit to enable mysql extension. Allerdings ist noch zu bearbeiten, damit mysql-Erweiterung.
Open php.ini in the Apache2 directory with text editor. Öffnen Sie in der php.ini Apache2 Verzeichnis mit Texteditor.
Search for the line of extension_dir = “./” . Suchen Sie nach der Zeile extension_dir = ". /". Change it to extension_dir = “C:\php5\ext” . Ändern Sie nach extension_dir = "C: \ php5 \ ext". Also, uncomment the line of extension=php_mysql.dll . Auch, dann entkommentieren Sie die Zeile extension = php_mysql.dll.
Save the php.ini. Speichern Sie die php.ini. Restart the Apache server. Starten Sie den Apache-Server. Re-try to access Re-versuchen, auf http://localhost/php5_info.php . Werden. It should working fine. Es sollte funktionieren. If not try to check what’s the cause of errors, which most likely due to wrong extension_dir or missing extension. Ist dies nicht der Fall versuchen Sie es zu überprüfen, was ist die Ursache von Fehlern, die am ehesten durch falsche oder fehlende extension_dir Endung. Or you may try to copy all the needed extentions (with .dll extenstion) to Apache2 directory. Oder Sie versuchen, Kopieren Sie alle benötigten Erweiterungen (mit. Extenstion dll) zu Apache2 Verzeichnis.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. WICHTIG: Es handelt sich um eine Maschine der Seite übersetzt wird "as is" ohne Garantie. Machine translation may be difficult to understand. Maschinelle Übersetzung ist vielleicht schwierig zu verstehen. Please refer to Bitte wenden Sie sich an original English article Original Englisch Artikel whenever possible. wann immer dies möglich ist.
Share and contribute or get technical support and help at Aktie und einen Beitrag oder erhalten technische Unterstützung und Hilfe an My Digital Life Forums Meine digitalen Lebens Foren . Werden.
Related Articles Verwandte Artikel
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 1 Installation von Web-Server in Windows XP mit Apache2, PHP5 und MySQL4 - Teil 1
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 4 Installation von Web-Server in Windows XP mit Apache2, PHP5 und MySQL4 - Teil 4
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 2 Installation von Web-Server in Windows XP mit Apache2, PHP5 und MySQL4 - Teil 2
- Using phpMyAdmin for Effective MySQL Management in Windows XP Verwenden von phpMyAdmin für MySQL Effektive Management in Windows XP
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 5 Installation von Web-Server in FreeBSD 6,0 mit Apache 2,2, 5,0 MySQL und PHP 5 - Teil 5
- Install, Setup and Configure CGI and Perl in Windows XP Installieren, Einrichten und Konfigurieren von CGI und Perl unter Windows XP
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 4 Installation von Web-Server in FreeBSD 6,0 mit Apache 2,2, 5,0 MySQL und PHP 5 - Teil 4
- Install phpBB 2 in Windows XP running on Apache 2, PHP 5 and MySQL 4 Installieren phpBB 2 unter Windows XP läuft auf Apache 2, PHP 5 und MySQL 4
- Easily Set Up Web Server with XAMPP Einfaches Einrichten von Web-Server mit XAMPP
- Subversion (SVN) Issues and Problems on mod_dav_svn in FreeBSD Subversion (SVN) Fragen und Probleme in mod_dav_svn in FreeBSD







May 20th, 2006 03:42 20. Mai 2006 03:42
well, I have followed your directions and everyone else’s before this, but no luck. gut, ich habe Ihre Anweisungen befolgt und alle anderen vor, aber kein Glück. After adding the module declaration in the httpd.conf file, when I restart apache i get - syntax error: cannot load specific module. Nach dem Hinzufügen des Moduls Erklärung in der httpd.conf-Datei, wenn ich restart Apache I get - Syntax-Fehler: kann nicht geladen werden spezifische Modul. all of my paths are correct what is the problem? alle meine Wege sind richtig, was ist das Problem?
May 20th, 2006 14:33 20. Mai 2006 14:33
Hi Todd, the issue might be related to mod_perl (if you’re using it as ActivePerl). Hallo Todd, das Thema könnte im Zusammenhang mit mod_perl (wenn Sie es als ActivePerl). If you install Apache/2.2, please use mod_perl that is compiled with Apache 2.2 and not Apache 2.0 for compatibility issue. Wenn Sie Apache/2.2 installieren, verwenden Sie bitte, dass mod_perl kompiliert mit Apache 2,2 und 2,0 nicht Apache für Kompatibilitätsprobleme.
July 12th, 2006 19:10 12. Jul 2006 19:10
I have the server set up and i can read a php file if i start it withhtml tags but it doesnt read the php script i put in. if i dont use the html tags i get a download box when i click on the link to test the php?? Ich habe den Server eingerichtet, und ich kann lesen, eine PHP-Datei, wenn ich anfangen es withhtml Tags aber nicht lesen php-Script habe ich in. wenn i dont Verwendung der HTML-Tags ich ein Download-Box, wenn ich darauf klicke auf den Link zum Test die PHP? can u help me!! u kann mir helfen!
July 12th, 2006 19:46 12. Jul 2006 19:46
Looks like your web server doesn’t parse PHP file and treat it as text file, follow the steps carefully. Sieht aus wie Ihre Web-Server nicht parsen PHP-Datei und behandeln es als Text-Datei, führen Sie die Schritte sorgfältig durch.
July 13th, 2006 07:32 13. Juli 2006 07:32
ok i reset it and now the server cannot find php5apache2.dll? ok ich es zurücksetzen und nun kann der Server nicht gefunden php5apache2.dll? It is in the php folder. Es ist im PHP-Ordner. I am using php5.1.4 and apache2.2.2! Ich benutze php5.1.4 und apache2.2.2!
July 13th, 2006 08:43 13. Jul 2006 08:43
I got it to work i uninstalled apache 2.2 and installed 2.0 and followed your steps again and now it is all working:) Ich bekam ihn an der Arbeit i apache deinstalliert und installiert 2,2 und 2,0 gefolgt Ihrer Schritte erneut und jetzt ist es alle arbeiten:)
Thank you for the help! Vielen Dank für die Hilfe!
September 10th, 2006 20:48 10. September 2006 20:48
There seems to be a problem with Apache 2.2 and the PHP dll modules (on Windows obviously, don’t know if there are any problems on unix). Es scheint ein Problem mit Apache 2,2 und die PHP-DLL-Module (unter Windows natürlich weiß nicht, ob es irgendwelche Probleme auf UNIX). I fixed it by going to Ich reparierte sie, indem Sie auf http://www.apachelounge.com/download/ and downloading their version of the php4apache2.dll file. und das Herunterladen ihrer Version der Datei php4apache2.dll. This also comes with another file which you have to put in your Apache/bin directory, and you will also need to download a MS Visual C++ Package if you don’t have the .NET framework installed. Dies kommt auch mit einer anderen Datei, die Sie müssen in Ihrem Apache / bin-Verzeichnis, und Sie brauchen auch zum Herunterladen eines MS Visual C + +-Paket Wenn Sie nicht über die. NET-Framework installiert sein. This is all explained in the readme file that comes with the DLL. Dies wird in der Readme-Datei, die mit der DLL.
October 7th, 2006 07:18 7. Oktober 2006 07:18
With Apache 2.2, you will need PHP 5.2.x. Mit 2,2 Apache, benötigen Sie PHP 5.2.x. It has the php5apache2_2.dll that is compiled for the new version. Es hat die php5apache2_2.dll das ist für die neue Version. You can download a stable build at Hier können Sie sich eine stabile bauen auf http://snaps.php.net/
February 19th, 2007 17:11 19. Februar 2007 17:11
You said… Sie haben gesagt…
…
Search for the line of extension_dir = “./”. Suchen Sie nach der Zeile extension_dir = "./". Change it to extension_dir = “C:\php5\ext”. Ändern Sie nach extension_dir = "C: \ php5 \ ext". Also, uncomment the line of extension=php_mysql.dll. Auch, dann entkommentieren Sie die Zeile extension = php_mysql.dll.
Save the php.ini. Speichern Sie die php.ini. Restart the Apache server. Starten Sie den Apache-Server. Re-try to access Re-versuchen, auf http://localhost/php5_info.php . Werden. It should working fine. Es sollte funktionieren. If not try to Ist dies nicht der Fall versuchen,
….. … ..
….. … ..
“C:\php5\ext”. "C: \ php5 \ ext". ?????? — the correct line is -- Die richtige Buchungszeile ist
“C:\php\ext”. "C: \ php \ ext".
February 19th, 2007 17:23 19. Februar 2007 17:23
u forgot a thing, for the apache.. und vergaß ein Ding beschließt, für den Apache ..
modify DirectoryIndex and put index.php modifizieren und DirectoryIndex index.php
in rest is a good tutorial im übrigen ist ein gutes Tutorial
February 25th, 2007 01:30 25. Februar 2007 01:30
I am trying to connect mysql5 from apache2 but Ich versuche, eine Verbindung von mysql5 aber apache2
browser showing an error Browser mit einem Fehler
” "
Warning: require(/config/db_config.php) [function.require]: failed to open stream: No such file or directory in C:\webroot\dbconnect.php on line 2 Warning: require (/ config / db_config.php) [function.require]: failed to open stream: Datei oder das Verzeichnis "C: \ webroot \ dbconnect.php on line 2
Fatal error: require() [function.require]: Failed opening required ‘/config/db_config.php’ (include_path=’.;C:\php5\pear’) in C:\webroot\dbconnect.php on line 2 Fatal error: require () [function.require]: Failed opening required '/ config / db_config.php' (include_path = '., C: \ php5 \ pear') in C: \ webroot \ dbconnect.php on line 2
I am using,MySQL5, PHP5 and Apache2.2 running windows xp Ich benutze, MySQL5, PHP5 und Apache2.2 Windows XP
Request your help Fordern Sie helfen
Thanking you Ich danke Ihnen
******
February 25th, 2007 01:30 25. Februar 2007 01:30
I am trying to connect mysql5 from apache2 but Ich versuche, eine Verbindung von mysql5 aber apache2
browser showing an error Browser mit einem Fehler
” "
Warning: require(/config/db_config.php) [function.require]: failed to open stream: No such file or directory in C:\webroot\dbconnect.php on line 2 Warning: require (/ config / db_config.php) [function.require]: failed to open stream: Datei oder das Verzeichnis "C: \ webroot \ dbconnect.php on line 2
Fatal error: require() [function.require]: Failed opening required ‘/config/db_config.php’ (include_path=’.;C:\php5\pear’) in C:\webroot\dbconnect.php on line 2 Fatal error: require () [function.require]: Failed opening required '/ config / db_config.php' (include_path = '., C: \ php5 \ pear') in C: \ webroot \ dbconnect.php on line 2
I am using,MySQL5, PHP5 and Apache2.2 running windows xp Ich benutze, MySQL5, PHP5 und Apache2.2 Windows XP
Request your help Fordern Sie helfen
Thanking you Ich danke Ihnen
Asokan
June 21st, 2007 13:10 21. Juni 2007 13:10
I have succes install apache 2, php5 and MySQL 5. Ich habe Erfolg der Installation von Apache 2, PHP5 und MySQL 5. I can display php info. Ich kann php-Info. But, why php script that I make can not run in the IE browser. Aber warum php-Script, dass ich machen kann nicht ausgeführt werden in den IE-Browser. this simple script like this: dieser einfachen Skript wie folgt aus:
I use Windows XP. Ich verwende Windows XP.
Thank you for your attention. Vielen Dank für Ihre Aufmerksamkeit.