Join the community today
Become a Member

Install New ovh server has problems with Centminmod installation

Discussion in 'Install & Upgrades or Pre-Install Questions' started by pamamolf, Feb 23, 2016.

Tags:
  1. pamamolf

    pamamolf Premium Member Premium Member

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    4:39 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Hi

    I just got an ovh dedicated server and i have some issues installing latest Centminmod beta as root :

    Code:
    Error: Nothing to do
    cp: cannot create regular file ‘/usr/local/nginx/conf/sitestatus.conf’: No such file or directory
    cp: cannot create regular file ‘/usr/local/nginx/conf/maintenance.conf’: No such file or directory
    cp: cannot create regular file ‘/usr/local/nginx/conf/503include-main.conf’: No such file or directory
    cp: cannot create regular file ‘/usr/local/nginx/conf/503include-only.conf’: No such file or directory
    grep: /usr/local/nginx/conf/nginx.conf: No such file or directory
    sed: can't read /usr/local/nginx/conf/nginx.conf: No such file or directory
    no crontab for root
    0 */4 * * * /usr/bin/cminfo_updater
    i just run centmin.sh and then restart to get Selinux disabled and then i run it again and i got this error :(

    Is it safe to proceed with installation?

    I was check when i was install the server to use original kernel and not ovh kernel if this is related...and i am using also latest Centos 7.2...


    Code:
    [root@server ~]# cat /etc/redhat-release
    CentOS Linux release 7.2.1511 (Core)
    [root@server ~]# uname -r
    3.10.0-327.10.1.el7.x86_64
     
    Last edited: Feb 23, 2016
  2. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    10:39 AM
    Mainline
    10.2
    I think that you can disregard the error since you din run centmin install twice.
    I think it's just verification that centmin is not yet installed.
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    4:39 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Don't think so as it is the first time that i am getting this :(

    I run it and ask for restart to disable SElinux and then after restart i run it once.

    This is the way i did it always and never got any problem.....

    I will wait for @eva2000 to comment also and let's hope that we have a solution as ovh has good servers and i like to use Centminmod on all my servers :)
     
  4. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    10:39 AM
    Mainline
    10.2
    I encounter it earlier today also on fresh CentOS 7.2 server.
    And I still install Centminmod Fine.
     
  5. pamamolf

    pamamolf Premium Member Premium Member

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    4:39 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Ok so i will give it a try now and let's see :)
     
  6. pamamolf

    pamamolf Premium Member Premium Member

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    4:39 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    All working great with the setup :)

    But i have again the same issue with zendopcache admin php file that is not in /usr/local/nginx/html and i had to copy it from another server and put it there :(

    Maybe eva can double check this as it is second time for me and i am sure it is a bug :)
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,858
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    12:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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 ?
    • Method of install ? Via centmin.sh menu option 1, Git install or curl one liner install as outlined at centminmod.com/download.html ?
    • 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.
     
  8. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    10:39 AM
    Mainline
    10.2
    Can you please confirm this @eva2000 ?
    If its correct?
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,858
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    12:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    for
    Code:
    Error: Nothing to do
    cp: cannot create regular file ‘/usr/local/nginx/conf/sitestatus.conf’: No such file or directory
    cp: cannot create regular file ‘/usr/local/nginx/conf/maintenance.conf’: No such file or directory
    cp: cannot create regular file ‘/usr/local/nginx/conf/503include-main.conf’: No such file or directory
    cp: cannot create regular file ‘/usr/local/nginx/conf/503include-only.conf’: No such file or directory
    grep: /usr/local/nginx/conf/nginx.conf: No such file or directory
    sed: can't read /usr/local/nginx/conf/nginx.conf: No such file or directory
    no crontab for root
    0 */4 * * * /usr/bin/cminfo_updater
    no these should be shown any time as i hide them in 123.09beta01 - only would happen after install runs of centmin.sh, if nginx failed to install and thus /usr/local/nginx directories don't exist

    edit: okay yes from
    so yes you rebooted server before actual install of centminmod so yes twice would give this as nginx hasn't been installed yet

    you do not need to reboot for selinux if you use curl one liner install method or best to reboot and disable selinux before you ever run centmin.sh
     
  10. pamamolf

    pamamolf Premium Member Premium Member

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    4:39 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Dedicated server
    Latest 09 beta 01
    Fresh install
    Method:
    Code:
    cd /usr/local/src
    wget https://github.com/centminmod/centminmod/archive/123.09beta01.zip
    unzip 123.09beta01.zip
    cd centminmod-123.09beta01
    chmod +x centmin.sh
    ./centmin.sh
    At the time of posting a few hours back from now ...

    Using the above method i have always latest version with all changes/fixes :)

    Didn't know if SElinux was enable or not and i just start centmin.sh and the script recommend me to reboot and then re run it :)
     
  11. pamamolf

    pamamolf Premium Member Premium Member

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    4:39 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Another vps is up for centminmod tests :)

    So a vps with 1gb ram and Centos 7.2 64bit :)

    When i run centmin.sh i got:

    Code:
    Could not load host key: /etc/ssh/ssh_host_ed25519_key
    Don't know why....

    and

    Code:
    grep: /etc/sudoers.d/addpaths: No such file or directory
    Other than that all working great :)
     
  12. pamamolf

    pamamolf Premium Member Premium Member

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    4:39 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Also i want to recommend to have at the end of installation an output info related to zend opcache file/link as i can see only info for memcache and mysql root password :)
     
  13. eva2000

    eva2000 Administrator Staff Member

    54,858
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    12:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    do you only get that one time or everytime you run centmin.sh ? when does it occur ?
    do you only get that one time or everytime you run centmin.sh ? when does it occur ?
     
  14. eva2000

    eva2000 Administrator Staff Member

    54,858
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    12:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    just type
    Code (Text):
    php --ini
     
  15. eva2000

    eva2000 Administrator Staff Member

    54,858
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    12:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    also what linux kernel used ?
    Code (Text):
    uname -r


    also output for
    Code (Text):
    ls -lah /etc/ssh/ssh_host_ed25519_key
     
  16. pamamolf

    pamamolf Premium Member Premium Member

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    4:39 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    For both the answer is that i am getting it only the first time that i was run ./centmin.sh

    I know how to find it but first the file doesn't exist there and i have to copy it but i have already report this and i ask if it is possible when a user has enable the zendopcache the Centminmod installation to copy that file there (as it does with memcache) and to give some related info at the end of Centminmod installation (as it does with memcache).

    :)
     
  17. eva2000

    eva2000 Administrator Staff Member

    54,858
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    12:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Strange i always get that file created on my servers - how are you installing centmin mod ? which method of install centmin.sh menu option 1, git clone or curl installer.sh one liner ?
     
  18. pamamolf

    pamamolf Premium Member Premium Member

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    4:39 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Code:
    3.10.0-327.10.1.el7.x86_64
    and:
    Code:
    ls: cannot access /etc/ssh/ssh_host_ed25519_key: No such file or directory
    You know that i try to help don't get me wrong :) I don't complain :)

    It is a test vps so if you need access to check it just let me know :)
     
  19. eva2000

    eva2000 Administrator Staff Member

    54,858
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    12:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah I know thanks for bug reports

    strange my centos 7 servers have the file /etc/ssh/ssh_host_ed25519_key
    Code:
    ls -lah /etc/ssh/ssh_host_ed25519_key
    -rw-r----- 1 root ssh_keys 387 Jul 11  2015 /etc/ssh/ssh_host_ed25519_key
     
  20. pamamolf

    pamamolf Premium Member Premium Member

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    4:39 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Also i don't know if it is normal to get ignored redis 'n' options:

    Code:
    NGINX_HTTPREDIS='n'
    PHPREDIS='n'
    And i can see:
    Code:
    *************************************************
    * Installing redis PHP extension
    *************************************************
    Downloading redis PHP extension...
    Check if phpredis-2.2.7.tgz exists
    Compiling PHP redis-2.2.7 extension...
    /svr-setup
    cd /svr-setup