Page 1 of 1

Apache2 randomly restarts

Posted: Tue Feb 02, 2016 9:03 am
by saumil
I have noticed that when ever I look stats I see apache has been restarted few hours ago
Image

Code: Select all

ps --no-headers -o etime -C apache2
   16:04:10
   02:28:15
   02:28:15
   02:28:15
   02:28:15
   02:28:15
   02:28:15
   02:09:21
   02:09:20
Is there any problem with it?

Re: Apache2 randomly restarts

Posted: Tue Feb 02, 2016 10:24 am
by skurudo
OS? What say apache2 error log?

Re: Apache2 randomly restarts

Posted: Tue Feb 02, 2016 12:03 pm
by saumil
skurudo wrote:OS? What say apache2 error log?
Its debian 8.2
Logs:-
http://pastebin.com/9ySr9RVw

Re: Apache2 randomly restarts

Posted: Tue Feb 02, 2016 2:02 pm
by skurudo
Very informative :-(

Edit your /etc/apache2/apache2.conf and change from

Code: Select all

LogLevel warn
to

Code: Select all

LogLevel debug
Restart apache2.

Wait and check logs again.