I can't start the httpd service! I have apache web server installed, but when I issue this commmand:
, I get this message:
Here is what I get when I run:
output:
Here is what I get from the command:
output:
When I installed this system I manually had set the host name by editing /etc/hostname, maybe this has something to do with it!
Code:
service httpd start
Code:
Redirecting to /bin/systemctl start httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
Code:
service httpd status
Code:
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
Active: failed (Result: exit-code) since Sun 2013-06-02 22:43:19 CDT; 3min 4s ago
Process: 3209 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited, status=0/SUCCESS)
Process: 3207 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Jun 02 22:43:18 osirus.localdomain httpd[3207]: AH00557: httpd: apr_sockaddr_info_get() failed for osirus.localdomain
Jun 02 22:43:18 osirus.localdomain httpd[3207]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
Jun 02 22:43:18 osirus.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jun 02 22:43:19 osirus.localdomain httpd[3209]: AH00557: httpd: apr_sockaddr_info_get() failed for osirus.localdomain
Jun 02 22:43:19 osirus.localdomain httpd[3209]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
Jun 02 22:43:19 osirus.localdomain httpd[3209]: httpd (no pid file) not running
Jun 02 22:43:19 osirus.localdomain systemd[1]: Failed to start The Apache HTTP Server.
Jun 02 22:43:19 osirus.localdomain systemd[1]: Unit httpd.service entered failed state.
Code:
journalctl -xn
Code:
-- Logs begin at Mon 2013-06-03 11:09:33 CDT, end at Mon 2013-06-03 11:09:36 CDT. --
Jun 02 22:27:09 osirus.localdomain chronyd[660]: Selected source 72.8.140.200
Jun 02 22:43:18 osirus.localdomain systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
Jun 02 22:43:18 osirus.localdomain httpd[3207]: AH00557: httpd: apr_sockaddr_info_get() failed for osirus.localdomain
Jun 02 22:43:18 osirus.localdomain httpd[3207]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
Jun 02 22:43:18 osirus.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jun 02 22:43:19 osirus.localdomain httpd[3209]: AH00557: httpd: apr_sockaddr_info_get() failed for osirus.localdomain
Jun 02 22:43:19 osirus.localdomain httpd[3209]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
Jun 02 22:43:19 osirus.localdomain httpd[3209]: httpd (no pid file) not running
Jun 02 22:43:19 osirus.localdomain systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Jun 02 22:43:19 osirus.localdomain systemd[1]: Unit httpd.service entered failed state.