azubi-tigerente Geschrieben 6. Mai 2005 Geschrieben 6. Mai 2005 Hallo Leute, habe nun versucht PHP 5 unter Apache 2 lauffähig zu machen. Mittlerweile habe ich es auch geschafft. Kurz gesagt alles nur lokal.... Wenn ich http://localhost in meinen Browser eingebe erscheint die php-Seite. Ich lasse mir phpinfo() anzeigen. Habe einen Unterordner test in dem htdocs-Verzeichnis. Da funktioniert das Anzeigen von php-Seiten nicht. Und wenn ich dann wieder auf http://localhost gehe kann er mir auch nichts mehr anzeigen.... Kann mir vielleicht einer sagen wo der Wurm liegt. ich nehme an das ist reine Einstellungssache. Danke für Eure Hilfe Gruss Azubi-Tigerente Zitieren
kills Geschrieben 6. Mai 2005 Geschrieben 6. Mai 2005 Linux oder Windows? http://www.php.net/manual/de/install.unix.apache2.php http://www.php.net/manual/de/install.windows.apache2.php Zitieren
azubi-tigerente Geschrieben 6. Mai 2005 Autor Geschrieben 6. Mai 2005 das ganze läuft auf einen windows system...windows xp home edition. der untere link funktioniert leider nicht... Zitieren
azubi-tigerente Geschrieben 6. Mai 2005 Autor Geschrieben 6. Mai 2005 sorry, der link hat doch funktioniert... habe das aber genauso angegeben wie in der beschreibung. habe das php5-module eingefügt....aber wie gesagt beim erstenmal eingeben funktioniert es und beim zweiten mal nicht mehr. und das unterverzeichnis bzw unterordner funktionieret nicht.... Zitieren
freq.9 Geschrieben 6. Mai 2005 Geschrieben 6. Mai 2005 Also ich hatte damit auch schon des öftern ein Problem. Habe es bisher meist nur durch komplettes VHost zurücksetzen hinbekommen. Muss aber nicht sein, dass es bei dir nun auch so ist. Also man muss ja in der httpd.conf einen solchen Eintrag tätigen: <Directory "C:/Server/www/php5"> Options Indexes Order allow,deny Allow from all AddType application/x-httpd-php-5 .php Action application/x-httpd-php-5 /php5app/php-cgi.exe </Directory> Und paar mal ohne laufen lassen und wieder rein und es tat bei mir. Vllt. guckste auch mal, was die error.log so sagt. Standard ist diese im Apache2 Verzeichnis. Zitieren
azubi-tigerente Geschrieben 9. Mai 2005 Autor Geschrieben 9. Mai 2005 hi, jetzt habe ich das mit dem Directory probiert... das problem bleibt bei mir erhalten.... folgendes problem. wenn ich http://localhost angebe dann erscheint folgende fehlermeldung: Die Seite kann nicht angezeigt werden. Fehler: Server oder DNS kann nicht gefunden werden Internet Explorer manchmal funktioniert es aber, dann erscheint mein phpinfo ohne probleme. es kommt auch vor das es etwas länger dauert bis er was anzeigt, mein browswer.... folgendes habe ich im httpd.conf eingetragen.... # # PHP5 Konfiguration Anfang # # For PHP 5 do something like this: LoadModule php5_module "c:/Programme\Apache Group\Apache2\php\php5apache2.dll" AddType application/x-httpd-php .php # configure the path to php.ini PHPIniDir "C:/Programme\Apache Group\Apache2\php" # #PHP5 Konfiguration Ende # Zitieren
kills Geschrieben 9. Mai 2005 Geschrieben 9. Mai 2005 Probier ma http://localhost/index.php Gruß, Markus Zitieren
azubi-tigerente Geschrieben 9. Mai 2005 Autor Geschrieben 9. Mai 2005 Probier ma http://localhost/index.php Gruß, Markus funktioniert auch nicht immer...mal geht es gleich beim erstenmal dann wieder nicht. es war auch schon mal der fall da hat es 4 mal hintereinander funktioniert und dann nicht mehr.... also egal ob ich index.php versuche oder ohne ..... es gibt immer ein problem Zitieren
Amstelchen Geschrieben 9. Mai 2005 Geschrieben 9. Mai 2005 und ein anderer browser als IE oder ein aufruf direkt an port 80 mit dem tool deiner wähl geht? was sagt das apache error_log? s'Amstel Zitieren
azubi-tigerente Geschrieben 9. Mai 2005 Autor Geschrieben 9. Mai 2005 Unclean shutdown of previous Apache run? [Mon May 09 14:36:03 2005] [notice] Parent: Created child process 1500 [Mon May 09 14:36:04 2005] [notice] Child 1500: Child process is running [Mon May 09 14:36:04 2005] [notice] Child 1500: Acquired the start mutex. [Mon May 09 14:36:04 2005] [notice] Child 1500: Starting 250 worker threads. [Mon May 09 15:29:10 2005] [notice] Parent: Received shutdown signal -- Shutting down the server. [Mon May 09 15:29:10 2005] [notice] Child 1500: Exit event signaled. Child process is ending. [Mon May 09 15:29:12 2005] [notice] Child 1500: Released the start mutex [Mon May 09 15:29:14 2005] [notice] Child 1500: Waiting for 250 worker threads to exit. [Mon May 09 15:29:15 2005] [notice] Child 1500: All worker threads have exited. [Mon May 09 15:29:15 2005] [notice] Child 1500: Child process is exiting [Mon May 09 15:29:17 2005] [notice] Parent: Child process exited successfully. [Mon May 09 15:33:02 2005] [notice] Parent: Created child process 3404 [Mon May 09 15:33:03 2005] [notice] Child 3404: Child process is running [Mon May 09 15:33:03 2005] [notice] Child 3404: Acquired the start mutex. [Mon May 09 15:33:03 2005] [notice] Child 3404: Starting 250 worker threads. [Mon May 09 15:34:00 2005] [notice] Parent: Received shutdown signal -- Shutting down the server. [Mon May 09 15:34:00 2005] [notice] Child 3404: Exit event signaled. Child process is ending. [Mon May 09 15:34:01 2005] [notice] Child 3404: Released the start mutex [Mon May 09 15:34:02 2005] [notice] Child 3404: Waiting for 250 worker threads to exit. [Mon May 09 15:34:05 2005] [notice] Child 3404: All worker threads have exited. [Mon May 09 15:34:06 2005] [notice] Child 3404: Child process is exiting [Mon May 09 15:34:06 2005] [notice] Parent: Child process exited successfully. [Mon May 09 15:34:29 2005] [notice] Parent: Created child process 2944 [Mon May 09 15:34:29 2005] [notice] Child 2944: Child process is running [Mon May 09 15:34:29 2005] [notice] Child 2944: Acquired the start mutex. [Mon May 09 15:34:29 2005] [notice] Child 2944: Starting 250 worker threads. [Mon May 09 15:36:14 2005] [notice] Parent: Received shutdown signal -- Shutting down the server. [Mon May 09 15:36:14 2005] [notice] Child 2944: Exit event signaled. Child process is ending. [Mon May 09 15:36:15 2005] [notice] Child 2944: Released the start mutex [Mon May 09 15:36:16 2005] [notice] Child 2944: Waiting for 250 worker threads to exit. [Mon May 09 15:36:17 2005] [notice] Child 2944: All worker threads have exited. [Mon May 09 15:36:17 2005] [notice] Child 2944: Child process is exiting [Mon May 09 15:36:17 2005] [notice] Parent: Child process exited successfully. [Mon May 09 15:37:25 2005] [notice] Parent: Created child process 2788 [Mon May 09 15:37:25 2005] [notice] Child 2788: Child process is running [Mon May 09 15:37:25 2005] [notice] Child 2788: Acquired the start mutex. [Mon May 09 15:37:25 2005] [notice] Child 2788: Starting 250 worker threads. [Mon May 09 15:40:08 2005] [notice] Parent: Received shutdown signal -- Shutting down the server. [Mon May 09 15:40:08 2005] [notice] Child 2788: Exit event signaled. Child process is ending. [Mon May 09 15:40:09 2005] [notice] Child 2788: Released the start mutex [Mon May 09 15:40:10 2005] [notice] Child 2788: Waiting for 250 worker threads to exit. [Mon May 09 15:40:10 2005] [notice] Child 2788: All worker threads have exited. [Mon May 09 15:40:10 2005] [notice] Child 2788: Child process is exiting [Mon May 09 15:40:10 2005] [notice] Parent: Child process exited successfully. [Mon May 09 15:40:26 2005] [notice] Parent: Created child process 2824 [Mon May 09 15:40:26 2005] [notice] Child 2824: Child process is running [Mon May 09 15:40:26 2005] [notice] Child 2824: Acquired the start mutex. [Mon May 09 15:40:26 2005] [notice] Child 2824: Starting 250 worker threads. [Mon May 09 15:40:33 2005] [error] [client 127.0.0.1] Premature end of script headers: php-win.exe [Mon May 09 15:41:32 2005] [error] [client 127.0.0.1] Premature end of script headers: php-win.exe [Mon May 09 15:41:36 2005] [notice] Parent: Received restart signal -- Restarting the server. [Mon May 09 15:41:37 2005] [notice] Child 2824: Exit event signaled. Child process is ending. [Mon May 09 15:41:37 2005] [notice] Parent: Created child process 420 [Mon May 09 15:41:37 2005] [notice] Child 420: Child process is running [Mon May 09 15:41:38 2005] [notice] Child 420: Acquired the start mutex. [Mon May 09 15:41:38 2005] [notice] Child 2824: Released the start mutex [Mon May 09 15:41:38 2005] [notice] Child 420: Starting 250 worker threads. [Mon May 09 15:41:39 2005] [notice] Child 2824: Waiting for 250 worker threads to exit. [Mon May 09 15:41:39 2005] [notice] Child 2824: All worker threads have exited. [Mon May 09 15:41:39 2005] [notice] Child 2824: Child process is exiting [Mon May 09 15:46:51 2005] [notice] Parent: Received shutdown signal -- Shutting down the server. [Mon May 09 15:46:51 2005] [notice] Child 420: Exit event signaled. Child process is ending. [Mon May 09 15:46:52 2005] [notice] Child 420: Released the start mutex [Mon May 09 15:46:53 2005] [notice] Child 420: Waiting for 250 worker threads to exit. [Mon May 09 15:46:54 2005] [notice] Child 420: All worker threads have exited. [Mon May 09 15:46:54 2005] [notice] Child 420: Child process is exiting [Mon May 09 15:46:54 2005] [notice] Parent: Child process exited successfully. [Mon May 09 15:47:00 2005] [notice] Parent: Created child process 568 [Mon May 09 15:47:00 2005] [notice] Child 568: Child process is running [Mon May 09 15:47:00 2005] [notice] Child 568: Acquired the start mutex. [Mon May 09 15:47:00 2005] [notice] Child 568: Starting 250 worker threads. [Mon May 09 15:47:58 2005] [notice] Parent: Received shutdown signal -- Shutting down the server. [Mon May 09 15:47:58 2005] [notice] Child 568: Exit event signaled. Child process is ending. [Mon May 09 15:47:59 2005] [warn] (OS 10038)Ein Vorgang bezog sich auf ein Objekt, das kein Socket ist. : setsockopt(SO_UPDATE_ACCEPT_CONTEXT) failed. [Mon May 09 15:48:00 2005] [notice] Child 568: Released the start mutex [Mon May 09 15:48:01 2005] [notice] Child 568: Waiting for 250 worker threads to exit. [Mon May 09 15:48:01 2005] [notice] Child 568: All worker threads have exited. [Mon May 09 15:48:01 2005] [notice] Child 568: Child process is exiting [Mon May 09 15:48:01 2005] [notice] Parent: Child process exited successfully. [Mon May 09 15:48:09 2005] [notice] Parent: Created child process 180 [Mon May 09 15:48:09 2005] [notice] Child 180: Child process is running [Mon May 09 15:48:09 2005] [notice] Child 180: Acquired the start mutex. [Mon May 09 15:48:09 2005] [notice] Child 180: Starting 250 worker threads. Zitieren
Amstelchen Geschrieben 9. Mai 2005 Geschrieben 9. Mai 2005 also sowohl "Received shutdown signal -- Shutting down the server." (im minutentakt?) als auch "(OS 10038)Ein Vorgang bezog sich auf ein Objekt, das kein Socket ist. : setsockopt(SO_UPDATE_ACCEPT_CONTEXT) failed." kommt mir schon sehr spanisch vor. scheint so, als würde sich apache alle minute neu starten. wie sieht denn dein windows-eventlog aus? iregdwas vom apachen drin? s'Amstel Zitieren
azubi-tigerente Geschrieben 9. Mai 2005 Autor Geschrieben 9. Mai 2005 das musst du mir jetzt genauer erklären... windows-eventlog...was meinst du damit??? Zitieren
Amstelchen Geschrieben 9. Mai 2005 Geschrieben 9. Mai 2005 über arbeitsplatz / verwalten -> ereignisprotokoll oder eventvwr auf der commandline. ich tippe aber jetzt mal auf einen fehler in deinem tcp/ip-stack ... hast du noch andere software laufen, die auf port 80 zugreifen lönnte? s'Amstel Zitieren
azubi-tigerente Geschrieben 9. Mai 2005 Autor Geschrieben 9. Mai 2005 aqrbeitsplatz verwalten??? wie kann ich herausfinden ob noch mehr über port 80 läuft?? mysql läuft glaube ich auf port 3305??? sorry in diesem bereich habe ich no0ch weniger ahnung Zitieren
azubi-tigerente Geschrieben 9. Mai 2005 Autor Geschrieben 9. Mai 2005 es gibt einen ordner anwendungen im system unter arbeitsplatz - verwaltung meinst du das?? Zitieren
azubi-tigerente Geschrieben 9. Mai 2005 Autor Geschrieben 9. Mai 2005 also der user greift bei mysql auf port 3306 zu... Zitieren
azubi-tigerente Geschrieben 9. Mai 2005 Autor Geschrieben 9. Mai 2005 was mir auffällt ich weiss nicht ob das vielleicht was mit dem ganzen zu tun hat. bis jezt tritt das problem nur auf wenn ich in meiner seite folgende funktion aufrufe... phpinfo().... andere php-seiten also wo nur ein echo() ist da nicht.... Zitieren
Wolle Geschrieben 9. Mai 2005 Geschrieben 9. Mai 2005 Du kannst die Postings auch 15 Minuten lang editieren Zitieren
Amstelchen Geschrieben 10. Mai 2005 Geschrieben 10. Mai 2005 wenn dein problem nur bei phpinfo() auftritt (was ich nicht ganz glauben kann), überprüfe welche libraries in deiner php.ini geladen werden. nimm diejenigen heraus, die du nicht benötigst, und versuch so dich langsam an ein möglicherweise dort beheimatetes problem heranzuarbeiten. ansonsten müsstest du schon mehr informationen rausrücken (exakte apache-version, exakte php-version, xp-patches, andere geladene apache-module, etc pipi). s'Amstel p.s. wundert mich aber nicht, dass es zu problemen kommt ... apache auf windows ist als unstable deklariert und wirds vermutlich immer bleiben. Zitieren
Empfohlene Beiträge
Dein Kommentar
Du kannst jetzt schreiben und Dich später registrieren. Wenn Du ein Konto hast, melde Dich jetzt an, um unter Deinem Benutzernamen zu schreiben.