Hallo,
nach einem Server-Umzug bekomme ich auf einer Seite immer einen:
Error 500! Internal Server Error.
Was kann das hervorrufen?
Gruß Nixdorf
Error 500
-
- Project Manager
- Posts: 11179
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: Error 500
Show Logs...
-
- Posts: 88
- Joined: 2005-07-28 15:34
Re: Error 500
Hallo,
in der /var/log/apache2/error.log habe ich schon gesucht, aber da wird nichts angezeigt, wenn ich versuche die Seite zu laden. In der access.log wird auch nichts angezeigt, auch nicht, wenn ich mich mit einer intakten Seite anmelde.
hier ein Ausschnitt aus meiner apache2.conf:
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog /var/log/apache2/error.log
#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn
# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
# Include all the user configurations:
Include /etc/apache2/httpd.conf
# Include ports listing
Include /etc/apache2/ports.conf
# Include generic snippets of statements
Include /etc/apache2/conf.d/
#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
LogFormat "%h %l %u %t "%r" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
Ich habe den loglevel auch schon auf debug gestellt. in den Dateien /var/log/apache2/error.log und .../access.log taucht aber nichts auf.
Woran kann das denn liegen?
Hat da noch wer eine Idee?
Gruß Nixdorf
in der /var/log/apache2/error.log habe ich schon gesucht, aber da wird nichts angezeigt, wenn ich versuche die Seite zu laden. In der access.log wird auch nichts angezeigt, auch nicht, wenn ich mich mit einer intakten Seite anmelde.
hier ein Ausschnitt aus meiner apache2.conf:
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog /var/log/apache2/error.log
#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn
# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
# Include all the user configurations:
Include /etc/apache2/httpd.conf
# Include ports listing
Include /etc/apache2/ports.conf
# Include generic snippets of statements
Include /etc/apache2/conf.d/
#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
LogFormat "%h %l %u %t "%r" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
Ich habe den loglevel auch schon auf debug gestellt. in den Dateien /var/log/apache2/error.log und .../access.log taucht aber nichts auf.
Woran kann das denn liegen?
Hat da noch wer eine Idee?
Gruß Nixdorf
-
- Posts: 391
- Joined: 2006-09-05 21:12
- Location: Berlin
Re: Error 500
Poste bitte relevante Logeinträge, die einen Hinweise geben könnten.Glaskugel wrote:- PHP ist falsch gebacken und produziert Segmentation faults (was zwar im error-Log stehen müsste, es aber nicht immer tut)
- Du verwendest suPHP/suexec oder ähnliche Mechanismen und hast dort einen Fehler drin
- Eventuell ist mod_security am Werk und läuft gerade Amok
Gruß
dtdesign
-
- Posts: 88
- Joined: 2005-07-28 15:34
Re: Error 500
Hallo,
welche logs kann ich denn noch verwenden? mir fallen da nicht viel mehr ein.
Gruß Nixdorf
welche logs kann ich denn noch verwenden? mir fallen da nicht viel mehr ein.
Gruß Nixdorf
-
- Posts: 391
- Joined: 2006-09-05 21:12
- Location: Berlin
Re: Error 500
nixdorf, bitte poste genauere Informationen über dein System. Benutzt du Scriptsprachen, kannst du überhaupt statisches HTML aufrufen, etcGlaskugel Part II wrote:- Du verwendest VirtualHosts und hast den error.log entsprechend umgebogen
- Du verwendest Module die segfaults raushauen
- Dein Haus ist grün
Gruß
dtdesign
-
- Posts: 88
- Joined: 2005-07-28 15:34
Re: Error 500
Hallo,
diese fehlermeldung erhalte ich in der /var/www/virtual/domain.com/logs/domain.com-error.log
[Sat Aug 11 23:28:02 2007] [alert] [client 74.6.20.198] /var/www/virtual/photosworld-wide.com/htdocs/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
Das deutet wohl darauf hin, das ich noch das Modul Rewrite einbinden muß.
In der /etc/apache2/httpd.conf habe ich daher folgenen Eintrag hinzugefügt:
LoadModule rewrite_modul /usr/lib/apache2/modules/mod_rewrite.so
Das Modul ist auch in dem Verzeichnis. Wenn ich aber dann das den Apachen neu starte bekomme ich:
Forcing reload of web server (apache2)...apache2: Syntax error on line 189 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/httpd.conf: Can't locate API module structure `rewrite_modul' in file /usr/lib/apache2/modules/mod_rewrite.so: /usr/lib/apache2/modules/mod_rewrite.so: undefined symbol: rewrite_modul
failed!
Woran kann denn daß noch liegen?
Gruß Nixdorf
diese fehlermeldung erhalte ich in der /var/www/virtual/domain.com/logs/domain.com-error.log
[Sat Aug 11 23:28:02 2007] [alert] [client 74.6.20.198] /var/www/virtual/photosworld-wide.com/htdocs/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
Das deutet wohl darauf hin, das ich noch das Modul Rewrite einbinden muß.
In der /etc/apache2/httpd.conf habe ich daher folgenen Eintrag hinzugefügt:
LoadModule rewrite_modul /usr/lib/apache2/modules/mod_rewrite.so
Das Modul ist auch in dem Verzeichnis. Wenn ich aber dann das den Apachen neu starte bekomme ich:
Forcing reload of web server (apache2)...apache2: Syntax error on line 189 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/httpd.conf: Can't locate API module structure `rewrite_modul' in file /usr/lib/apache2/modules/mod_rewrite.so: /usr/lib/apache2/modules/mod_rewrite.so: undefined symbol: rewrite_modul
failed!
Woran kann denn daß noch liegen?
Gruß Nixdorf
-
- Posts: 391
- Joined: 2006-09-05 21:12
- Location: Berlin
Re: Error 500
Schritt 1) Finden des Problems [Done]
Schritt 2) Verstehen des Problems [Failed]
Schritt 3) Lösen des Problems [Failed]
Dokumentation konsultieren.
Hint 1 (Unsauber):
- Ersetze 'rewrite_modul' mit dem englischen 'rewrite_module'
- Apache neustarten und gucken
Hint 2 (Sauber):
- Lösche den Eintrag heraus
- `a2enmod rewrite` (kann auch sein, dass das mod_rewrite heißt, einfach probieren)
Gruß
dtdesign
Schritt 2) Verstehen des Problems [Failed]
Schritt 3) Lösen des Problems [Failed]
Dokumentation konsultieren.
Hint 1 (Unsauber):
- Ersetze 'rewrite_modul' mit dem englischen 'rewrite_module'
- Apache neustarten und gucken
Hint 2 (Sauber):
- Lösche den Eintrag heraus
- `a2enmod rewrite` (kann auch sein, dass das mod_rewrite heißt, einfach probieren)
Gruß
dtdesign
-
- Posts: 88
- Joined: 2005-07-28 15:34
Re: Error 500
Hallo,
rewrite_module muste es heißen, jetzt geht es, danke...
Gruß Nixdorf
rewrite_module muste es heißen, jetzt geht es, danke...
Gruß Nixdorf