[CentOS] Apache (httpd) fails to start at boot - Centos 8.1

Tue Jun 16 02:40:09 UTC 2020
Alan McRae <amcrae at island42.net>

I have always had exactly the same problem. I had to write a script and 
run it at boot time:

sleep 10
/usr/bin/systemctl start httpd

Must be some timing problem with the interface addresses not being set 
up in time.

Alan

On 16/06/2020 14:06, Jay Hart wrote:
> If I do 'systemctl start httpd', apache will start right up.  But during boot, it doesn't and I
> get the resulting errors below.
>
> Jun 15 21:17:28 dream httpd[1534]: (99)Cannot assign requested address: AH00072: make_sock: could
> not bind to address 10.20.30.11:80
> Jun 15 21:17:28 dream httpd[1534]: no listening sockets available, shutting down
> Jun 15 21:17:28 dream httpd[1534]: AH00015: Unable to open logs
> Jun 15 21:17:29 dream systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
> Jun 15 21:17:29 dream systemd[1]: httpd.service: Failed with result 'exit-code'.
>
> the box's ip address is 10.20.30.11, and I am trying to get http (80), and https (443) going.
>
> Firewall is turned on. The listen parameter in httpd.conf is 10.20.30.11:80  The log files in
> /var/log/httpd are all owned by root.  Httpd runs as user 'apache'.
>
> Google searches have not returned anything that looks remotely promising.
>
> Got any suggestions?
>
> Thanks in advance,
>
> Jay
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos