cPanel: Cannot access directory '/etc/apache2/logs/domlogs/' Print

  • 0

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:

mkdir /etc/apache2/logs/domlogs
chown root:wheel /etc/apache2/logs/domlogs
/scripts/restartsrv_httpd

An output such as the below should be displayed if the restart was successful:

# /scripts/restartsrv_httpd
Waiting for “httpd” to start ……waiting for “httpd” to initialize ………finished.

Log Messages
[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.


Was this answer helpful?

« Back

We're trusted by amazing customers in 136 countries - come & join us!
OR.S May 10, 2024
Excellent host

Excellent host. Prompt replies in good, clear English, easy migration from HG, good speed, all necessary info provided on sign up (ftp, logins etc) error free. Highly recommended.

Christopher James May 1, 2024
I'm very pleased

Affordability, reliability and great customer service. I hos ted my website here. George built something that will potentially be big.

Paola Meyer April 13, 2024
Customer Attention is 5 Stars

Customer Attention. Staff of Ethernet Servers is superb, fast and answers tickets in a pretty speedy manner.

stxsh February 17, 2024
Excellent Provider with Exceptional Support

Been with them for a week and the transition from old hostin g to ethernetserver has been nothing but a joyful experience. Setting up new vps, networking is like a breeze. All set up by george and nothing to worry about really.


Ethernet Servers Ltd
124 City Road
London
EC1V 2NX
United Kingdom


Registered Limited Company: #09114946

Telephone:
+44 330 043 1258

Email:
sales@ethernetservers.com

Copyright © 2014 - 2024 - Ethernet Servers Ltd - All Rights Reserved.

Proudly serving customers in 136 countries since September 2013!