Apache restart fehler.

  • Thread starter Thread starter cpedv
  • Start date Start date
C

cpedv

Guest
Hallo, seit kurzem habe ich ein Problem wenn ich den Apache neu starte.

Bei dem Befehlen:
Code:
/etc/init.d/apache2 {restart|reload|force-reload}
invoke-rc.d apache2 {restart|reload|force-reload}
Bekomme ich diese Ausgabe im Wechsel:
Code:
s156:~/confixx# invoke-rc.d apache2 force-reload
Forcing reload of web server (apache2)...httpd (pid 12387) already running
.
s156:~/confixx# invoke-rc.d apache2 force-reload
Forcing reload of web server (apache2)...httpd (no pid file) not running
.
s156:~/confixx# invoke-rc.d apache2 force-reload
Forcing reload of web server (apache2)...httpd (pid 12495) already running
.
s156:~/confixx# invoke-rc.d apache2 force-reload
Forcing reload of web server (apache2)...httpd (no pid file) not running
.
s156:~/confixx# invoke-rc.d apache2 force-reload
Forcing reload of web server (apache2)...httpd (pid 12589) already running
.
s156:~/confixx# invoke-rc.d apache2 force-reload
Forcing reload of web server (apache2)...httpd (no pid file) not running
.
s156:~/confixx# invoke-rc.d apache2 start
Starting web server (apache2)...httpd (pid 12665) already running
.
s156:~/confixx# invoke-rc.d apache2 stop
Stopping web server (apache2)....
s156:~/confixx# invoke-rc.d apache2 start
Starting web server (apache2)....
Jedes mal wenn eine pin Nummer vorhanden ist startet der Apache nicht. Bei no pid file startet der Apache wieder.

Jedesmal wenn er eine pid-Nummer angibt gibt es aber keine apache.pid Datei in var/run.

Soweit ich das verstehe, bekommt der Apache die Nachricht das der pid noch läuft oder vorhanden ist, was aber nicht der Fall ist und startet dann nicht erneut.

Bei neu pid sucht er danach und findet nichts und startet mit der Bemerkung "da war doch nichts"

Wenn ich normal stop oder starte Funktioniert alles Fehlerfrei.

In den Logs kann ich auch nichts finden was zu einem Fehler deuten könnte.

Suche schon seit längerem nach der Lösung, fand aber bis her nichts.
Vielleicht kann mir da jemand helfen.

gruss Gero
 
Wenn ich normal stop oder starte Funktioniert alles Fehlerfrei.
Dann starte/stoppe doch normal...

Wenn du nicht "normal" starten oder stoppen willst, willst du vielleicht "gracefully" restarten:
Code:
apachectl graceful
oder
Code:
apache2ctl graceful
 
Nein es geht mir darum das der Apache am Samstag von alleine restart gemacht hat und dann aus geblieben ist wegen diesem Fehler.

Ich habe es dann erst 2 1/2 Stunden später gesehen.

Wenn ich das ganze System neu starte wird dieser auch Fehler frei aus geführt.

gruss Gero
 
Nach dem Config Test sagt er alles ok.
Code:
s156:/# apache2ctl configtest
Syntax OK

In den error logs wird nichts verzeichnet, da er das selber nicht als Fehler erkennt und nur ausgibt, das der Apache schon ausgeführt wird.

Hier mal noch ein Test:
Code:
s156:/# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...httpd (pid 19417) already running
.
s156:/# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...httpd (no pid file) not running
.
s156:/#
Hier wieder beim ersten mal sagt er der Prosses wird schon ausgeführt, was aber nicht der Fall ist, der Apache ist aus, kann ich auch in Webmin sehen da dort der Button starten angezeigt wird.
Beim zweiten mal startet er dann und sagt, es war aber kein pid vorhanden.

