Join the community today
Register Now

Sysadmin Monthly server maintenance guide (request)

Discussion in 'System Administration' started by kayx, Jun 4, 2019.

  1. kayx

    kayx New Member

    Nov 25, 2018
    Local Time:
    7:11 AM
    Anyone here has a routine for your monthly server maintenance and upgrade?

    Like what we need to do to upkeep centmin mod stack?

    I am totally clueless what exactly I need to do to maintain it. I have set up the server few months back and install with WordPress. since then i have done nothing on the server.

    Is there any guideline on what should i do in routine to improve performance and security?

    Thank you in advance.

  2. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    9:11 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Centmin Mod since 123.08stable and 123.09beta01 onwards support code updates via git so the same versions get continual upgrades within their respective same branches. So see below upgrade guide for how to do that for centmin mod code, then do updates for nginx and php-fpm via menu option 4 and 5.

    You can also keep informed and track updates see Upgrade - Nginx - Redis - Insight Guide - How To Keep Informed Of Centmin Mod Related Updates. Security updates I will post on this forum and forum mailings and via my social media accounts Centmin Mod Social Media Pages

    For performance, check out How To Boost Centmin Mod LEMP Stack Performance

    Upgrading Centmin Mod Code to Latest Version

    Getting Started Guide step 19 outlines also how to keep Centmin Mod code updated or how to switch version branches or you can run cmupdate command that was recently added.

    Centmin Mod LEMP stack's script code is constantly updated for improvements, bug fixes and security fixes so keeping the Centmin Mod code up to date is important. With Centmin Mod 1.2.3-eva2000.08) (123.08stable) and higher releases, a newly added menu option 23 allows much easier code updates and version branch switching via Git backed environment you can setup.

    For 123.08stable that means menu option 23 submenu option 2 (if you previously ran submenu option 1) first, then exit, re-enter /usr/local/src/centminmod and re-run menu.

    For 123.09beta01 and higher that means running SSH command = cmupdate and then re-enter /usr/local/src/centminmod and re-run menu.

    Example of using 123.09beta01 cmupdate command to update Centmin Mod code on your server
    Code (Text):
    No local changes to save
    Updating 5f92047..9d06ee8
     stackscripts/ | 11 ++++++++---
     1 file changed, 8 insertions(+), 3 deletions(-)

    For full details read the following links:
    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code outlined at Upgrade Centmin Mod. This is heart of Centmin Mod where the code is the engine that runs shell based menu and all the automation you're accustomed to. You can easily update within a Centmin Mod version branch or switch version branches via menu option 23 outlined here.
    2. Upgrade software that Centmin Mod installed or manages. For this part following outline at How to upgrade Centmin Mod software installed on your server.
    So essentially, you can upgrade from one version branch to another i.e. 123.08stable to 123.09beta01 or higher in place, but not everything is upgraded as some things like server initial environment setup isn't changed i.e. how swap, tmp setup and allocation are created etc. The main parts from part 2 above are what in place upgrades do i.e. Nginx and PHP-FPM compilation and config/settings parameters and MariaDB version from 5.5 to 10.0.x. If you want the full environment changed including tmp and swap setup to 123.09beta01 etc configuration, then you would need a fresh OS install and fresh 123.09beta01 initial install. You can think of it like upgrading Windows 7 to Windows 8. An in place upgrade will upgrade code but won't change your computer environment from when you installed Windows 7 i.e. disk configuration and partition sizes won't change from when you initially installed Windows 7. Only way to change that would be fresh Windows 8 install.