Can someone please assist me.
I am trying to find a log on an Ubuntu server that will show me a history of dates and times when Apache was restarted.
Ubuntu version: Ubuntu 10.04.3 LTS Apache version: 2.2.14 (Ubuntu)
Thanks - Mike
apache usually logs to /var/log/apache2 - depending on what log rotation/cleaning you have going on there should at least be an access_log and an error_log (names may change depending on apache config). In each you should be able to see restart messages.
You could search for configured
keyword in apache error logs:
### for centos/redhat:
egrep -irn 'configured' '/var/log/httpd/error_log'
### for ubunto:
egrep -irn 'configured' '/var/log/apache2/error_log'
When we start or restart the apache, we get the logs in /var/log/apache2/error_logs
with the word caught SIGTERM, shutting down
So we can find the error_logs with word SIGTERM, will get if apache service start|restart