Seite 1 von 1

Frage zu Apache / PHP

Verfasst: 07.01.2005 08:56
von lenni
Ich habe Local das Problem, das mit meiner aktuellen Konfiguration
keine Fehlermeldungen im Browser ausgegeben werden.

Um Fehler zu analysieren muss ich in die log Datei des Apache schauen.

In einer früheren Konfiguration habe ich die Fehlermeldungen angezeigt bekommen (z.B. fehlendes Semikolon, etc.)

Weiss jemand, wo und wie ich das einstellen kann?!

Verfasst: 07.01.2005 09:56
von Loeffel
Im Normalfall kannst Du Dir eine HTML-Seite basteln, wo die entsprechenden Variablen ausgespuckt werden.

Verfasst: 07.01.2005 11:35
von lenni
Das ist aber nicht das, was ich suche.

In meiner alten Umgebung (Linux) wurden die Fehler inkl. Ursache und
Zeilenzahl direkt im Browser ausgespuckt.

Das muss irgendeine Konfiguration sein, die ich aber nicht finde.

Ich habe in der PHP.ini
- error_reporting = E_ALL
- display_errors = On
- display_startup_errors = On

Bringt aber nichts
:(

Verfasst: 07.01.2005 11:47
von Loeffel
Dann mußt Du in die errors.conf von dem Apacheserver schauen, ob die Fehler da alle aktiviert sind.

Verfasst: 08.01.2005 08:32
von lenni
eine error.conf finde ich nicht!

nur eine httpd.conf

Verfasst: 09.01.2005 00:59
von Loeffel
Er sollte eigentlich auch eine errors.conf haben. Schau mal in der Doku danach, ich schicke Dir die Datei morgen oder Montag mal.

Ich glaube da stand auch irgendwas zu in der httpd.conf muß ich aber nochmal schauen.

Verfasst: 09.01.2005 11:10
von lenni
Ich finde die Datei nicht!

Vielen Dank im Voraus!

Lenni!

Verfasst: 10.01.2005 08:25
von Loeffel
Hi,

das habe ich für httpd.conf gefunden. Auf meinem Webserver steht das in der errors.conf

Code: Alles auswählen

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections.  We use 
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line:
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# @exp_errordir@/include/ files and copying them to /your/include/path/, 
# even on a per-VirtualHost basis.  The default include files will display
# your Apache version number and your ServerAdmin email address regardless
# of the setting of ServerSignature.
#
# The internationalized error documents require mod_alias, mod_include
# and mod_negotiation.  To activate them, uncomment the following 30 lines.

    Alias /error/ "@exp_errordir@/"

    <Directory "@exp_errordir@">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en de es fr it nl sv pt-br ro cs
        ForceLanguagePriority Prefer Fallback
    </Directory>

    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
    ErrorDocument 410 /error/HTTP_GONE.html.var
    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var