First question: why there are two error log files? One is /var/www/mywebsite/error.log, which is specified in <VirtualHost>
with the ErrorLog instruction. The other is /var/log/httpd/error_log. I cannot find where it is defined.There is a line outside <VirtualHost>
in /etc/httpd/conf/httpd.conf:
ErrorLog "logs/error_log"
But I think this is not corresponding to /var/log/httpd/error_log.
Second question: why the owner of both error log files is root:root, not apache:apache as specified in /etc/httpd/conf/httpd.conf:
User apache
Group apache