:: Re: [DNG] service apache2 start/sto…
Top Page
Delete this message
Reply to this message
Author: Didier Kryn
Date:  
To: dng
Subject: Re: [DNG] service apache2 start/stop/restart has no effect
Le 09/10/2024 à 17:56, fraser kendall via Dng a écrit :
> Hello list,
>
> I am trying to configure a small Daedalus/apache server, which has been
> in storage for a year.  After a round or two of updates, it's working
> fine, but I cannot stop, start or restart the service.  I am able to
> wget the index page from a second host on the network, irrespective of
> whether apache2 is up [+] or down [-].
>
> # service --status-all | grep apache2
>   [ ? ]  alsa-utils
>   [ - ]  apache2
>   [ ? ]  binfmt-support
>   [ ? ]  hwclock.sh
>   [ ? ]  kmod
>   [ ? ]  mount-configfs
>   [ ? ]  netfilter-persistent
>   [ ? ]  networking
>   [ ? ]  speech-dispatcher
>
> # service apache2 start
> # service --status-all | grep apache2
>   [ ? ]  alsa-utils
>   [ - ]  apache2
>   [ ? ]  binfmt-support
>   [ ? ]  hwclock.sh
>   [ ? ]  kmod
>   [ ? ]  mount-configfs
>   [ ? ]  netfilter-persistent
>   [ ? ]  networking
>   [ ? ]  speech-dispatcher
>
> # service apache2 stop
> # service --status-all | grep apache2
>   [ ? ]  alsa-utils
>   [ - ]  apache2
>   [ ? ]  binfmt-support
>   [ ? ]  hwclock.sh
>   [ ? ]  kmod
>   [ ? ]  mount-configfs
>   [ ? ]  netfilter-persistent
>   [ ? ]  networking
>   [ ? ]  speech-dispatcher
>
> # service apache2 restart
> # service --status-all | grep apache2
>   [ ? ]  alsa-utils
>   [ - ]  apache2
>   [ ? ]  binfmt-support
>   [ ? ]  hwclock.sh
>   [ ? ]  kmod
>   [ ? ]  mount-configfs
>   [ ? ]  netfilter-persistent
>   [ ? ]  networking
>   [ ? ]  speech-dispatcher
>
>  From another machine on network:
>
>   $wget 192.168.1.235
> --2024-10-09 15:28:13--  http://192.168.1.235/
> Connecting to 192.168.1.235:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 11695 (11K) [text/html]
> Saving to: ‘index.html’
>
> index.html        100%[===================>]  11.42K  --.-KB/s    in
> 0.001s
>
> 2024-10-09 15:28:13 (18.8 MB/s) - ‘index.html’ saved [11695/11695]
>
> Can anyone shed any light on this?  All references on the forums refer
> to systemctl.


    I don't know Apache, but I can tell you something: if you can wget
files from this host, it means it has a web server running. Since there
cannot be two servers on the same port, this may explain why Apache does
not start; but there should be some error log somewhere in /var/log,
maybe /var/log/apache, or /var/log/daemon.

--     Didier