Learn about Centmin Mod LEMP Stack today
Become a Member

Install centminmod_packager.sh

Discussion in 'Beta release code' started by eva2000, Mar 30, 2015.

  1. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    7:39 AM
    Nginx 1.25.x
    MariaDB 10.x
    Wrote a new script, centminmod_packager.sh in light of recent github.com DDOS attacks, folks won't have the required downloads in /svr-setup that Centmin Mod needs for installation. This script packages up your existing successfully installed Centmin Mod installed server's /svr-setup directory as s zip file which you can copy to other other servers and place the extracted contents in /svr-setup on new server prior to Centmin Mod installation.
    • This won't help new Centmin Mod users much, but for existing Centmin Mod users who install many instances on different servers, they now have an option :)
    • Also won't download all scripts used by Centmin Mod but at least all the ones in /svr-setup which is where Centmin Mod looks for downloads predominantly
    to download and install

    mkdir -p /root/tools
    cd /root/tools
    wget -cnv -O centminmod_packager.sh https://github.com/centminmod/centminmod/raw/123.08centos7beta02/tools/centminmod_packager.sh
    chmod +x centminmod_packager.sh
    example output when running centminmod_packager.sh

    copying APC-3.1.13.tgz to /home/centminmod_pkg
    copying Nginx-accesskey-2.0.3.tar.gz to /home/centminmod_pkg
    copying csf.tgz to /home/centminmod_pkg
    copying epel-release-6-8.noarch.rpm to /home/centminmod_pkg
    copying headers-more-v0.25.tar.gz to /home/centminmod_pkg
    copying igbinary-1.2.1.tgz to /home/centminmod_pkg
    copying imagick-3.2.0RC1.tgz to /home/centminmod_pkg
    copying memc-nginx-module_v0.15.tar.gz to /home/centminmod_pkg
    copying memcache-3.0.8.tgz to /home/centminmod_pkg
    copying memcached-1.4.22.tar.gz to /home/centminmod_pkg
    copying memcached-2.2.0.tgz to /home/centminmod_pkg
    copying nginx-1.7.11.tar.gz to /home/centminmod_pkg
    copying nginx-dav-ext-module-0.0.3.tar.gz to /home/centminmod_pkg
    copying nginx-http-concat-master.tar.gz to /home/centminmod_pkg
    copying nginx-sticky-1.2.5.tar.gz to /home/centminmod_pkg
    copying nginx-upstream-check-0.3.0.tar.gz to /home/centminmod_pkg
    copying ngx-fancyindex-0.3.1.tar.gz to /home/centminmod_pkg
    copying ngx_cache_purge-2.3.tar.gz to /home/centminmod_pkg
    copying nsd-3.2.18.tar.gz to /home/centminmod_pkg
    copying openssl-1.0.2a.tar.gz to /home/centminmod_pkg
    copying package.xml to /home/centminmod_pkg
    copying package2.xml to /home/centminmod_pkg
    copying pcre-8.36.tar.gz to /home/centminmod_pkg
    copying percona-release-0.1-3.noarch.rpm to /home/centminmod_pkg
    copying pflogsumm-1.1.5.tar.gz to /home/centminmod_pkg
    copying php-5.4.39.tar.gz to /home/centminmod_pkg
    copying release-2.0.22-stable.tar.gz to /home/centminmod_pkg
    copying remi-release-6.rpm to /home/centminmod_pkg
    copying rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm to /home/centminmod_pkg
    copying securedtmp.log to /home/centminmod_pkg
    copying siege-3.0.9.tar.gz to /home/centminmod_pkg
    copying sproxy-latest.tar.gz to /home/centminmod_pkg
    copying srcache-nginx-module_v0.28.tar.gz to /home/centminmod_pkg
    copying twemperf-0.1.1.tar.gz to /home/centminmod_pkg
    copying varnish-release-3.0-1.el6.noarch.rpm to /home/centminmod_pkg
    copying zendopcache-7.0.4.tgz to /home/centminmod_pkg
    copy ngx_pagespeed + psol
    636M    /home/centminmod_pkg
    total 27M
    drwxr-xr-x 3 root root 4.0K Mar 29 20:58 .
    drwxr-xr-x 6 root root 4.0K Mar 29 20:58 ..
    -rw-r--r-- 1 root root 168K Mar 29 20:58 APC-3.1.13.tgz
    -rw-r--r-- 1 root root 2.6K Mar 29 20:58 Nginx-accesskey-2.0.3.tar.gz
    -rw-r--r-- 1 root root 629K Mar 29 20:58 csf.tgz
    -rw-r--r-- 1 root root  15K Mar 29 20:58 epel-release-6-8.noarch.rpm
    -rw-r--r-- 1 root root  28K Mar 29 20:58 headers-more-v0.25.tar.gz
    -rw-r--r-- 1 root root  37K Mar 29 20:58 igbinary-1.2.1.tgz
    -rw-r--r-- 1 root root 160K Mar 29 20:58 imagick-3.2.0RC1.tgz
    -rw-r--r-- 1 root root  38K Mar 29 20:58 memc-nginx-module_v0.15.tar.gz
    -rw-r--r-- 1 root root  69K Mar 29 20:58 memcache-3.0.8.tgz
    -rw-r--r-- 1 root root 339K Mar 29 20:58 memcached-1.4.22.tar.gz
    -rw-r--r-- 1 root root  69K Mar 29 20:58 memcached-2.2.0.tgz
    -rw-r--r-- 1 root root 813K Mar 29 20:58 nginx-1.7.11.tar.gz
    -rw-r--r-- 1 root root 6.2K Mar 29 20:58 nginx-dav-ext-module-0.0.3.tar.gz
    -rw-r--r-- 1 root root 6.9K Mar 29 20:58 nginx-http-concat-master.tar.gz
    -rw-r--r-- 1 root root 118K Mar 29 20:58 nginx-sticky-1.2.5.tar.gz
    -rw-r--r-- 1 root root 134K Mar 29 20:58 nginx-upstream-check-0.3.0.tar.gz
    -rw-r--r-- 1 root root  13K Mar 29 20:58 ngx-fancyindex-0.3.1.tar.gz
    -rw-r--r-- 1 root root  12K Mar 29 20:58 ngx_cache_purge-2.3.tar.gz
    drwxr-xr-x 6 root root 4.0K Mar 28 19:00 ngx_pagespeed-release-
    -rw-r--r-- 1 root root 903K Mar 29 20:58 nsd-3.2.18.tar.gz
    -rw-r--r-- 1 root root 5.1M Mar 29 20:58 openssl-1.0.2a.tar.gz
    -rw-r--r-- 1 root root  29K Mar 29 20:58 package.xml
    -rw-r--r-- 1 root root 9.4K Mar 29 20:58 package2.xml
    -rw-r--r-- 1 root root 2.0M Mar 29 20:58 pcre-8.36.tar.gz
    -rw-r--r-- 1 root root 6.5K Mar 29 20:58 percona-release-0.1-3.noarch.rpm
    -rw-r--r-- 1 root root  47K Mar 29 20:58 pflogsumm-1.1.5.tar.gz
    -rw-r--r-- 1 root root  15M Mar 29 20:58 php-5.4.39.tar.gz
    -rw-r--r-- 1 root root 501K Mar 29 20:58 release-2.0.22-stable.tar.gz
    -rw-r--r-- 1 root root 5.6K Mar 29 20:58 remi-release-6.rpm
    -rw-r--r-- 1 root root  13K Mar 29 20:58 rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
    -rw-r--r-- 1 root root   65 Mar 29 20:58 securedtmp.log
    -rw-r--r-- 1 root root 512K Mar 29 20:58 siege-3.0.9.tar.gz
    -rw-r--r-- 1 root root 531K Mar 29 20:58 sproxy-latest.tar.gz
    -rw-r--r-- 1 root root  58K Mar 29 20:58 srcache-nginx-module_v0.28.tar.gz
    -rw-r--r-- 1 root root  56K Mar 29 20:58 twemperf-0.1.1.tar.gz
    -rw-r--r-- 1 root root 2.8K Mar 29 20:58 varnish-release-3.0-1.el6.noarch.rpm
    -rw-r--r-- 1 root root  95K Mar 29 20:58 zendopcache-7.0.4.tgz
    zip up package directory /home/centminmod_pkg
    real    0m14.817s
    user    0m13.635s
    sys     0m0.443s
    drwxr-xr-x  3 root  root  4.0K Mar 29 20:58 centminmod_pkg
    -rw-r--r--  1 root  root  225M Mar 29 20:53 centminmod_pkg-290315-205344.zip
    -rw-r--r--  1 root  root  252M Mar 29 20:59 centminmod_pkg-290315-205844.zip
    packaging completed
    saved package to /home/centminmod_pkg-290315-205844.zip
    You end up with a zip package of /svr-setup at /home/centminmod_pkg-290315-183839.zip which you can copy to other servers you intend to install Centmin Mod on :)
    Last edited: Mar 30, 2015