The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Check Apache Logs for when last cPanel Upgrade was done.

Discussion in 'EasyApache' started by trochia, Nov 28, 2011.

  1. trochia

    trochia Member

    Joined:
    Aug 26, 2008
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. LDHosting

    LDHosting Well-Known Member

    Joined:
    Jan 19, 2008
    Messages:
    93
    Likes Received:
    2
    Trophy Points:
    8
    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
     
  3. trochia

    trochia Member

    Joined:
    Aug 26, 2008
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    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!
     
  5. trochia

    trochia Member

    Joined:
    Aug 26, 2008
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    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.
     
Loading...

Share This Page