No access logs saved
I have no idea what is going on but Apache 2.4 is not saving hosted cPanel accounts logs. Most of them have only one record from a day when particular account was created.
Any idea what is going on?
PS.
It looks like it must be related to NGNIXcp from nginxcp.com and enabling mod_remoteIP
Thanks
-
Hello, It's possible you are noticing a change in the LogLevel configuration in Apache 2.4. You can view the "LogLevel" value in your Apache configuration file with a command such as: grep -i LogLevel /usr/local/apache/conf/httpd.conf
You can change the LogLevel to 'info' instead of 'warn' in the httpd.conf and then restart Apache to see if this addresses the issue. If so, or if you want to maintain this change, you can preserve the changes by following the steps listed in the following document: > Service Configuration >> Apache Configuration >> Global Configuration" in cPanel 58. Thank you.0 -
I have changed LogLevel to 'info' but still logs were not saved to particular domlog. It looks like NGNIXcp has to changed something as I have disabled it and logs came to be written back and enabled it back then it stopped to log. 0 -
Hello, You may find the following threads helpful if you are planning to use Nginx: mod_remoteip and correct ip in vhost access logs Breaking down AWstats Thank you. 0 -
OK. I have got logs back by following those steps: - ]
- Enable Piped Apache Logs - WHM "Service Configuration "Apache Configuration "Piped Log Configuration. Check the box to enable, and save
- Rebuild Vhosts - This is from within the Nginx configuration, not apache.
- Restart Nginx - Self explanatory
- Restart Apache
0 -
No clue why but logs are no longer mirrored to /home/{domain}/access-logs 0 -
No clue why but logs are no longer mirrored to /home/{domain}/access-logs
Hello, It's possible Nginx installer changed the default logging format in the Apache configuration. You could check with the support team for the Nginx installer you are using to see if this is by design. Thank you.0
Please sign in to leave a comment.
Comments
6 comments