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.

« September 2017 
SunMonTueWedThuFriSat
     12
3456789
10111213141516
17181920212223
24252627282930

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: Welcome to ke3vin.org! - My Public Technical Notes - Software And Operating Systems - Linux - Redhat - Fedora - Break Fix - Apache Fails To Start Apache Error AH 00072

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
Share

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:

$ 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.

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

$ 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'

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

#!/bin/bash

# sleep for 5 minutes - not sure when DHCP request will complete
sleep 300

# Start Apache
/bin/systemctl restart  httpd.service

Then issue command:

$ sudo systemctl enable rc-local.service

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