Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #197984

Re: apache not running at boot

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups linux.debian.user
Subject Re: apache not running at boot
Date 2018-07-25 14:40 +0200
Message-ID <wfrfb-58C-9@gated-at.bofh.it> (permalink)
References (4 earlier) <wd5su-3Hy-13@gated-at.bofh.it> <wdctX-8hv-3@gated-at.bofh.it> <wddq2-nO-15@gated-at.bofh.it> <wdz7b-4Wt-17@gated-at.bofh.it> <wdz7b-4Wt-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Jul 20, 2018 at 10:34:12AM +0200, john doe wrote:
> > I have no idea what NM is ... can you provide a path to a configuration
> > file? i will reply with it's contents.

Jeez, I go away for a few days and look what happens.

NM is "Network Manager", which is one of the optional ways to configure
a network interface in Debian.  Usually used in conjunction with a
Desktop Environment (GNOME, etc.).  Usually not used on web servers, but
it's allowed.

The typical way to learn that NM is in charge of your interfaces is by
the comment signature that it leaves at the top of /etc/resolv.conf,
which is why you were asked to examine your /etc/resolv.conf file.

I also saw something up-thread which showed Network Manager output in
the logs of some service or other.

Also you don't have your interface defined in /etc/network/interfaces
at all, which is another good indicator that you might be using Network
Manager.

Then again, your /e/n/i/ contains the "source /etc/network/interfaces.d/*"
line and you didn't tell us whether you've got your interface configured
in there.  You PROBABLY don't, but we can't be 100% certain since you
didn't bother to look there and find out.

So, it's probably NM (Network Manager) which configures your interface.

Now, I know absolutely nothing about NM (except that it leaves behind
a comment in /etc/resolv.conf), so I can't help you with that part.
You need to figure out how to ensure that Apache isn't started until
NM has brought up your interface.