Hier mal die Error.Logs:
Code:
[Mon Nov 24 19:58:19 2008] [notice] caught SIGTERM, shutting down
[Mon Nov 24 19:58:38 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Nov 24 19:58:38 2008] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Nov 24 19:58:38 2008] [warn] RSA server certificate CommonName (CN) `confixx' does NOT match server name!?
[Mon Nov 24 19:58:38 2008] [warn] Init: (coolman-4takt-roller.de:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Mon Nov 24 19:58:38 2008] [warn] Init: (pc-freak24.de:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Mon Nov 24 19:58:38 2008] [warn] Init: (scootertuningpage24.de:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Mon Nov 24 19:58:38 2008] [warn] Init: SSL server IP/port conflict: 85.114.141.156:443 (/etc/apache2/confixx_mhost.conf:129) vs. s156.silver.fastwebserver.de:443 (/etc/apache2/confixx_mhost.conf:176)
[Mon Nov 24 19:58:38 2008] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
[Mon Nov 24 19:58:38 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Mon Nov 24 19:58:39 2008] [notice] ModSecurity for Apache/2.5.7 (http://www.modsecurity.org/) configured.
[Mon Nov 24 19:58:39 2008] [notice] Original server signature: Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8c
[Mon Nov 24 19:58:39 2008] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Mon Nov 24 19:58:39 2008] [notice] mod_python: using mutex_directory /tmp 
[Mon Nov 24 19:58:39 2008] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Nov 24 19:58:39 2008] [warn] RSA server certificate CommonName (CN) `confixx' does NOT match server name!?
[Mon Nov 24 19:58:39 2008] [warn] Init: (coolman-4takt-roller.de:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Mon Nov 24 19:58:39 2008] [warn] Init: (pc-freak24.de:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Mon Nov 24 19:58:39 2008] [warn] Init: (scootertuningpage24.de:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Mon Nov 24 19:58:39 2008] [warn] Init: SSL server IP/port conflict: 85.114.141.156:443 (/etc/apache2/confixx_mhost.conf:129) vs. s156.silver.fastwebserver.de:443 (/etc/apache2/confixx_mhost.conf:176)
[Mon Nov 24 19:58:39 2008] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
[Mon Nov 24 19:58:40 2008] [notice] Apache/2.2.3 (Debian) configured -- resuming normal operations
[Mon Nov 24 19:58:40 2008] [error] [client 90.129.193.7] ModSecurity: Warning. Match of "rx (?:\\\\b(?:(?:i(?:nterplay|hdr|d3)|m(?:ovi|thd)|(?:ex|jf)if|f(?:lv|ws)|varg|cws)\\\\b|r(?:iff\\\\b|ar!B)|gif)|B(?:%pdf|\\\\.ra)\\\\b)" against "RESPONSE_BODY" required. [file "/etc/apache2/ruleset/Original/modsecurity_crs_50_outbound.conf"] [line "66"] [id "970902"] [msg "PHP source code leakage"] [severity "WARNING"] [tag "LEAKAGE/SOURCE_CODE"] [hostname "scootertuningpage24.de"] [uri "/index.php"] [unique_id "@6kwjlVyjZwAAFIIAlEAAAAA"]
[Mon Nov 24 19:58:40 2008] [error] [client 90.129.193.7] ModSecurity: Warning. Match of "rx (?:\\\\b(?:(?:i(?:nterplay|hdr|d3)|m(?:ovi|thd)|(?:ex|jf)if|f(?:lv|ws)|varg|cws)\\\\b|r(?:iff\\\\b|ar!B)|gif)|B(?:%pdf|\\\\.ra)\\\\b)" against "RESPONSE_BODY" required. [file "/etc/apache2/ruleset/modsecurity_crs_50_outbound.conf"] [line "66"] [id "970902"] [msg "PHP source code leakage"] [severity "WARNING"] [tag "LEAKAGE/SOURCE_CODE"] [hostname "scootertuningpage24.de"] [uri "/index.php"] [unique_id "@6kwjlVyjZwAAFIIAlEAAAAA"]
[Mon Nov 24 19:58:43 2008] [error] [client 66.249.71.245] ModSecurity: Warning. Pattern match "(?:(?:gsa-crawler \\(enterprise; s4-e9lj2b82fjjaa; me\\@mycompany\\.com|adsbot-google \\(\\+http:\\/\\/www\\.google\\.com\\/adsbot\\.html)\\)|\\b(?:google(?:-sitemaps|bot)|mediapartners-google)\\b)" at REQUEST_HEADERS:User-Agent. [file "/etc/apache2/ruleset/optional_rules/modsecurity_crs_55_marketing.conf"] [line "21"] [id "910006"] [msg "Google robot activity"] [severity "NOTICE"] [hostname "www.scootertuningpage24.de"] [uri "/index.php"] [unique_id "@9vQ4VVyjZwAAFIRFHAAAAAJ"]
[Mon Nov 24 19:58:43 2008] [error] [client 66.249.71.245] ModSecurity: Warning. Match of "rx (?:\\\\b(?:(?:i(?:nterplay|hdr|d3)|m(?:ovi|thd)|(?:ex|jf)if|f(?:lv|ws)|varg|cws)\\\\b|r(?:iff\\\\b|ar!B)|gif)|B(?:%pdf|\\\\.ra)\\\\b)" against "RESPONSE_BODY" required. [file "/etc/apache2/ruleset/Original/modsecurity_crs_50_outbound.conf"] [line "66"] [id "970902"] [msg "PHP source code leakage"] [severity "WARNING"] [tag "LEAKAGE/SOURCE_CODE"] [hostname "www.scootertuningpage24.de"] [uri "/index.php"] [unique_id "@9vQ4VVyjZwAAFIRFHAAAAAJ"]
[Mon Nov 24 19:58:43 2008] [error] [client 66.249.71.245] ModSecurity: Warning. Match of "rx (?:\\\\b(?:(?:i(?:nterplay|hdr|d3)|m(?:ovi|thd)|(?:ex|jf)if|f(?:lv|ws)|varg|cws)\\\\b|r(?:iff\\\\b|ar!B)|gif)|B(?:%pdf|\\\\.ra)\\\\b)" against "RESPONSE_BODY" required. [file "/etc/apache2/ruleset/modsecurity_crs_50_outbound.conf"] [line "66"] [id "970902"] [msg "PHP source code leakage"] [severity "WARNING"] [tag "LEAKAGE/SOURCE_CODE"] [hostname "www.scootertuningpage24.de"] [uri "/index.php"] [unique_id "@9vQ4VVyjZwAAFIRFHAAAAAJ"]
[Mon Nov 24 19:58:53 2008] [error] [client 90.129.193.7] ModSecurity: Warning. Match of "rx (?:\\\\b(?:(?:i(?:nterplay|hdr|d3)|m(?:ovi|thd)|(?:ex|jf)if|f(?:lv|ws)|varg|cws)\\\\b|r(?:iff\\\\b|ar!B)|gif)|B(?:%pdf|\\\\.ra)\\\\b)" against "RESPONSE_BODY" required. [file "/etc/apache2/ruleset/Original/modsecurity_crs_50_outbound.conf"] [line "59"] [id "970903"] [msg "ASP/JSP source code leakage"] [severity "WARNING"] [tag "LEAKAGE/SOURCE_CODE"] [hostname "scootertuningpage24.de"] [uri "/index.php"] [unique_id "-HUaf1VyjZwAAFIIAmMAAAAA"]
[Mon Nov 24 19:58:53 2008] [error] [client 90.129.193.7] ModSecurity: Warning. Match of "rx (?:\\\\b(?:(?:i(?:nterplay|hdr|d3)|m(?:ovi|thd)|(?:ex|jf)if|f(?:lv|ws)|varg|cws)\\\\b|r(?:iff\\\\b|ar!B)|gif)|B(?:%pdf|\\\\.ra)\\\\b)" against "RESPONSE_BODY" required. [file "/etc/apache2/ruleset/Original/modsecurity_crs_50_outbound.conf"] [line "66"] [id "970902"] [msg "PHP source code leakage"] [severity "WARNING"] [tag "LEAKAGE/SOURCE_CODE"] [hostname "scootertuningpage24.de"] [uri "/index.php"] [unique_id "-HUaf1VyjZwAAFIIAmMAAAAA"]
[Mon Nov 24 19:58:53 2008] [error] [client 90.129.193.7] ModSecurity: Warning. Match of "rx (?:\\\\b(?:(?:i(?:nterplay|hdr|d3)|m(?:ovi|thd)|(?:ex|jf)if|f(?:lv|ws)|varg|cws)\\\\b|r(?:iff\\\\b|ar!B)|gif)|B(?:%pdf|\\\\.ra)\\\\b)" against "RESPONSE_BODY" required. [file "/etc/apache2/ruleset/modsecurity_crs_50_outbound.conf"] [line "59"] [id "970903"] [msg "ASP/JSP source code leakage"] [severity "WARNING"] [tag "LEAKAGE/SOURCE_CODE"] [hostname "scootertuningpage24.de"] [uri "/index.php"] [unique_id "-HUaf1VyjZwAAFIIAmMAAAAA"]
[Mon Nov 24 19:58:53 2008] [error] [client 90.129.193.7] ModSecurity: Warning. Match of "rx (?:\\\\b(?:(?:i(?:nterplay|hdr|d3)|m(?:ovi|thd)|(?:ex|jf)if|f(?:lv|ws)|varg|cws)\\\\b|r(?:iff\\\\b|ar!B)|gif)|B(?:%pdf|\\\\.ra)\\\\b)" against "RESPONSE_BODY" required. [file "/etc/apache2/ruleset/modsecurity_crs_50_outbound.conf"] [line "66"] [id "970902"] [msg "PHP source code leakage"] [severity "WARNING"] [tag "LEAKAGE/SOURCE_CODE"] [hostname "scootertuningpage24.de"] [uri "/index.php"] [unique_id "-HUaf1VyjZwAAFIIAmMAAAAA"]
[Mon Nov 24 19:58:54 2008] [error] [client 82.83.103.172] File does not exist: /home/www/web1/html/images/highslide, referer: http://www.scootertuningpage24.de/index.php?page=AnnounceShow&catID=1&action=show&aID=34
Es wir also nur caught SIGTERM, shutting down angezeigt. Hier habe ich aber noch mehr Fehler drin wo ich noch dran arbeite.

