Learn about Centmin Mod LEMP Stack today
Become a Member

Sysadmin Updating logwatch to latest

Discussion in 'System Administration' started by Sunka, Oct 11, 2016.

  1. Sunka

    Sunka Active Member

    888
    230
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +376
    Local Time:
    8:41 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    Any chance to update logwatch to newest 7.4.3 version?

    we have installed older version by default, how to merge all settings with new one during/after upgrade?

    P.S. I posted here because there is no logwatch dedicated thread
     
  2. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,585
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,775
    Local Time:
    4:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    just start your own thread ;) move post :)

    i'd stick with centos yum provided version for now for easier maintenance as I have no plans on maintaining source installs for logwatch right now
     
    • Agree Agree x 1
  3. Sunka

    Sunka Active Member

    888
    230
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +376
    Local Time:
    8:41 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    It should be somethin like this

    Code:
    Go to a temp install or source directory on your server.
    # cd /usr/local/src
    Get the source for logwatch
    # wget http://downloads.sourceforge.net/project/logwatch/logwatch-7.4.3/logwatch-7.4.3.tar.gz?r=&ts=1476136095&use_mirror=hean
    Extract the files
    # tar xvfz logwatch-7.4.3.tar.gz
    Make the install script executable
    # cd logwatch-7.4.3
    # chmod a+x install_logwatch.sh
    Run the script & enter the correct paths for logwatch:
    # ./install_logwatch.sh
    ...Logwatch Basedir [/usr/share/logwatch]  : /etc/log.d
    ...Logwatch ConfigDir [/etc/logwatch] : /etc/log.d
    ...temp files [/var/cache/logwatch] : <enter>
    ...perl [/usr/bin/perl] : <enter>
    ...manpage [/usr/share/man] : <enter>
     
  4. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,585
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,775
    Local Time:
    4:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    try on test server and see ;)

    that's why i setup local virtualbox centos 6/7 servers for testing before doing on live ;) :D
     
  5. Sunka

    Sunka Active Member

    888
    230
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +376
    Local Time:
    8:41 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    I will stay too than ;)
     
  6. Sunka

    Sunka Active Member

    888
    230
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +376
    Local Time:
    8:41 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    I do not have test server, never have. Do not ask me why :cry:
     
  7. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,585
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,775
    Local Time:
    4:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    next must do step to setup a test server especially if you want to venture off beyond what is provided by Centmin Mod out of the box :)
     
  8. Sunka

    Sunka Active Member

    888
    230
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +376
    Local Time:
    8:41 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    That will get me more confused than one server.
    I have only one server with live forum and everything is tested/installed/reinstalled/uninstalled on this poor server
     
  9. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,585
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,775
    Local Time:
    4:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    should test separately ;)

    even spinning up a new droplet based on a backup image of live server for testing is good. That's why i like Linode's clone server feature, i can clone a copy of live forums for staging tests too
     
    • Optimistic Optimistic x 1