Red Hat Bugzilla – Bug 1257738
mod_ssl rpm is missing ssl_error_log from file list
Last modified: 2016-03-18 07:07:09 EDT
Description of problem:mod_ssl ssl.conf file lists /var/log/ssl_error_log as the default log location. This file does not exist in the rpm file list. "systemctl start httpd" fails.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install mod_ssl and configure.
2. "systemctl start httpd" fails due to above log file missing
Expected results: Start of httpd with mod_ssl installed executes successfully. The log file exists and is SELinux friendly.
Additional info: I did
"touch /var/log/ssl_error_log; chown apache:apache /var/log/ssl_error_log"
Adjusted local SELinux policy.
"systemctl start httpd" executes; web server running as expected.
"chown apache:apache /var/log/ssl_error_log"
This is a very bad idea and is unnecessary. The log file will be created at startup as required. It's likely your SELinux permissions or similar are wrong on /var/log/httpd, preventing creation of the log file. Or e.g. you are using a non-standard systemd unit file for httpd which doesn't start the parent as root.