Jump to content
Froxlor Forum
  • 0

[solved] Apache Restarts: could not find *.conf


pquerner

Question

Hey,

 

I see in error.log of apache2 that it tries to restart every minute (which I dont think should be, as I only rewrite config files every 5 minutes and why would one want to restart apache2 that often? Whats the upside if in the middle of the night no config changes were apply. I think it should only be forced to restart when some config files actually have been changed (md5 hash?))) and often times collapse.

 

By that I mean that when the config files are yet to be written (froxlor cron to rewrite configs) and apache2 tries to restart: it cannot find some files (meaning some *.conf files in */sites-available) and therefore dies silently. After that, apache is dead and never tries to restart again.

 

How may I patch this behaviour? (Do I have to set up manually an cronjob on every 10 minutes which restarts apache?)

 

Thanks!

 

 

--

 

 

Hey,

 

im error.log von apache2 sehe ich h?ufig, dass versucht wird den Apache2 jede Minute neu zu starten. (Hier glaube ich schon, dass dies unn?tig ist, da ich jede 5 Minuten Konfigurationsdateien schreiben lasse und: warum sollte man den Apache2 so h?ufig neustarten wollen? (Es seidenn es hat sich wirklich was an den Konfigurationsdateien ver?ndert: md5 hash?!))

 

Wenn nun Apache2 neugestartet werden m?chte/wird/soll und der Cron von Froxlor anspringt und Konfigurationsdateien neu schreibt --> findet apache manchmal irgendwelche *.conf Dateien nicht und stirbt weg.  (Und versucht sich dadurch nicht erneut neu zustarten)

 

Wie kann ich dieses Problem l?sen (evtl. mit einem eigenen Cron der Apache alle 10 Minuten neustartet?! (Siehe Problem von oben))?

 

Gru?

 

 

Log:

 

[Fri Sep 12 02:23:02.412337 2014] [mpm_prefork:notice] [pid 4386] AH00163: Apache/2.4.10 (Ubuntu) configured -- resuming normal operations
[Fri Sep 12 02:23:02.412362 2014] [core:notice] [pid 4386] AH00094: Command line: '/usr/sbin/apache2'
[Fri Sep 12 02:24:01.806309 2014] [mpm_prefork:notice] [pid 4386] AH00171: Graceful restart requested, doing restart
[Fri Sep 12 02:24:01.917511 2014] [mpm_prefork:notice] [pid 4386] AH00163: Apache/2.4.10 (Ubuntu) configured -- resuming normal operations
[Fri Sep 12 02:24:01.917533 2014] [core:notice] [pid 4386] AH00094: Command line: '/usr/sbin/apache2'
[Fri Sep 12 02:25:02.752081 2014] [mpm_prefork:notice] [pid 4386] AH00171: Graceful restart requested, doing restart
apache2: Syntax error on line 227 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/sites-enabled/20_froxlor_normal_vhost_neos.xxxxx.de.conf: No such file or directory
 

 

 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Der Froxlor-Cronjob l?uft zwar alle 5 Minuten, aber neuerstellen tut er die Configs in der Tat nur wenn ein Kunde oder ein Admin etwas an domain/system-Einstellungen ge?ndert hat.

 

Und die Meldung, dass er eine Datei nicht findet, aber den exakten Pfad dazu angeben kann, kann nur heissen, dass die den entweder feste in die apache2.conf eingetragen hast, oder etwas anderes bei deinem System ganz komisch ist. Per default inkludiert apache alles in /sites-enabled/*.conf - was da nicht ist, wird auch nicht inkludiert, daher ist die Meldung ?ber eine nicht gefundene Config etwas sehr merkw?rdig....

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...