Learn about Centmin Mod LEMP Stack today
Register Now

Install Errors encountered in installation

Discussion in 'Install & Upgrades or Pre-Install Questions' started by jscott, Apr 14, 2016.

  1. jscott

    jscott Member

    104
    14
    18
    Aug 13, 2015
    Ratings:
    +33
    Local Time:
    8:34 AM
    I just tried installing CM on an EC2 instance ( which I do with some regularity), but got a number of errors in the process...

    I used the following command that is the current command listed for one line curl install
    Code:
    curl -O https://centminmod.com/installer.sh && chmod 0700 installer.sh && bash installer.sh
    
    Code:
    
    *************************************************
    * Post-Install Check List....
    *************************************************
    
    --------------------------------------------------------
    Check ccache Version:
    --------------------------------------------------------
    inc/centminfinish.inc: line 43: ccache: command not found
    
    --------------------------------------------------------
    Check Nginx Version:
    --------------------------------------------------------
    inc/centminfinish.inc: line 49: nginx: command not found
    
    --------------------------------------------------------
    Check PHP-FPM Version:
    --------------------------------------------------------
    inc/centminfinish.inc: line 55: php: command not found
    
    --------------------------------------------------------
    Check Siege Benchmark Version:
    --------------------------------------------------------
    inc/centminfinish.inc: line 81: siege: command not found
    
    --------------------------------------------------------
    Check NSD Bind Version:
    --------------------------------------------------------
    inc/centminfinish.inc: line 108: nsd: command not found
    
    Created command shortcuts:
    * type cmdir to change to Centmin Mod install directory
      at /usr/local/src/centminmod
    * type centmin call and run centmin.sh
      at /usr/local/src/centminmod/centmin.sh
    
    (standard_in) 2: syntax error
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 0.0000 seconds
    Total YUM Time: 774.472755651 seconds
    Total YUM + Source Download Time: 796.7878
    Total Nginx First Time Install Time: 277.3852
    Total PHP First Time Install Time: 328.7905
    Download Zip From Github Time: 8.0576
    Total Time Other eg. source compiles: 561.2208
    Total Centmin Mod Install Time: 1964.1843
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 1972.2419 seconds
    ---------------------------------------------------------------------------
    
    cminfo does not look too good either...

    Code:
    cminfo
    /usr/bin/cminfo: line 55: ccache: command not found
    /usr/bin/cminfo: line 63: php: command not found
    ------------------------------------------------------------------
     Centmin Mod Quick Info:
    ------------------------------------------------------------------
    Server Location Info
    
      ip: xx.xx.xx.xxx
      city: Ashburn
      region: Virginia
      country: US
    
    Processors physical = 1, cores = 1, virtual = 1, hyperthreading = no
    
          1  2400.044
          1  Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz
          1  30720 KB
    
     System Uptime:         up 1:14, 2 users,
     MySQL Server Started   2016-04-13 18:10:53
     MySQL Uptime:          28 min 11 sec
     MySQL Uptime (secs):   1691
     Server Type:           xen-hvm
     CentOS Version:        6.7
     Centmin Mod:           1.2.3-eva2000.08
     Nginx PageSpeed:       OFF
     Nginx Version:         usr
     PHP-FPM Version:       line
     MariaDB Version:       10.0.24
     CSF Firewall:          v8.21
     Memcached Server:      1.4.25
     NSD Version:           62:
     Siege Version:         line
     Maldet Version:        not installed
     ClamAV Version:        not installed
     ElasticSearch:         not installed
    ------------------------------------------------------------------
    
    ------------------------------------------------------------------
     Site Nginx Vhost Accounts:
    ------------------------------------------------------------------
    
    ------------------------------------------------------------------
    
    ------------------------------------------------------------------
     Site Nginx Vhost Config Files:
    ------------------------------------------------------------------
    
    
    ------------------------------------------------------------------
     MySQL Databases:
    ------------------------------------------------------------------
    
    * mysql [idx: 0.12 MB data: 0.53 MB]
    
    ------------------------------------------------------------------
     System User Ids >81:
    ------------------------------------------------------------------
    *** snipped out for security ***
    
    ------------------------------------------------------------------
     Pure-FTP Virtual FTP Info:
    ------------------------------------------------------------------
    
    
    
    
    ------------------------------------------------------------------
     Nginx Configuration:
    ------------------------------------------------------------------
    
    /usr/bin/cminfo: line 286: nginx: command not found
    
    ------------------------------------------------------------------
     Nginx Settings:
    ------------------------------------------------------------------
    
    user              nginx nginx;
    worker_processes  1;
    worker_priority -10;
    worker_rlimit_nofile 260000;
    timer_resolution 100ms;
    pcre_jit on;
            tcp_nopush  on;
            tcp_nodelay on;
            server_tokens off;
            keepalive_timeout  8;
            keepalive_requests 1000;
            lingering_time 20s;
            lingering_timeout 5s;
            keepalive_disable msie6;
            gzip on;
            gzip_vary   on;
            gzip_disable "MSIE [1-6]\.";
            gzip_static on;
            gzip_min_length   1400;
            gzip_buffers      32 8k;
            gzip_http_version 1.0;
            gzip_comp_level 5;
            gzip_proxied    any;
            gzip_types text/plain text/css text/xml application/javascript application/x-javascript application/xml application/xml+rss application/ecmascript application/json image/svg+xml;
     client_body_buffer_size 256k;
     client_body_in_file_only off;
     client_body_timeout 10s;
     client_header_buffer_size 64k;
     client_header_timeout  8s;
     client_max_body_size 50m;
     connection_pool_size  512;
     directio  4m;
     large_client_header_buffers 8 64k;
     types_hash_max_size 2048;
     server_names_hash_bucket_size 64;
    open_file_cache max=50000 inactive=60s;
    open_file_cache_valid 120s;
    open_file_cache_min_uses 2;
    open_file_cache_errors off;
    open_log_file_cache max=10000 inactive=30s min_uses=2;
    
    ------------------------------------------------------------------
     PHP-FPM Configuration:
    ------------------------------------------------------------------
    
    /usr/bin/cminfo: line 301: php: command not found
    
    ------------------------------------------------------------------
     PHP-FPM Settings /usr/local/etc/php-fpm.conf:
    ------------------------------------------------------------------
    
    log_level = warning
    pid = /var/run/php-fpm/php-fpm.pid
    error_log = /var/log/php-fpm/www-error.log
    user = nginx
    group = nginx
    listen = 127.0.0.1:9000
    listen.allowed_clients = 127.0.0.1
    listen.owner = nginx
    listen.group = nginx
    listen.mode = 0666
    pm = ondemand
    pm.max_children = 16
    pm.start_servers = 8
    pm.min_spare_servers = 4
    pm.max_spare_servers = 12
    pm.max_requests = 1000
    pm.process_idle_timeout = 10s;
    rlimit_files = 65536
    rlimit_core = 0
    slowlog = /var/log/php-fpm/www-slow.log
    pm.status_path = /phpstatus
    ping.path = /phpping
    ping.response = pong
    php_admin_value[error_log] = /var/log/php-fpm/www-php.error.log
    php_admin_value[disable_functions] = shell_exec
    
    ------------------------------------------------------------------
     PHP-FPM Extensions Loaded:
    ------------------------------------------------------------------
    
    /usr/bin/cminfo: line 315: php: command not found
    
    


     
  2. eva2000

    eva2000 Administrator Staff Member

    55,805
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    10:34 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yes it's an issue with EC2 and their default use of sudo users. Centmin Mod 123.08stable doesn't support sudo users for initial install. But Centmin Mod 123.09beta01 has added support somewhat. You have to install Centmin Mod 123.09beta01 still as full root non-sudo user. But after install, you can use sudo users fine.

    1st post explains how to install 123.09beta01 at Beta Branch - Centmin Mod .09 beta branch Testing | Centmin Mod Community
     
  3. jscott

    jscott Member

    104
    14
    18
    Aug 13, 2015
    Ratings:
    +33
    Local Time:
    8:34 AM
    Ah, OK.

    The EC2 CentOS used to be configured to log in as root, and you had to jump through hoops to reconfigure the boot drive size. It used to be set to 8Gb and you had to jump through hoops to change it.

    Now you can configure the drive size, but now you have to login as user centos.

    Fix one thing, break another...

    -John