Want to subscribe to topics you're interested in?
Become a Member

[Solved] /usr/bin/centmin: line 2: centmin.sh: command not found (when disabing selinux)

Discussion in 'Bug Reports' started by arlon, Feb 23, 2016.

  1. arlon

    arlon Member

    83
    6
    8
    Feb 20, 2016
    Ratings:
    +11
    Local Time:
    10:03 AM
    1.13.6
    10.1
    Hi, a few hours ago i just installed new CMM on fresh vps server, installation ran well and didn't get any error
    and when i disabled my selinux i get this error:

    checking /etc/selinux/config
    SELinux already disabled
    SELINUX=disabled
    ---------------------------------------------
    /usr/bin/centmin: line 2: centmin.sh: command not found
    [root@apel ~]# centmin
    /usr/local/src/centminmod ~

    it forced me EXIT from CMM menu, i'm not sure its bug ir not
     
  2. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    1:03 PM
    Nginx 1.13.x
    MariaDB 5.5
    Thanks for the report. How did you exactly invoke and run centmin.sh ? Commands you used to disable selinux ? via centmin.sh menu option 14 ? that should be removed as usually selinux is already disabled

    You'll need to post on the forums with the following info
    • Server or VPS details ? XEN, KVM, OpenVZ, VMWare or dedicated server ? OS ? CentOS 6.7 or 7.1 ? 32bit or 64bit ?
    • What version of Centmin Mod ? .07 stable or .08 beta03 or .08 stable or .09 beta01 ?
    • Was it fresh install or upgrade ?
    • How long ago did you install Centmin Mod ?
    • There's numerous code changes, bug fixes over time, so ensure you have latest Centmin Mod code installed by upgrading your Centmin Mod code as instructed below.

    Troubleshooting Initial Install



    To troubleshoot initial installation, you need to check the initial install log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    Upgrading Centmin Mod Code to Latest Version



    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code outlined at Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS This is heart of Centmin Mod where the code is the engine that runs centmin.sh shell based menu and all the automation you're accustomed to.
    2. Upgrade software that Centmin Mod installed or manages. For this part following outline at Upgrade - How to upgrade Centmin Mod | Centmin Mod Community
    So essentially, you can upgrade from .07 to .08 in place, but not everything is upgraded as some things like server initial environment setup isn't changed i.e. how swap, tmp setup and allocation are created etc. The main parts from part 2 above are what in place upgrades do i.e. Nginx and PHP-FPM compilation and config/settings parameters and MariaDB version from 5.5 to 10.0.x. If you want the full environment changed including tmp and swap setup to .08's configuration, then you would need a fresh OS install and fresh .08 initial install. You can think of it like upgrading Windows 7 to Windows 8. An in place upgrade will upgrade code but won't change your computer environment from when you installed Windows 7 i.e. disk configuration and partition sizes won't change from when you initially installed Windows 7. Only way to change that would be fresh Windows 8 install.
     
  3. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    1:03 PM
    Nginx 1.13.x
    MariaDB 5.5
    @arlon fixed it in commit to centmin mod 123.09beta01 branch update centmin.sh · centminmod/centminmod@db5703b · GitHub :)

    thanks :D

    Code:
    ./centmin.sh
    
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.09 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu                  
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2/5.5 & 10.x Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 14
    --------------------------------------------------------
    
    ---------------------------------------------
    SELinux already disabled
    ---------------------------------------------
     
  4. arlon

    arlon Member

    83
    6
    8
    Feb 20, 2016
    Ratings:
    +11
    Local Time:
    10:03 AM
    1.13.6
    10.1
    my server details:
    Vultr vps 756MB, 1 core, centos 6.7 64bit (latest update)
    Centmin Mod 1.2.3-eva2000.08 on FRESH server instalation, i installed just 5 hours ago..

    i ran CMM menu using shortcut "centmin" then selected 14 option on menu,, this is the report

    checking /etc/selinux/config
    SELinux already disabled
    SELINUX=disabled
    ---------------------------------------------
    /usr/bin/centmin: line 2: centmin.sh: command not found
    [root@apel ~]# centmin
    /usr/local/src/centminmod ~

    it forced me EXIT from CMM menu,

    then i tried again (centmin shortcut -> option 14) i didn't get error but it always forces me exit from CMM menu option
     
  5. arlon

    arlon Member

    83
    6
    8
    Feb 20, 2016
    Ratings:
    +11
    Local Time:
    10:03 AM
    1.13.6
    10.1