How to Enable raw access log archiving for all cPanel accounts?

> Please login to your server via SSH as the root access user

> Please run the below command to enable the logs 

echo archive-logs=1 > /root/.cpanel-logs

> Please run the following loop to write the raw access log archive settings to each cPanel user on the serve

for user in `/bin/ls -1 /var/cpanel/users`;
do cp -frp /root/.cpanel-logs /home/$user/;
chown $user.$user /home/$user/.cpanel-logs; chmod 640 /home/$user/.cpanel-logs; done
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to Create a Thumbnail Image Using Thumbnailer in cPanel?

Please note The images that you want to create thumbnails must have uploaded to your cPanel...

How to Suspend or Unsuspend cPanel Accounts?

How to Suspend cPanel Accounts > Please sign in to your WHM account > Please choose...

How to Add Addon Domains in cPanel?

> Please log in to your cPanel account > Please go to Addon Domains under Domains  >...

How to modify an Addon Domain Document Root in cPanel?

> Please click on Addon Domains in cPanel. > Please double-click on the pencil-like icon...

How to remove an Addon Domain?

> Please click on the Addon Domains icon in cPanel > Please scroll down the page and find...

Powered by WHMCompleteSolution