Friday, January 24, 2014

openssl , httpd : main process exited - FAILURE




[root@abxrds ~]# service httpd start
Redirecting to /bin/systemctl start  httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
[root@abxrds ~]# 




[root@abxrds ~]# 
[root@abxrds ~]# cat /var/log/messages | grep httpd


Jan 24 18:04:40 abxrds httpd[8543]: AH00557: httpd: apr_sockaddr_info_get() failed for www.abxrds.com
Jan 24 18:04:40 abxrds httpd[8543]: 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
Jan 24 18:04:40 abxrds httpd[8543]: httpd (no pid file) not running
Jan 24 18:04:40 abxrds systemd[1]: Unit httpd.service entered failed state.
Jan 24 19:03:37 abxrds systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE


With httpd most errors are also likely to have been sent to /var/log/httpd/error_log at the same time that they were sent to the console.

There were no virtual host configurations !
After creating "www.abxrds.com" virtual host : 


[root@abxrds httpd]# 
[root@abxrds httpd]# journalctl -xn

-- Logs begin at Mon 2014-01-20 22:52:49 EET, end at Fri 2014-01-24 22:04:17 EET. --
Jan 24 22:03:31 www.abxrds.com dbus[521]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
Jan 24 22:03:31 www.abxrds.com dbus-daemon[521]: dbus[521]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Jan 24 22:03:31 www.abxrds.com dbus[521]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Jan 24 22:04:17 www.abxrds.com 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.
Jan 24 22:04:17 www.abxrds.com httpd[11120]: httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.modules.d/10-php
Jan 24 22:04:17 www.abxrds.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jan 24 22:04:17 www.abxrds.com httpd[11122]: httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.modules.d/10-php
Jan 24 22:04:17 www.abxrds.com systemd[1]: httpd.service: control process exited, code=exited status=1
Jan 24 22:04:17 www.abxrds.com 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.
Jan 24 22:04:17 www.abxrds.com systemd[1]: Unit httpd.service entered failed state.
[root@abxrds httpd]# 

Line 6 of "/etc/httpd/conf.modules.d/10-php" = "LoadModule php5_module modules/libphp5.so"


httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: 
Syntax error on line 6 of /etc/httpd/conf.modules.d/10-php.conf: 
Cannot load modules/libphp5.so into server


THE SOLUTION TO THE PROBLEM : 

It's because openSSL hasn't been updated : 
yum update openssl