Re: Apache2 fails on boot, starts from cli

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Sun, Aug 31, 2025 at 7:31 PM Paul <stormy22@xxxxxxxxx> wrote:
Need assistance please.  Two servers, one production, one backup, near
identical hardware (8 core Intel CPUs, 64 Gib RAM) Ubuntu 20.04.6 LTS
with security extension, Apache/2.4.41 (Ubuntu) running behind nginx
proxy (nginx/1.18.0 (Ubuntu)), all apache2 conf, mod, sites and ports
files identical.  No port conflict found using "# ss -tulpn"

Production server perfect, but on backup server boot, apache2 fails to
start, then will start manually on command line and then runs perfectly, as:

● apache2.service - The Apache HTTP Server
      Loaded: loaded (/lib/systemd/system/apache2.service; enabled;
vendor preset: enabled)
      Active: failed (Result: exit-code) since Sun 2025-08-31 22:46:13
UTC; 51s ago
        Docs: https://httpd.apache.org/docs/2.4/
     Process: 965 ExecStart=/usr/sbin/apachectl start (code=exited,
status=1/FAILURE)

Aug 31 22:46:12 server systemd[1]: Starting The Apache HTTP Server...
Aug 31 22:46:13 server apachectl[1002]: (99)Cannot assign requested
address: AH00072: make_sock: could not bind to address 192.168.0.95:8442
Aug 31 22:46:13 server apachectl[1002]: no listening sockets available,
shutting down
Aug 31 22:46:13 server apachectl[1002]: AH00015: Unable to open logs
Aug 31 22:46:13 server apachectl[965]: Action 'start' failed.
Aug 31 22:46:13 server apachectl[965]: The Apache error log may have
more information.
Aug 31 22:46:13 server systemd[1]: apache2.service: Control process
exited, code=exited, status=1/FAILURE
Aug 31 22:46:13 server systemd[1]: apache2.service: Failed with result
'exit-code'.
Aug 31 22:46:13 server systemd[1]: Failed to start The Apache HTTP Server.

paul@server:/$ sudo service apache2 start

paul@server:/$ sudo systemctl status apache2
● apache2.service - The Apache HTTP Server
      Loaded: loaded (/lib/systemd/system/apache2.service; enabled;
vendor preset: enabled)
      Active: active (running) since Sun 2025-08-31 22:47:48 UTC; 2s ago

Logs have nothing relevant (a minor php warn note identical on both
"poduction" and "backup" servers.)

I would truly appreciate thoughts, suggestions and help...

Thanks and warmest regards,
Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

Either  192.168.0.95 isn't a valid interface on your system, or you have more than one Listen directive for port 8442.  Use grep with all your config files. 

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux