Zum Inhalt springen

PHP 5 und Apache 2 Probleme


Empfohlene Beiträge

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

Link zu diesem Kommentar
Auf anderen Seiten teilen

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.

Link zu diesem Kommentar
Auf anderen Seiten teilen

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

#

Link zu diesem Kommentar
Auf anderen Seiten teilen

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

Link zu diesem Kommentar
Auf anderen Seiten teilen

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.

Link zu diesem Kommentar
Auf anderen Seiten teilen

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

Link zu diesem Kommentar
Auf anderen Seiten teilen

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.

Link zu diesem Kommentar
Auf anderen Seiten teilen

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.

Gast
Auf dieses Thema antworten...

×   Du hast formatierten Text eingefügt.   Formatierung wiederherstellen

  Nur 75 Emojis sind erlaubt.

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

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Editor leeren

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

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard für Fachinformatiker und IT-Fachkräfte

×
×
  • Neu erstellen...