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


Groups > linux.debian.user > #247913

Re: wtf just happened to my local staging web server

From Claudio Kuenzler <ck@claudiokuenzler.com>
Newsgroups linux.debian.user
Subject Re: wtf just happened to my local staging web server
Date 2022-05-05 08:20 +0200
Message-ID <EjD0e-dkP8-9@gated-at.bofh.it> (permalink)
References <EjqPn-dcWZ-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wed, May 4, 2022 at 7:18 PM Gary Dale <gary@extremeground.com> wrote:

> May 04 12:16:55 TheLibrarian systemd[1]: Starting The Apache HTTP
> Server...
> May 04 12:16:55 TheLibrarian apachectl[7935]: (98)Address already in use:
> AH00072: make_sock: could not bind to addre>
> May 04 12:16:55 TheLibrarian apachectl[7935]: (98)Address already in use:
> AH00072: make_sock: could not bind to addre>
> May 04 12:16:55 TheLibrarian apachectl[7935]: no listening sockets
> available, shutting down
> May 04 12:16:55 TheLibrarian apachectl[7935]: AH00015: Unable to open logs
> May 04 12:16:55 TheLibrarian apachectl[7932]: Action 'start' failed.
> May 04 12:16:55 TheLibrarian apachectl[7932]: The Apache error log may
> have more information.
> May 04 12:16:55 TheLibrarian systemd[1]: apache2.service: Control process
> exited, code=exited, status=1/FAILURE
> May 04 12:16:55 TheLibrarian systemd[1]: apache2.service: Failed with
> result 'exit-code'.
> May 04 12:16:55 TheLibrarian systemd[1]: Failed to start The Apache HTTP
> Server.
>
The errors show that Apache was unable to bind to the listener port
(Address already in use).

Check for other services (maybe Nginx?) which are listening on the same
port as Apache tries to bind to.
Run: netstat -lntup

Also check /etc/apache2/ports.conf for possible misconfigurations.

Are you using HTTP (Port 80) only or also HTTPS (Port 443)?

Just to rule a config error out, run "apache2ctl configtest".

As I said, I do get the default Apache2 page saying "It works" but that
> appears to be optimistic. ps aux | grep apache2 fails to show the service,
> which confirms the systemctl message that it isn't running.
>
That could be your browser cache tricking you. You can verify with "curl
localhost".

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


Thread

wtf just happened to my local staging web server Gary Dale <gary@extremeground.com> - 2022-05-04 19:20 +0200
  Re: wtf just happened to my local staging web server Greg Wooledge <greg@wooledge.org> - 2022-05-04 19:30 +0200
    Re: wtf just happened to my local staging web server Gary Dale <gary@extremeground.com> - 2022-05-04 20:00 +0200
  Re: wtf just happened to my local staging web server Brian <ad44@cityscape.co.uk> - 2022-05-04 20:40 +0200
    Re: wtf just happened to my local staging web server Greg Wooledge <greg@wooledge.org> - 2022-05-04 20:50 +0200
      Re: wtf just happened to my local staging web server Brian <ad44@cityscape.co.uk> - 2022-05-04 21:00 +0200
      Re: wtf just happened to my local staging web server Klaus Singvogel <deb-user-ml@singvogel.net> - 2022-05-05 09:50 +0200
        Re: wtf just happened to my local staging web server Stephan Seitz <stse+debian@rootsland.net> - 2022-05-05 10:00 +0200
          Re: wtf just happened to my local staging web server Gary Dale <gary@extremeground.com> - 2022-05-07 06:20 +0200
          Re: wtf just happened to my local staging web server Richard Hector <richard@walnut.gen.nz> - 2022-05-12 04:30 +0200
  Re: wtf just happened to my local staging web server Claudio Kuenzler <ck@claudiokuenzler.com> - 2022-05-05 08:20 +0200
  Re: wtf just happened to my local staging web server Erwan David <erwan@rail.eu.org> - 2022-05-05 08:40 +0200
    Re: wtf just happened to my local staging web server Greg Wooledge <greg@wooledge.org> - 2022-05-05 13:10 +0200
    Re: wtf just happened to my local staging web server Gary Dale <gary@extremeground.com> - 2022-05-07 18:50 +0200

csiph-web