Learn about Centmin Mod LEMP Stack today
Register Now

Need help with Centmin

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Raj, Jul 1, 2016.

  1. Raj

    Raj New Member

    3
    1
    3
    Jan 17, 2015
    Ratings:
    +1
    Local Time:
    12:28 AM
    1.7
    Hi last night I installed the latest stable version on one of my low end VPS with 512MB RAM. After installation I found out that my disk space ( 8GB ) is almost fill because the tmp file in /home is using almost 3.7G. Why is it using this much space. I try to delete it and created a 512MB file using the command,
    # dd if=/dev/zero of=/home/usertmp_donotdelete bs=1024 count=512000


    So is there any issues if I use a 512MB tmp file..?

    Also when using menu based installation, why there is no option to select what features to intall. There must be an option to select features we need to install like Memcached, Seige, ImageMagick and other php extension, or an option to uninstall these.
     
  2. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    10:28 AM
  3. eva2000

    eva2000 Administrator Staff Member

    55,811
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    12:28 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    That's a bug of sorts as the routine to calculate tmp size was a bit generous for /tmp size. A large /tmp size is crucial as alot of software will use including mysql server/mariadb server and without adequate /tmp size you can corrupt your mysql data on certain mysql tasks like repairing corrupted mysql data tables etc. Folks or installers that are not aware of this may run into problems in future if /tmp size isn't adequate. But you'd only run into this with some corrupted mysql database tables and when you go to repair and can't repair or end up corrupting your mysql data or making it worse. So it's a hidden problem until you really need that extra /tmp disk space !

    The /tmp routine is improved and fixed greatly in centmin mod 123.09beta01 initial install routine to take better account of your existing disk free space in the calculation for /tmp size. So you might want to reload a fresh OS and try 123.09beta01 fresh install Beta Branch - Centmin Mod .09 beta branch Testing | Centmin Mod Community

    123.08stable and higher now have a /etc/centminmod/custom_config.inc persist config file that can override centmin.sh set defaults. It's used to customise your install. FAQ 31 is an example of overriding the nginx modules you want compiled

    123.09beta01 installs local folder for examples/custom_config.inc has a list of variables you can override custom_config | Centmin Mod Community

    direct link to example centminmod/custom_config.inc at 123.09beta01 · centminmod/centminmod · GitHub

    so installing centmin mod is as easy as running a command
    Code (Text):
    yum -y update; curl -O https://centminmod.com/betainstaller.sh && chmod 0700 betainstaller.sh && bash betainstaller.sh

    If you need to override settings i.e. re-enable ngx_pagespeed and nginx lua modules which are now disabled by default type these 4 commands, 1st to create /etc/centminmod directory, 2nd to create persistent custom_config.inc file and 3rd & 4th to echo or append the variables to override and last to actually run centmin mod installation. It's all unattended now and much faster than centmin.sh menu option 1 method
    Code (Text):
    mkdir -p /etc/centminmod/
    touch /etc/centminmod/custom_config.inc
    echo "NGINX_PAGESPEED=y" >> /etc/centminmod/custom_config.inc
    echo "ORESTY_LUANGINX=y" >> /etc/centminmod/custom_config.inc
    yum -y update; curl -O https://centminmod.com/betainstaller.sh && chmod 0700 betainstaller.sh && bash betainstaller.sh
    
     
    Last edited: Jul 2, 2016
  4. Raj

    Raj New Member

    3
    1
    3
    Jan 17, 2015
    Ratings:
    +1
    Local Time:
    12:28 AM
    1.7
    Thanks for the detailed reply, I will test the new build.
     
  5. eva2000

    eva2000 Administrator Staff Member

    55,811
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    12:28 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you're welcome

    remember the official site Getting Started Guide has been updated too so lots of info for after initial install :)