13

I have a VPS with kloxo control panel installed. I am using CentOS 5.8 32-bit.

I restarted Apache today but forgot the time when I did. It is very important to know the exact time.

Can I find it out using the log files or SSH command?

Kevdog777
  • 908
  • 7
  • 20
  • 43
Enn Fenn
  • 400
  • 2
  • 5
  • 15

2 Answers2

30

Log in into your VPS via SSH and type in the command:

grep resuming /var/log/httpd/error_log
icktoofay
  • 126,289
  • 21
  • 250
  • 231
rasho
  • 416
  • 3
  • 3
  • 2
    of course, you need to put the actual path to the log file that your apache has been configured to use – Jeff Sep 13 '16 at 00:40
6

You can find out this from the Apache logs. You will need to log into your VPS via ssh and check the error_log for your apache instance.

You should find something like the following:

[Tue Apr 09 11:43:23 2013] [notice] Apache/2.2.15 (Unix) DAV/2 configured -- resuming normal operations

That will tell you exactly when you apache instance was last started successfully

mostlyh
  • 61
  • 1