Learn about Centmin Mod LEMP Stack today
Register Now

cminfo command explained

Discussion in 'Centmin Mod Insights' started by eva2000, Apr 18, 2017.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    2:47 AM
    Nginx 1.13.x
    MariaDB 5.5
    Centmin Mod 123.09beta01 has a cminfo command which allows you to obtain some basic information regarding your Centmin Mod environment, software versions, nginx vhost, pure-ftpd virtual ftp users and nginx and php config information.

    Below is an example of output from typing the commnad
    Code (Text):
    cminfo
    

    Code (Text):
    ------------------------------------------------------------------
     Centmin Mod Quick Info:
    ------------------------------------------------------------------
    Server Location Info
    
      ip: ip.address.xx.xx
      city: Montreal
      region: Quebec
      country: CA
    
    Processors physical = 1, cores = 4, virtual = 8, hyperthreading = yes
    
          1  4242.343
          1  4250.312
          1  4254.687
          1  4324.843
          1  4368.906
          1  4378.281
          1  4386.718
          1  4396.406
          8  Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
          8  8192 KB
    
     System Up Since:       2017-04-13 18:27:22
     System Uptime:         up 3 days, 20 hours, 11 minutes
     MySQL Server Started   2017-04-13 18:27:24
     MySQL Uptime:          3 days 20 hours 11 min 15 sec
     MySQL Uptime (secs):   331875
     Server Type:           not virtualized
     CentOS Version:        7.3
     Centmin Mod:           1.2.3-eva2000.09.004
     Nginx PageSpeed:       OFF
     Nginx Version:         1.12.0
     PHP-FPM Version:       7.1.4
     MariaDB Version:       10.1.22
     CSF Firewall:          v10.06
     Memcached Server:      1.4.36
     NSD Version:            -
     Siege Version:         4.0.2
     Maldet Version:        not installed
     ClamAV Version:        not installed
     ElasticSearch:         not installed
    ------------------------------------------------------------------
    

    Code (Text):
    ------------------------------------------------------------------
     Site Nginx Vhost Accounts:
    ------------------------------------------------------------------
    * demodomain.com: /home/nginx/domains/demodomain.com
    ├── backup
    ├── log
    ├── private
    └── public
    * domain.com: /home/nginx/domains/domain.com
    ├── backup
    ├── log
    ├── private
    └── public
    ------------------------------------------------------------------
    

    Code (Text):
    ------------------------------------------------------------------
     Site Nginx Vhost Config Files:
    ------------------------------------------------------------------
    * /usr/local/nginx/conf/conf.d/demodomain.com.conf
    * /usr/local/nginx/conf/conf.d/domain.com.conf
    * /usr/local/nginx/conf/conf.d/virtual.conf
    * /usr/local/nginx/conf/conf.d/virtual.ssl.conf
    

    Code (Text):
    ------------------------------------------------------------------
     System User Ids >81:
    ------------------------------------------------------------------
    nobody:x:99:99:Nobody:/:/sbin/nologin
    systemd-bus-proxy:x:999:998:systemd Bus Proxy:/:/sbin/nologin
    systemd-network:x:192:192:systemd Network Management:/:/sbin/nologin
    dbus:x:81:81:System message bus:/:/sbin/nologin
    polkitd:x:998:997:User for polkitd:/:/sbin/nologin
    postfix:x:89:89::/var/spool/postfix:/sbin/nologin
    chrony:x:997:995::/var/lib/chrony:/sbin/nologin
    unbound:x:996:994:Unbound DNS resolver:/etc/unbound:/sbin/nologin
    saslauth:x:995:76:Saslauthd user:/run/saslauthd:/sbin/nologin
    nginx:x:1000:1000::/home/nginx:/sbin/nologin
    mysql:x:994:993:MySQL server:/var/lib/mysql:/sbin/nologin
    memcached:x:1001:1001::/home/memcached:/sbin/nologin
    

    Code (Text):
    ------------------------------------------------------------------
     Pure-FTP Virtual FTP Info:
    ------------------------------------------------------------------
    ftp_username          /home/nginx/domains/domain.com/./                        
    
    -------------------------------------
    Virtual FTP user: ftp_username
    password displayed is encrypted
    
    Login              : ftp_username
    Password           : $6$g8S/HQoxtdGxqo00$0/EjSlzo8hbZvuAbJy.dK72.KxhnRpWVsahYFyZpyRgOInRy1fcqL//9nsJO50Exl5ApBE2Df0M2xgw.RMwBN.
    UID                : 1000 (nginx)
    GID                : 1000 (nginx)
    Directory          : /home/nginx/domains/domain.com/./
    Full name          :
    Download bandwidth : 0 Kb (unlimited)
    Upload   bandwidth : 0 Kb (unlimited)
    Max files          : 0 (unlimited)
    Max size           : 0 Mb (unlimited)
    Ratio              : 0:0 (unlimited:unlimited)
    Allowed local  IPs :
    Denied  local  IPs :
    Allowed client IPs :
    Denied  client IPs :
    Time restrictions  : 0000-0000 (unlimited)
    Max sim sessions   : 0 (unlimited)
    

    Code (Text):
    ------------------------------------------------------------------
     Nginx Configuration:
    ------------------------------------------------------------------
    
    nginx version: nginx/1.12.0
    built by clang 3.4.2 (tags/RELEASE_34/dot2-final)
    built with LibreSSL 2.5.3
    TLS SNI support enabled
    configure arguments: --with-ld-opt='-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-m64 -mtune=native -mfpmath=sse -DTCP_FASTOPEN=23 -g -O3 -fstack-protector -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-sign-compare -Wno-string-plus-int -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-const-variable -Wno-conditional-uninitialized -Wno-mismatched-tags -Wno-sometimes-uninitialized -Wno-parentheses-equality -Wno-tautological-compare -Wno-self-assign -Wno-deprecated-register -Wno-deprecated -Wno-invalid-source-encoding -Wno-pointer-sign -Wno-parentheses -Wno-enum-conversion -Wno-c++11-compat-deprecated-writable-strings -Wno-write-strings -gsplit-dwarf' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-compat --with-http_stub_status_module --with-http_secure_link_module --with-libatomic --with-http_gzip_static_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-stream_geoip_module --with-stream_realip_module --with-stream_ssl_preread_module --with-threads --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.0 --add-module=../ngx_cache_purge-2.3 --add-module=../ngx_devel_kit-0.3.0 --add-module=../set-misc-nginx-module-0.31 --add-module=../echo-nginx-module-0.60 --add-module=../redis2-nginx-module-0.14 --add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.18 --add-module=../srcache-nginx-module-0.31 --add-module=../headers-more-nginx-module-0.32 --with-pcre=../pcre-8.40 --with-pcre-jit --with-zlib=../zlib-1.2.11 --with-http_ssl_module --with-http_v2_module --with-openssl=../libressl-2.5.3
    

    Code (Text):
    ------------------------------------------------------------------
     Nginx Settings:
    ------------------------------------------------------------------
    
    user              nginx nginx;
    worker_processes 4;
    worker_priority -10;
    worker_rlimit_nofile 260000;
    timer_resolution 100ms;
    pcre_jit on;
    include /usr/local/nginx/conf/dynamic-modules.conf;
     map_hash_bucket_size 128;
     map_hash_max_size 4096;
     server_names_hash_bucket_size 128;
     server_names_hash_max_size 2048;
     variables_hash_max_size 2048;
    limit_req_zone $binary_remote_addr zone=xwplogin:16m rate=40r/m;
    #include /usr/local/nginx/conf/cloudflare.conf;
    #include /usr/local/nginx/conf/incapsula.conf;
    include /usr/local/nginx/conf/maintenance.conf;
    #include /usr/local/nginx/conf/vts_http.conf;
    include /usr/local/nginx/conf/geoip.conf;
    #include /usr/local/nginx/conf/pagespeedadmin.conf;
    include /usr/local/nginx/conf/fastcgi_param_https_map.conf;
            sendfile on;
            sendfile_max_chunk 512k;
            tcp_nopush  on;
            tcp_nodelay on;
            server_tokens off;
            keepalive_timeout  5;
            keepalive_requests 500;
            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  5s;
     client_max_body_size 50m;
     connection_pool_size  512;
     directio  4m;
     large_client_header_buffers 8 64k;
     types_hash_max_size 2048;
    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;
    

    Code (Text):
    ------------------------------------------------------------------
     PHP-FPM Configuration:
    ------------------------------------------------------------------
    
    Configure Command =>  '../configure'  '--enable-fpm' '--enable-opcache' '--enable-intl' '--enable-pcntl' '--with-mcrypt' '--with-snmp' '--with-mhash' '--with-zlib' '--with-gettext' '--enable-exif' '--enable-zip' '--with-bz2' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-shmop' '--with-pear' '--enable-mbstring' '--with-openssl' '--with-mysql=mysqlnd' '--with-libdir=lib64' '--with-mysqli=mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-curl' '--with-gd' '--with-xmlrpc' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--with-freetype-dir=/usr' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--with-vpx-dir=/usr' '--with-t1lib=/usr' '--enable-pdo' '--with-pdo-sqlite' '--with-pdo-mysql=mysqlnd' '--enable-inline-optimization' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--with-readline' '--with-libedit' '--with-gmp' '--with-pspell' '--with-tidy' '--with-enchant' '--with-fpm-user=nginx' '--with-fpm-group=nginx' '--disable-fileinfo' '--with-ldap' '--with-ldap-sasl' '--enable-huge-code-pages' '--with-config-file-scan-dir=/etc/centminmod/php.d' '--with-xsl'
    

    Code (Text):
    ------------------------------------------------------------------
     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 = 0660
    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
    

    Code (Text):
    ------------------------------------------------------------------
     PHP-FPM Extensions Loaded:
    ------------------------------------------------------------------
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    exif
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    igbinary
    imagick
    imap
    intl
    json
    ldap
    libxml
    mailparse
    mbstring
    mcrypt
    memcache
    memcached
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    redis
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache