Mobile app version of vmapp.org
Login or Join
Correia994

: How to set web server log files deletion at certain interval in shared hosting? I have a site created with Drupal 8 CMS. It is hosted using shared hosting(Apache web server). I read at many

@Correia994

Posted in: #ApacheLogFiles #Privacy #Webserver

I have a site created with Drupal 8 CMS. It is hosted using shared hosting(Apache web server). I read at many places, that web server logs collect and store the IP addresses and otehr data of the visitors automatically.

How can I set a time period so all the web log files gets deleted after certain period of time? lets say 30 days, so ultimately IP addresses of the visitors also gets deleted.

Thanks.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Correia994

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sarah324

If your shared hosting provider uses cPanel and you use cPanel to manage your website, cPanel has the function to automatically delete old log files after 30 days.

Screenshot from the "Raw Access" page of cPanel; note the "Remove the previous month's archived logs from your home directory" option:

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme