Woke up to failed httpd email notifications
check whats going on
journalctl -xe
Doesn't help much, next try:
/var/log/httpd/error_log
ok still need more info:
/var/log/httpd/domains/somedomain.com.error.log
Well it appears to be an SSL issue:
/usr/local/directadmin/data/users/someuser/httpd.conf
cat /etc/httpd/conf/ssl.crt/server.ca
where did it go?
Find backup, restored the /etc/httpd/conf/ssl.crt/server.ca file.
systemctl start httpd.service
Success!
Check logs to see what happened shortly before httpd start fail:
/var/log/directadmin/system.log
Not sure if that was the caused /etc/httpd/conf/ssl.crt/server.ca to become blank.
Any ideas what it could be?
Im running on Centos7 64
Apache 2.4.23 with SNI and HTTP2 enabled
everything else is up to date.
check whats going on
journalctl -xe
Code:
server.org systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
server.org kill[5219]: kill: cannot find process ""
server.org systemd[1]: httpd.service: control process exited, code=exited status=1
server.org 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
--
-- Unit httpd.service has failed.
Doesn't help much, next try:
/var/log/httpd/error_log
Code:
AH00016: Configuration Failed
[Wed Jun 07 10:23:08.001930 2017] [ssl:emerg] [pid 5425:tid 139933368420416] AH02311: Fatal error initialising mod_ssl, exiting. See /var/log/httpd/domains/somedomain.com.error.log for more information
ok still need more info:
/var/log/httpd/domains/somedomain.com.error.log
Code:
AH01895: Unable to configure verify locations for client authentication
SSL Library Error: error:0B084009:x509 certificate routines:X509_load_cert_crl_file:PEM lib
Well it appears to be an SSL issue:
/usr/local/directadmin/data/users/someuser/httpd.conf
Code:
<VirtualHost 1.22.333.4:443>
SSLEngine on
SSLCertificateFile /usr/local/directadmin/data/users/someuser/domains/somedomain.com.cert
SSLCertificateKeyFile /usr/local/directadmin/data/users/someuser/domains/somedomain.com.key
SSLCACertificateFile /etc/httpd/conf/ssl.crt/server.ca [COLOR="#FF0000"]<---(hmmm thats odd)[/COLOR]
cat /etc/httpd/conf/ssl.crt/server.ca
Code:
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
Find backup, restored the /etc/httpd/conf/ssl.crt/server.ca file.
systemctl start httpd.service
Success!
Check logs to see what happened shortly before httpd start fail:
/var/log/directadmin/system.log
Code:
2017:06:07-00:10:29: LetsEncrypt(8797): /usr/local/directadmin/scripts/letsencrypt.sh renew 'server.org' 4096 /usr/local/directadmin/conf/ca.san_config /var/www/html
2017:06:07-00:12:44: LetsEncrypt(8797): exit code: 0
Not sure if that was the caused /etc/httpd/conf/ssl.crt/server.ca to become blank.
Any ideas what it could be?
Im running on Centos7 64
Apache 2.4.23 with SNI and HTTP2 enabled
everything else is up to date.