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

Install Only install Nginx, PHP-FPM, MariaDB, LibreSSL and nothing else

Discussion in 'Install & Upgrades or Pre-Install Questions' started by trxerz, Nov 21, 2015.

  1. trxerz

    trxerz Member

    69
    5
    8
    Jun 25, 2015
    Ratings:
    +7
    Local Time:
    10:28 AM
    Hi there,
    I really need lite systems, since I only use it for Wordpress. Centminmod have many many addons, it give me difficulties when I want install on low resource instances like Free Tier Amazon EC2.

    What's the best way to install Centmin without additional addons. I only need to install Nginx (support HTTP/2), LibreSSL, MariaDB, PHP-FPM (with Opcache and Memcache). And drop the support of Google Pagespeed, vhoststat, and others addons.

    Can I change "y" to "n" to all addons in centmin.sh.


    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    7:28 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. trxerz

    trxerz Member

    69
    5
    8
    Jun 25, 2015
    Ratings:
    +7
    Local Time:
    10:28 AM
    Thanks for the reply, my bad I don't read the whole FAQ..

    I've followed all direction on FAQ, since I want as lite as possible I also disable some :D :
    NGINX_PCREJIT=n
    NGINX_LIBATOMIC=n
    PHPREDIS='n'

    I Also delete the "usertmp_donotdelete" since I only have 8GB of storage

    Am I doing wrong? What is the worst case? especially for wordpress installation.

    Update:
    I've got the following error when restart nginx:
    nginx: [warn] nginx was built without PCRE JIT support in /usr/local/nginx/conf/nginx.conf:8
    nginx: [warn] invalid parameter "spdy": ngx_http_spdy_module was superseded by ngx_http_v2_module in /usr/local/nginx/conf/conf.d/mydomain.net.ssl.conf:15
    nginx: [warn] invalid directive "spdy_headers_comp": ngx_http_spdy_module was superseded by ngx_http_v2_module in /usr/local/nginx/conf/conf.d/mydomain.net.ssl.conf:30
    nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
    Stopping nginx: [ OK ]
    Starting nginx: nginx: [warn] nginx was built without PCRE JIT support in /usr/local/nginx/conf/nginx.conf:8
    nginx: [warn] invalid parameter "spdy": ngx_http_spdy_module was superseded by ngx_http_v2_module in /usr/local/nginx/conf/conf.d/mydomain.net.ssl.conf:15
    nginx: [warn] invalid directive "spdy_headers_comp": ngx_http_spdy_module was superseded by ngx_http_v2_module in /usr/local/nginx/conf/conf.d/mydomain.net.ssl.conf:30
    [ OK ]
     
    Last edited: Nov 22, 2015
  4. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    7:28 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Official site and download/install page at centminmod.com/download.html has list of minimum AND recommended requirements so 8GB disk space is too little for Centmin Mod. AWS EC2 is Xen based VPS so follow Xen minimum (or recommended) memory and disk requirements.

    also you can not disable NGINX_HTTP2=y as SPDY no longer exists, only HTTP/2 module (i guess i need add a check for that for nginx >1.9.5 no longer has SPDY only HTTP/2 module.
    not advisable as system will break without /tmp or with /tmp with too little available space.
    after you disable NGINX_PCREJIT=n, you need to recompile Nginx again but i wouldn't disable it as it's for performance

    SELINUX must be disabled. Minimum system requirements are 256MB memory (128MB with variable tweak) for CentOS 6.x and 1GB memory for CentOS 7.x 64bit and 12GB disk space for OpenVZ VPS virtualization & 20GB for KVM and Xen virtualisation. Recommended memory & disk requirements are double the mininum for CentOS 6/7 respectively at CentOS 6.x 512MB memory and CentOS 7.x 64bit at 2GB memory and disk space of 24GB for OpenVZ and 40GB for KVM/Xen virtualisation. Disk usage footprint for CentOS OS + Centmin Mod LEMP initial install is approximately between 7.5GB and 9.5GB. There's several ways to install Centmin Mod LEMP stack on CentOS 6 32bit/64bit & CentOS 7 64bit (32bit is not supported yet). Fastest install method is method 3.
    1. centmin.sh shell menu option 1. Full details below.
    2. centmin.sh via Git. Full details below.
    3. one liner curl bash install. Full details below. [Youtube video]
    After install, check out the next steps in the Getting Started Guide and be sure to watch/subscribe to Centmin Mod 1.2.3-eva200.08 stable thread. Then to update Centmin Mod code itself, check out the Centmin Mod Upgrade page.
     
  5. trxerz

    trxerz Member

    69
    5
    8
    Jun 25, 2015
    Ratings:
    +7
    Local Time:
    10:28 AM
    Thanks George,
    It's working now, expand the EC2 storage to 20GB and then reinstall centmin with suggested settings from FAQ.
     
  6. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    7:28 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    (y) :)