How to disable Logrotate

I have an Ubuntu server with Apache, Nginx as a reverse proxy for Apache, and HestiaCP installed.

I want to disable the automatic deletion of all logs, especially the Error log and Access log.

I want everything to be logged and not deleted automatically.

Please assist me with this.

Edit:
/etc/logrotate.d/nginx/
and /etc/logrotate.d/apache2

Remove them to disable everything

But I suggest adjusting rotate 4 to something larger as it will get large very fast

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.