Code:
In der Syslog wird nur da angezeigt:
Nov 24 19:58:01 s156 /USR/SBIN/CRON[20958]: (root) CMD (/root/confixx/confixx_counterscript.pl)


Mehr finde ich nicht. Im acces Log wird auch nur diese blöde Meldung ausgegeben wo man sich keine sorgen machen soll, nur es stört trotzten.
Code:
::1 - - [24/Nov/2008:19:58:03 +0100] "GET / HTTP/1.0" 302 329 "-" "Apache/2.2.3 (Debian) (internal dummy connection)"
::1 - - [24/Nov/2008:19:58:04 +0100] "GET / HTTP/1.0" 302 329 "-" "Apache/2.2.3 (Debian) (internal dummy connection)"
::1 - - [24/Nov/2008:19:58:05 +0100] "GET / HTTP/1.0" 302 329 "-" "Apache/2.2.3 (Debian) (internal dummy connection)"
::1 - - [24/Nov/2008:19:59:12 +0100] "GET / HTTP/1.0" 302 329 "-" "Apache/2.2.3 (Debian) (internal dummy connection)"
::1 - - [24/Nov/2008:19:59:13 +0100] "GET / HTTP/1.0" 302 329 "-" "Apache/2.2.3 (Debian) (internal dummy connection)"
::1 - - [24/Nov/2008:19:59:14 +0100] "GET / HTTP/1.0" 302 329 "-" "Apache/2.2.3 (Debian) (internal dummy connection)"

guss Gero
 
Last edited by a moderator:
Back
Top