[webmin-l] Apache dies within 1 to 2 minutes or starting. (Old installation, nothing changed)

Nigel Aves <[email protected]>
Newsgroups gmane.comp.web.webmin.general
Organization Soft Focus Imagining
Message-ID <[email protected]>
Wise ones,

I have run into an issue where Apache dies after about 2 mins of 
starting. This happens in Virtualmin and Webmin (and command line using 
systemctl). As far as I know I have not touched anything to do with 
Apache,or it's config files. If I do a test of Apache configuration it 
all runs through with no issues reported.

However, if I run from the command line >> httpd -DFOREGROUND (-e debug) 
(obviously no brackets), Apache runs with no issues at all. I don't have 
the knowledge to know what the difference is between running httpd 
-DFOREGROUND and systemctl start httpd.service

I have spend hours on this now trying to find help. To no avail.

Changes I made yesterday. Converted Fail2ban to use ipsets and 
integrated with Shorewall. Followed an on-line tutorial.

Here's what happens, I've removed all the system prompts.


systemctl start httpd
Job for httpd.service failed because a fatal signal was delivered to the 
control process. See "systemctl status httpd.service" and "journalctl 
-xe" for details.

First thing to check

systemctl status httpd.service
● httpd.service - The Apache HTTP Server
    Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; 
vendor preset: disabled)
    Active: failed (Result: signal) since Mon 2017-02-20 16:40:43 MST; 
5min ago
      Docs: man:httpd(8)
            man:apachectl(8)
   Process: 18576 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND 
(code=killed, signal=KILL)
  Main PID: 18576 (code=killed, signal=KILL)
    CGroup: /system.slice/httpd.service

  suexec[18597]: uid: (501/gallery) gid: (501/gallery) cmd: php5.fcgi  
<< Note. Sometimes you only get one line. Once I had none.
  suexec[18632]: uid: (506/serendipity) gid: (505/serendipity) cmd: 
php5.fcgi


2nd thing to check. (I've made bold what I believe to be a real clue).

journalctl -xe
Got message type=signal sender=:1.1 destination=n/a 
object=/org/freedesktop/systemd1/unit/httpd_2eservice 
interface=org.freedesktop.DBus.Properties member=PropertiesChanged
Got message type=signal sender=:1.1 destination=n/a 
object=/org/freedesktop/systemd1/unit/httpd_2eservice 
interface=org.freedesktop.DBus.Properties member=PropertiesChanged
Got message type=signal sender=:1.1 destination=n/a 
object=/org/freedesktop/systemd1/unit/httpd_2eservice 
interface=org.freedesktop.DBus.Properties member=PropertiesChanged
Got message type=signal sender=:1.1 destination=n/a 
object=/org/freedesktop/systemd1/unit/httpd_2eservice 
interface=org.freedesktop.DBus.Properties member=PropertiesChanged
Got message type=signal sender=:1.1 destination=n/a 
object=/org/freedesktop/systemd1/unit/httpd_2eservice 
interface=org.freedesktop.DBus.Properties member=PropertiesChanged
Got message type=signal sender=:1.1 destination=n/a 
object=/org/freedesktop/systemd1/unit/httpd_2eservice 
interface=org.freedesktop.DBus.Properties member=PropertiesChanged
Got message type=signal sender=:1.1 destination=n/a 
object=/org/freedesktop/systemd1/unit/httpd_2eservice 
interface=org.freedesktop.DBus.Properties member=PropertiesChanged
Got message type=signal sender=:1.1 destination=n/a 
object=/org/freedesktop/systemd1/unit/httpd_2eservice 
interface=org.freedesktop.DBus.Properties member=PropertiesChanged
  systemd[1]: Received SIGCHLD from PID 18586 (httpd).
  systemd[1]: Child 18586 (httpd) died (code=killed, status=9/KILL)
  systemd[1]: Child 18586 belongs to httpd.service
* systemd[1]: httpd.service: cgroup is empty*
  systemd[1]: Sent message type=signal sender=n/a destination=n/a 
object=/org/freedesktop/systemd1/unit/httpd_2eservice 
interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=47
  systemd[1]: Sent message type=signal sender=n/a destination=n/a 
object=/org/freedesktop/systemd1/unit/httpd_2eservice 
interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=47
  systemd-logind[745]: Got message type=signal sender=:1.1 
destination=n/a object=/org/freedesktop/systemd1/unit/httpd_2eservice 
interface=org.freedesktop.DBus.Properties member=PropertiesChanged
  systemd-logind[745]: Got message type=signal sender=:1.1 
destination=n/a object=/org/freedesktop/systemd1/unit/httpd_2eservice 
interface=org.freedesktop.DBus.Properties member=PropertiesChanged
* systemd[1]: Got cgroup empty notification for: 
/system.slice/httpd.service**
** systemd[1]: httpd.service: cgroup is empty*
  systemd[1]: Sent message type=signal sender=n/a destination=n/a 
object=/org/freedesktop/systemd1/agent 
interface=org.freedesktop.systemd1.Agent member=Released cookie=4714 
reply_cookie=0 error=n
  systemd[1]: Received SIGCHLD from PID 18771 (less).
  systemd[1]: Child 18771 (less) died (code=exited, 
status=2/INVALIDARGUMENT)

Can anyone help?

Many Thanks, Nigel Aves.


-- 

from the desk of Nigel

http://soft-focus-imagining.com
http://twin-peaks-video.com

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

-
Forwarded by the Webmin mailing list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
nigel.vcf (text/x-vcard, 273 B)
begin:vcard
fn:Nigel Aves
n:Aves;Nigel
org:Soft Focus Imagining
adr:;;;Longmont;Colorado;80501;United States
email;internet:[email protected]
title:Photographer
tel;work:720-352-0458
tel;cell:720-352-0458
url:http://soft-focus-imagining.com
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.