XAMPP: wie konfiguriert man Apache für PHP

Mein XAMPP ist nicht das Lesen meiner PHP. Wahrscheinlich gibt es ein problem mit meinem Apache-Konfiguration. Mein PHP-Buch vorgeschlagen, dass ich öffnen Sie die httpd-Konfigurationsdatei und fügen Sie folgende Zeilen:

LoadModule php5_module c:/php/php5apache2_2.dll  
PHPIniDir "c:/php/"  
AddType application/x-httpd-php .php

Was ich auch Tat, aber als ich ging zurück, um das Bedienfeld zu drehen Apache wieder auf, ich konnte nicht laufen, melden. Ich dachte mir, dass dies war, weil mein PHP nicht denken, ich bin mit XAMPP. Ich habe versucht, das folgende statt:

LoadModule php5_module c:/xampp/php/php5apache2_2.dll  
PHPIniDir "c:/xampp/php/"  
AddType application/x-httpd-php .php

Aber das problem nicht gelöst (PHP immer noch nicht funktioniert, kann ich nicht die ausgeführte Zeichen von Apache in der Systemsteuerung). Was soll ich tun? Ich bin mit Windows 7, wenn es darauf ankommt.

Nach der deinstallation von XAMPP und das Verzeichnis gelöscht, ich hatte das gleiche problem. Hier das neueste Fehlerprotokoll:

[Fri Oct 15 19:44:00 2010] [notice] Digest: generating secret for digest authentication ...  
[Fri Oct 15 19:44:00 2010] [notice] Digest: done  
[Fri Oct 15 19:44:00 2010] [notice] Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14   OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations  
[Fri Oct 15 19:44:00 2010] [notice] Server built: Nov 11 2009 14:29:03  
[Fri Oct 15 19:44:00 2010] [notice] Parent: Created child process 912  
[Fri Oct 15 19:44:03 2010] [notice] Digest: generating secret for digest authentication ...  
[Fri Oct 15 19:44:03 2010] [notice] Digest: done  
[Fri Oct 15 19:44:04 2010] [notice] Child 912: Child process is running  
[Fri Oct 15 19:44:04 2010] [notice] Child 912: Acquired the start mutex.  
[Fri Oct 15 19:44:04 2010] [notice] Child 912: Starting 150 worker threads.  
[Fri Oct 15 19:44:04 2010] [notice] Child 912: Starting thread to listen on port 443.  
[Fri Oct 15 19:44:04 2010] [notice] Child 912: Starting thread to listen on port 80.  
PHP-Buch nicht denkt, dass ich verwende XAMPP, muss ich sagen.
Gehört auf serverfault.
Ist das nicht die Verzeichnis-Trennzeichen '\' auf Windows? Warum verwenden Sie Schrägstriche, werden Sie verwendet, um linux? Wenn ja, warum nicht, installieren Sie die server auf einem debian auf Virtualbox?
Ich änderte alle die '/'s '\'s. Funktioniert immer noch nicht. Ich habe noch nie verwendet Linux.
Sie sollten überprüfen Sie die apache-error.melden, sollte in der /log forlder der apache-installation

InformationsquelleAutor user460847 | 2010-10-15

Schreibe einen Kommentar