httpd.service fails to start. Not a FQDN issue.
I'm setting up httpd service in fedora 18. (SELinux has been turned off.)
systemctl start httpd.service gives:
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
systemctl status httpd.service gives:
httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled) Active: failed (Result: exit-code) since Mon 2013-07-08 12:05:39 PDT; 7min ago Process: 2890 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited, status=0/SUCCESS) Process: 2888 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Jul 08 12:05:38 webserver.localdomain systemd[1]: Starting The Apache HTTP Server... Jul 08 12:05:39 webserver.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE Jul 08 12:05:39 webserver.localdomain httpd[2890]: httpd (no pid file) not running Jul 08 12:05:39 webserver.localdomain systemd[1]: Failed to start The Apache HTTP Server. Jul 08 12:05:39 webserver.localdomain systemd[1]: Unit httpd.service entered failed state.
journalctl -xn gives:
-- Logs begin at Mon 2013-07-08 11:33:19 PDT, end at Mon 2013-07-08 12:05:39 PDT. -- Jul 08 12:04:09 webserver.localdomain dbus-daemon[490]: dbus[490]: [system] Successfully activated service 'org.freedesktop.ConsoleKit' Jul 08 12:04:09 webserver.localdomain dbus[490]: [system] Successfully activated service 'org.freedesktop.ConsoleKit' Jul 08 12:04:09 webserver.localdomain systemd[1]: Started Console Manager. -- Subject: Unit console-kit-daemon.service has finished start-up -- Defined-By: systemd
-- Support:
-- Unit console-kit-daemon.service has finished starting up.
-- The start-up result is done. Jul 08 12:04:09 webserver.localdomain dbus-daemon[490]: dbus[490]: [system] Successfully activated service 'org.freedesktop.PackageKit' Jul 08 12:04:09 webserver.localdomain dbus[490]: [system] Successfully activated service 'org.freedesktop.PackageKit' Jul 08 12:05:38 webserver.localdomain systemd[1]: Starting The Apache HTTP Server... -- Subject: Unit httpd.service has begun with start-up -- Defined-By: systemd
-- Support:
-- Unit httpd.service has begun starting up. Jul 08 12:05:39 webserver.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE Jul 08 12:05:39 webserver.localdomain httpd[2890]: httpd (no pid file) not running Jul 08 12:05:39 webserver.localdomain systemd[1]: Failed to start The Apache HTTP Server. -- Subject: Unit httpd.service has failed -- Defined-By: systemd -- Support: -- Documentation: > --
-- Unit httpd.service has failed.
-- The result is failed. Jul 08 12:05:39 webserver.localdomain systemd[1]: Unit httpd.service entered failed state.
ServerName has been set in /etc/httpd/conf/httpd.conf and the hosts file is set up properly. This does not appear to be related to the common ServerName/hosts file problem others have been running into. The provided error logs appear to indicate a failure, but no cause. Does anybody have any ideas? I would be very grateful.
Why did you turn off SELinux? If you did it trying to solve this, it's clearly not an issue and should be turned back on. (You can put it in permissive mode, if you prefer, where you get warnings, not denials.) And, if this is the same as you were getting before you turned it off, there's nothing there to suggest that it's the culprit. You might also consider checking /var/log/messages (needs root access) for anything referring to httpd and see if that gives you any better info.