Re: Apache (httpd) fails to start at boot - Centos 8.1

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



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@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux