Check Apache Logs for when last cPanel Upgrade was done.

trochia

Member
Aug 26, 2008
24
0
51
Good day, and need a little fat help please?

How may I > Check Apache Logs for when last cPanel Upgrade was done.

Thanks in advance ~~

Jim

I did a search for this and nothing
 

LDHosting

Well-Known Member
Jan 19, 2008
93
2
58
cPanel Access Level
Root Administrator
The cPanel update logs are in /var/cpanel/updatelogs

Code:
# ls -l /var/cpanel/updatelogs/
-rw-r--r--  1 root root  79023 Nov 18 00:04 update.1321570802.log
-rw-r--r--  1 root root 128391 Nov 19 00:07 update.1321657202.log
-rw-r--r--  1 root root  74367 Nov 20 00:06 update.1321743602.log
-rw-r--r--  1 root root  74929 Nov 21 00:04 update.1321830001.log
-rw-r--r--  1 root root 381476 Nov 22 01:36 update.1321916401.log
-rw-r--r--  1 root root  92674 Nov 23 00:04 update.1322002802.log
-rw-r--r--  1 root root  76366 Nov 24 00:06 update.1322089202.log
-rw-r--r--  1 root root  74848 Nov 25 00:05 update.1322175602.log
-rw-r--r--  1 root root  74967 Nov 26 00:03 update.1322262002.log
-rw-r--r--  1 root root  76276 Nov 27 00:06 update.1322348402.log
-rw-r--r--  1 root root  74582 Nov 28 00:05 update.1322434802.log
 

trochia

Member
Aug 26, 2008
24
0
51
Thanks for the reply...but not what I am after... (that is UPDATE logs)


re: when last cPanel Upgrade was done

I am trying to look back and find out when last VERSION was upgraded...as I have this server set to "Manual"

Hope that clarifies my request?

Regards, Jim
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hello,

cPanel upgrades are shown in the same location at /var/cpanel/updatelogs where you will need to check the first reference of the current version you have on the machine to show what date it happened:

Code:
grep version /var/cpanel/updatelogs/*
Please replace version with the number of your current cPanel, which you can obtain using:

Code:
cat /usr/local/cpanel/version
Thanks!
 

trochia

Member
Aug 26, 2008
24
0
51
Thank you

re: you will need to check the first reference of the current version you have on the machine to show what date it happened:

But I had to look in each file for the version change date... but I did narrow it down..

I was just wondering instead of looking in the file, I could have search for a pattern in overall server log for something such as "updatecp" (or what ever script is run when pressing 'MANUAL UPDATE'

Thanks again, as at least I found what date I did the manual upgrade...

Jim
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Did you try the grep I mentioned for the version? The logs are sorted by date and timestamp, so the first instance of that version in grep would be the oldest log file. You could then check the date stamp. By opening the file, you might well have altered the date and timestamp.