sriram
sriram

Reputation: 9032

How to rotate the apache log files daily?

I'm very new to apache. We wish to rotate the log files in daily basis. We installed the apache2 using :

sudo apt-get install apache2

in Ubuntu. Are there any ways to do it using logrotate ?

Upvotes: 0

Views: 2727

Answers (1)

mvp
mvp

Reputation: 116177

In Ubuntu, you don't need to do anything - by default, logrotate is already pre-configured to rotate apache logs.

You can check and adjust logrotate configuration in file /etc/logrotate.d/apache2

Upvotes: 2

Related Questions