Recent Changes - Search:


Code:


Social:


My journals will take the place of a blog. If you go to the Journal page there is an RSS feed to subscribe with.

(:blogcal group=Journal:)


Sites I take responsibility for

West Volusia, Florida

Documents

Technical

General

Me

Living

Places I frequent

Hobbies

Humor

Items for sale:


Clipboard

edit SideBar

Apache fails to start Apache error AH00072

Include our styles below Infobox - invoke as >>infobox<< ... >><<

Codebox: - invoke as >>codebox<< ... >><<

warnbox: - invoke as >>codebox<< ... >><<

editingbox: - invoke as >>codebox<< ... >><<

noticebox: - invoke as >>codebox<< ... >><<

Page bread crumbs: Main - MyPublicTechnicalNotes - SoftwareAndOperatingSystems - Linux - Redhat - Fedora - BreakFix - ApacheFailsToStartApacheErrorAH00072

Pages by tags: (:listtags:)
Subscribe to this wiki: RSS Feed RSS or subscribe to this page for changes: RSS Feed RSS
496 articles have been published so far. Recent changes
(:addThis btn="custom":)

2016-03-22: This site is being moved to my main site at https://kevininscoe.com/wiki as part of a consolidation to one domain.


RELEASE OBSERVED: Fedora 20

httpd deamon fails to start when booting Fedora 20 as a server.

Running commands after booting reveals:

(:code lang=Bash wrap=80:) $ sudo systemctl status httpd.service httpd.service - The Apache HTTP Server

   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: failed (Result: exit-code) since Mon 2014-07-28 14:06:45 EDT; 1min 1s ago
  Process: 2378 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 2290 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 2290 (code=exited, status=1/FAILURE)
   CGroup: /system.slice/httpd.service

Jul 28 14:06:45 web2 systemd[1]: Starting The Apache HTTP Server... Jul 28 14:06:45 web2 httpd[2290]: (99)Cannot assign requested address: AH00072: make_sock: could not bind to address 74....81:7687 Jul 28 14:06:45 web2 httpd[2290]: no listening sockets available, shutting down Jul 28 14:06:45 web2 httpd[2290]: AH00015: Unable to open logs Jul 28 14:06:45 web2 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE Jul 28 14:06:45 web2 systemd[1]: Failed to start The Apache HTTP Server. Jul 28 14:06:45 web2 systemd[1]: Unit httpd.service entered failed state. Hint: Some lines were ellipsized, use -l to show in full. (:codeend:)

I discovered this is an issue of the NetworkManager not being installed and therefore stalling dependent systemd jobs after a DHCP request until the network IP address is ready.


Solution:

First install NetworkManager and then enable it

(:code:) $ sudo yum install NetworkManager $ sudo systemctl enable NetworkManager-wait-online.service ln -s '/usr/lib/systemd/system/NetworkManager-wait-online.service' '/etc/systemd/system/multi-user.target.wants/NetworkManager-wait-online.service' (:codeend:)

Now on your next reboot httpd.service should now start correctly.


Work-around I created prior to solution discovery:

This actually did work but I decided to implement the correct fix.

Edit the file /etc/rc.d/rc.local

(:code:)

  1. !/bin/bash
  2. sleep for 5 minutes - not sure when DHCP request will complete

sleep 300

  1. Start Apache

/bin/systemctl restart httpd.service (:codeend:)

Then issue command:

(:code:) $ sudo systemctl enable rc-local.service (:codeend:)


Kevin's Public Wiki maintained and created by Kevin P. Inscoe is licensed under a
Creative Commons Attribution 3.0 United States License.

Back to my web site - http://kevininscoe.com

Edit - History - Print - Recent Changes - Search
Page last modified on July 28, 2014, at 03:04 PM EST