Get the most out of your Centmin Mod LEMP stack
Become a Member

Sysadmin Create rpms from CentminMod

Discussion in 'System Administration' started by enterweb, Apr 29, 2017.

  1. enterweb

    enterweb New Member

    3
    3
    3
    Apr 29, 2017
    Kannapolis, NC
    Ratings:
    +3
    Local Time:
    12:16 AM
    I have 30+ servers based on CentminMod. Building PHP and Nginx from source that many times is very time consuming. All of my servers are identical. Is there a way for me to build an rpm based on the CedntminMod script to help save time?

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,458
    12,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,841
    Local Time:
    2:16 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Official site FAQ item 18 explains why source compiles are used by Centmin Mod and basically using RPMs wouldn't suit the goals of Centmin Mod or match with the feature set on offer by Centmin Mod. Building custom RPMs takes a lot of time and testing and with frequency of updates it will be a lot of work too.

    I have 120+ Centmin Mod servers and use SecureCRT's feature to allow me to type a single set of commands to many servers at the same time. So I update servers in batches of 20-40 servers simultaneously in one SecureCRT window or the full 120+ servers in 3x SecureCRT window sessions each with 40+ servers - literally I only have to type the commands 3x times for all 120+ servers. So I can update 120+ servers for Nginx in less than 1-5 minutes.

    commands I type to change to centmin mod directory, git update code (same as centmin.sh menu option 23 submenu option 2), run centmin.sh and select nginx (4) or php (5) menu options
    Code (Text):
    cmdir
    git stash
    git pull
    ./centmin.sh
    4 or 5
    


    Example of just simultaneous commands on 2 servers done for demo install video at https://community.centminmod.com/threads/how-to-install-centmin-mod-videos.4/#post-11541

    Though I have thought about auto updating options for Nginx and PHP-FPM that users could enable in future :)
     
    Last edited: Apr 29, 2017
  3. enterweb

    enterweb New Member

    3
    3
    3
    Apr 29, 2017
    Kannapolis, NC
    Ratings:
    +3
    Local Time:
    12:16 AM
    I am so excited to learn about sending the same commands to multiple servers at once. That just changed my world!
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,458
    12,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,841
    Local Time:
    2:16 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah 30 servers can be easily simultaneously updated via 1-3 ssh client windows if you have the right ssh client app

    edit: with SecureCRT you can add your ssh server's profiles into a single folder for management, and double clicking on the folder name will launch all ssh server profiles contained within the folder.
     
    Last edited: Apr 29, 2017