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

Tue Jun 16 22:10:32 UTC 2020
Alan McRae <amcrae at island42.net>

Thank you Gordon. That works for me. 8.2 needs the same fix.

Alan

On 16/06/2020 16:21, Gordon Messmer wrote:
> On 6/15/20 7:06 PM, 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
>
>
> httpd is starting before an interface has been configured with 
> 10.20.30.11.
>
> The default configuration starts httpd after "network.target" but you 
> want to start it after "network-online.target".
>
> IIRC: run "systemctl edit httpd.service" and insert:
>
> [Unit]
> After=network-online.target
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos