Article View: comp.misc
Article #156Re: PHP2Shell
From: Computer Nerd Kev
Date: Tue, 27 Oct 2026 22:28
Date: Tue, 27 Oct 2026 22:28
40 lines
2680 bytes
2680 bytes
Richard Kettlewell <invalid@invalid.invalid> wrote:
> https://httpd.apache.org/docs/current/stopping.html#hup describes the
> effect of this option:
>
> apachectl -k restart
>
> Sending the HUP or restart signal to the parent causes it to kill
> off its children like in TERM, but the parent doesn't exit. It
> re-reads its configuration files, and re-opens any log files. Then
> it spawns a new set of children and continues serving hits.
I see, I checked the apache2ctl man page's description on Debian
but it didn't bother to mention "the parent doesn't exit":
restart Restarts the Apache daemon by sending it a SIGHUP. If
the daemon is not running, it is started. This command
automatically checks the configuration files via con-
figtest 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 configura-
tion.
> i.e. in Apache speak, "restart" doesn't actually mean restarting the
> server at all, at least in the common sense of restart meaning stop and
> then start from scratch.
Yeah, I guess I didn't know to read the man page in Apache speak.
In my case Lograte does a "graceful restart" whenever the log file
is changed, so it's guaranteed to go wrong at least shortly after
the update. Which also means this can't have been a problem with
earlier PHP updates. I'm not sure why it wasn't stopped and started
automatically when the update ran. The package's scripts are
supposed to run "invoke-rc.d apache2 restart" after installation,
which the Apache logs show causes it to do a "graceful stop" after
receiving SIGWINCH (that "restart" isn't in Apache speak) when
run manually.
--
__ __
#_ < |\| |< _#
Technical Details
Message-ID:
<6ae12597@news.ausics.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.ausics.net!not-for-mailReferences:
<6ad93fa7@news.ausics.net> <6add4482$1@news.ausics.net> <6add5a32@news.ausics.net> <6addd8f7$1@news.ausics.net> <6adeaee2@news.ausics.net> <6ae039e7$1@news.ausics.net> <wwvv76nd00g.fsf@LkoBDZeT.terraraq.uk>Show Full Headers
Complete Article Headers
Message-ID: <6ae12597@news.ausics.net>
From: not@telling.you.invalid (Computer Nerd Kev)
Subject: Re: PHP2Shell
Newsgroups: comp.misc
References: <6ad93fa7@news.ausics.net> <6add4482$1@news.ausics.net> <6add5a32@news.ausics.net> <6addd8f7$1@news.ausics.net> <6adeaee2@news.ausics.net> <6ae039e7$1@news.ausics.net> <wwvv76nd00g.fsf@LkoBDZeT.terraraq.uk>
User-Agent: tin/2.6.5-20251224 ("Glenury") (Linux/2.4.31 (i586))
NNTP-Posting-Host: news.ausics.net
Date: 28 Oct 2026 08:28:39 +1000
Organization: Ausics - https://newsgroups.ausics.net
Lines: 40
X-Complaints: abuse@ausics.net
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.ausics.net!not-for-mail