When trying to restart Apache, you may be presented with an error message as follows:
(2)No such file or directory: AH02297: Cannot access directory '/etc/apache2/logs/domlogs/' for log file '/etc/apache2/logs/domlogs/domain.com-bytes_log' defined at /etc/apache2/conf/httpd.conf:286
To fix this, run the following commands:
chown root:wheel domlogs
An output such as the below should be displayed if the restart was successful:
Waiting for “httpd” to start ……waiting for “httpd” to initialize ………finished.
[Mon Sep 05 10:38:35.192031 2016] [mpm_prefork:notice] [pid 13331] AH00163: Apache/2.4.23 (cPanel) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 configured -- resuming normal operations
[Mon Sep 05 10:38:35.147431 2016] [:notice] [pid 13330] ModSecurity for Apache/2.9.0 (http://www.modsecurity.org/) configured.
httpd started successfully.