Current time: 09-27-2024, 11:48 PM Hello There, Guest! (LoginRegister)


Post Reply 
Apache trotz Fehlern neustarten
Author Message
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Apache trotz Fehlern neustarten
In ispcp wird apche gestoppt und gestartet (ispcp-serv-mngr: sub restart_httpd)

die Doku von apache verrät folgendes:
Quote: start Start the Apache daemon. Gives an error if it is already running.

stop Stops the Apache daemon.

restart Restarts the Apache daemon by sending it a SIGHUP. If the daemon is not running, it is started. This command automatically checks the configura‐
tion files via configtest before initiating the restart to to catch the most obvious errors. However, it is still possible for the daemon to
die because of problems with the configuration.

fullstatus Displays a full status report from mod_status. For this to work, you need to have mod_status enabled on your server and a text-based browser such
as lynx available on your system. The URL used to access the status report can be set by setting the APACHE_STATUSURL variable in
/etc/apache2/envvars.

status Displays a brief status report. Similar to the fullstatus option, except that the list of requests currently being served is omitted.

graceful Gracefully restarts the Apache daemon by sending it a SIGUSR1. If the daemon is not running, it is started. This differs from a normal restart
in that currently open connections are not aborted. A side effect is that old log files will not be closed immediately. This means that if used
in a log rotation script, a substantial delay may be necessary to ensure that the old log files are closed before processing them. This command
automatically checks the configuration files via apache2ctl configtest before initiating the restart to to catch the most obvious errors. How‐
ever, it is still possible for the daemon to die because of problems with the configuration.

graceful-stop Gracefully stops the Apache httpd daemon. This differs from a normal stop in that currently open connections are not aborted. A side effect is
that old log files will not be closed immediately.

configtest Run a configuration file syntax test. It parses the configuration files and either reports Syntax Ok or information about the particular syntax
error. This test does not catch all errors.

help Displays a short help message.

Also wären wir wieder soweit, dass ein "gracefull" oder "restart" hier besser wäre. Das war IMHO mal früher so - wurde aus mir nicht mehr einfallenden Gründen geändert (tatsächlich alle Logfiles schliessen, alle PHP-Prozesse schliessen???).

Insofern wäre ein "apache test/configtest" vor einem Neustart angebracht, bevor er gestoppt wird. Mit Mail an Admin.

Achtung: auch ein logrotate kann den apache neustarten (wobei da nicht stop&start benutzt wird) - und wenn die user Mist bauen, dann könnte das auch dann zu Problemen führen.

Eigentlich sollten die includierten ftp-configs verhindern, dass User sowas machen können.

/J
(This post was last modified: 08-20-2009 09:15 PM by joximu.)
08-20-2009 09:14 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Apache trotz Fehlern neustarten - DaSilva - 08-20-2009, 05:36 PM
RE: Apache trotz Fehlern neustarten - joximu - 08-20-2009 09:14 PM
RE: Apache trotz Fehlern neustarten - ZooL - 11-28-2009, 06:01 PM
RE: Apache trotz Fehlern neustarten - ZooL - 12-02-2009, 05:18 AM
RE: Apache trotz Fehlern neustarten - ZooL - 12-02-2009, 06:27 AM
RE: Apache trotz Fehlern neustarten - ZooL - 12-09-2009, 01:46 AM

Forum Jump:


User(s) browsing this thread: 4 Guest(s)