(Perhaps this machine didn't start out as a web server.  Perhaps you
installed it as a desktop machine, and then added Apache to it.  That
would explain why it's got NM.)

At some point you also need to figure out the name of your interface.
It might be eth0, or it might not.  This is basic stuff.  If you don't
know the name of your interface, start with "ip link".  That should
show you all of your interfaces, and some of their current settings.

Blindly putting "auto eth0" in /e/n/i when "eth0" might not even be the
name of your interface is not productive.  My original suggestion was
to CHANGE the line "allow-hotplug whatever" to "auto whatever", which
was written under the assumption that you're using /e/n/i in the first
place, rather than NM (a reasonable guess for a web server).

If your interface isn't named in /e/n/i AT ALL, then don't touch /e/n/i.
You can't change something that's not there.

Also, someone mentioned that you might have told Apache to bind to
a specific IP address instead of binding to all addresses.  Well, that
would be pretty silly, now wouldn't it?  If you've done that, undo it.
Tell Apache to listen/bind on all interfaces, which is the default
behavior.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: apache not running at boot Greg Wooledge <wooledg@eeg.ccf.org> - 2018-07-18 15:40 +0200
  Re: apache not running at boot Jonathan Dowland <jmtd@debian.org> - 2018-07-18 16:20 +0200
    Re: apache not running at boot Dave <debiantechquestions@gmx.com> - 2018-07-18 22:50 +0200
      Re: apache not running at boot Greg Wooledge <wooledg@eeg.ccf.org> - 2018-07-18 23:00 +0200
      Re: apache not running at boot Dave <debiantechquestions@gmx.com> - 2018-07-19 03:00 +0200
        Re: apache not running at boot mick crane <mick.crane@gmail.com> - 2018-07-19 08:30 +0200
        Re: apache not running at boot Joe <joe@jretrading.com> - 2018-07-19 09:00 +0200
        Re: apache not running at boot Curt <curty@free.fr> - 2018-07-19 10:30 +0200
          Re: apache not running at boot john doe <johndoe65534@mail.com> - 2018-07-19 11:30 +0200
            Re: apache not running at boot john doe <johndoe65534@mail.com> - 2018-07-20 10:40 +0200
              Re: apache not running at boot Greg Wooledge <wooledg@eeg.ccf.org> - 2018-07-25 14:40 +0200
          Re: apache not running at boot Dave <debiantechquestions@gmx.com> - 2018-07-20 01:00 +0200
            Re: apache not running at boot Dave <debiantechquestions@gmx.com> - 2018-07-21 06:00 +0200
              Re: apache not running at boot メット <mett@pmars.jp> - 2018-07-21 06:50 +0200
                Re: apache not running at boot mick crane <mick.crane@gmail.com> - 2018-07-21 09:00 +0200
                Re: apache not running at boot john doe <johndoe65534@mail.com> - 2018-07-21 10:40 +0200
                Re: apache not running at boot mick crane <mick.crane@gmail.com> - 2018-07-21 11:00 +0200
                Re: apache not running at boot mick crane <mick.crane@gmail.com> - 2018-07-21 11:30 +0200
                Re: apache not running at boot john doe <johndoe65534@mail.com> - 2018-07-21 14:10 +0200
                Re: apache not running at boot mick crane <mick.crane@gmail.com> - 2018-07-21 14:50 +0200
                Re: apache not running at boot Dave <debiantechquestions@gmx.com> - 2018-07-21 15:50 +0200
                Re: apache not running at boot mick crane <mick.crane@gmail.com> - 2018-07-21 16:10 +0200
                Re: apache not running at boot john doe <johndoe65534@mail.com> - 2018-07-21 17:40 +0200
                Re: apache not running at boot Dave <debiantechquestions@gmx.com> - 2018-07-21 23:30 +0200
                Re: apache not running at boot john doe <johndoe65534@mail.com> - 2018-07-22 08:20 +0200
                Re: apache not running at boot Dave <debiantechquestions@gmx.com> - 2018-07-22 15:00 +0200
                Re: apache not running at boot john doe <johndoe65534@mail.com> - 2018-07-22 15:20 +0200
                Re: apache not running at boot Dave <debiantechquestions@gmx.com> - 2018-07-22 16:10 +0200
                Re: apache not running at boot john doe <johndoe65534@mail.com> - 2018-07-22 16:40 +0200
                Re: apache not running at boot Dave <debiantechquestions@gmx.com> - 2018-07-22 17:00 +0200
                Re: apache not running at boot john doe <johndoe65534@mail.com> - 2018-07-22 17:00 +0200
                Re: apache not running at boot Dave <debiantechquestions@gmx.com> - 2018-07-22 17:20 +0200
                Re: apache not running at boot mick crane <mick.crane@gmail.com> - 2018-07-22 17:30 +0200
                Re: apache not running at boot Cindy-Sue Causey <butterflybytes@gmail.com> - 2018-07-22 19:10 +0200
                Re: apache not running at boot Dave <debiantechquestions@gmx.com> - 2018-07-23 00:20 +0200
                Re: apache not running at boot mick crane <mick.crane@gmail.com> - 2018-07-23 00:40 +0200
                Re: apache not running at boot mick crane <mick.crane@gmail.com> - 2018-07-23 01:00 +0200
                Re: apache not running at boot john doe <johndoe65534@mail.com> - 2018-07-23 08:30 +0200
                Re: apache not running at boot john doe <johndoe65534@mail.com> - 2018-07-23 13:20 +0200
                Re: apache not running at boot mick crane <mick.crane@gmail.com> - 2018-07-23 22:00 +0200
                Re: apache not running at boot Joe <joe@jretrading.com> - 2018-07-23 09:50 +0200
                Re: apache not running at boot john doe <johndoe65534@mail.com> - 2018-07-23 10:30 +0200
                Re: apache not running at boot john doe <johndoe65534@mail.com> - 2018-07-22 17:40 +0200
                Re: apache not running at boot john doe <johndoe65534@mail.com> - 2018-07-22 19:00 +0200
                Re: apache not running at boot mick crane <mick.crane@gmail.com> - 2018-07-22 20:00 +0200
                Re: apache not running at boot Dave <debiantechquestions@gmx.com> - 2018-07-25 15:10 +0200
                Re: apache not running at boot john doe <johndoe65534@mail.com> - 2018-07-25 17:00 +0200
                Re: apache not running at boot mick crane <mick.crane@gmail.com> - 2018-07-25 19:20 +0200
                Re: apache not running at boot john doe <johndoe65534@mail.com> - 2018-07-25 20:00 +0200
                Re: apache not running at boot Curt <curty@free.fr> - 2018-07-22 17:40 +0200
                Re: apache not running at boot Dave <debiantechquestions@gmx.com> - 2018-07-21 16:00 +0200
                Re: apache not running at boot Curt <curty@free.fr> - 2018-07-21 17:50 +0200
                Re: apache not running at boot Dave <debiantechquestions@gmx.com> - 2018-07-21 23:10 +0200

csiph-web