Hi zusammen,
ich habe gerade festgestellt das auf meinem Server der Aufruf von Dateien mit der Endung "php.html" zu einem 500er Fehler führt.
Der Server wurde mit Debian Etch aufgesetzt, verfügt über das mitgelieferte PHP5 mit einem Apache2 und mod_FCGID.
Hat vllt. jemand einen spontanen Tipp was es mit diesem Verhalten auf sich hat?
Danke und Viele Grüße.
500er Fehler bei php.html Endung?
-
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: 500er Fehler bei php.html Endung?
Vermutlich hast du die Handler so konfiguriert, dass Dateien, welche die die Zeichenkette ".php" enthalten (und nicht nur darauf enden), mit PHP ausgefuehrt werden sollen.
Was sagt denn dein ErrorLog und wie sieht deine konkrete Konfiguration aus?
Was sagt denn dein ErrorLog und wie sieht deine konkrete Konfiguration aus?
-
- Project Manager
- Posts: 11185
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: 500er Fehler bei php.html Endung?
Was soll die Fileextension denn bewirken? Also was soll Apache mit Files mit der Fileextension tun? Welche Module werden geladen?
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
- Posts: 80
- Joined: 2005-11-02 18:21
Re: 500er Fehler bei php.html Endung?
Die Errorlog sagt:
Als Handler habe ich folgendes übergeben:
Vermutlich muss ich die Endungen in Anführungszeichen setzen, oder was denkst du?
@Joe User
php.html soll ganz normal als HTML ausgeführt werden. Die Files werden mit dem phpDocumentator so als statische HTML Seiten erstellt.
Code: Select all
can't apply process slot for
Code: Select all
AddHandler fcgid-script .fcgi
AddHandler fcgid-script .php
AddHandler fcgid-script .php4
AddHandler fcgid-script .php5
@Joe User
php.html soll ganz normal als HTML ausgeführt werden. Die Files werden mit dem phpDocumentator so als statische HTML Seiten erstellt.
-
- Posts: 80
- Joined: 2005-11-02 18:21
Re: 500er Fehler bei php.html Endung?
Hat keiner eine Idee was ich das verbockt haben könnte?
-
- Project Manager
- Posts: 11185
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: 500er Fehler bei php.html Endung?
Welche Rechte haben die Logverzeichnisse des Apache?
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
- Posts: 80
- Joined: 2005-11-02 18:21
Re: 500er Fehler bei php.html Endung?
Die Rechte stehen auf 0751.
-
- Project Manager
- Posts: 11185
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: 500er Fehler bei php.html Endung?
0755 und der Error ist weg...
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: 500er Fehler bei php.html Endung?
Darin steht sicherlich noch mehr und wenn du SuExec einsetzt sicherlich auch im suexec.log.maybee wrote:Die Errorlog sagt:
Code: Select all
can't apply process slot for
Schau mal, was das Apache httpd Manual dazu schreibt:maybee wrote:Als Handler habe ich folgendes übergeben:
Code: Select all
AddHandler fcgid-script .fcgi AddHandler fcgid-script .php AddHandler fcgid-script .php4 AddHandler fcgid-script .php5
Das kannst du ggf. mit <FilesMatch> und SetHandler umgehen.http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addhandler wrote:The extension argument is case-insensitive and can be specified with or without a leading dot. Filenames may have multiple extensions and the extension argument will be compared against each of them.