Join the community today
Register Now

Install No Nginx on fresh beta install

Discussion in 'Install & Upgrades or Pre-Install Questions' started by bruno, Dec 24, 2018.

  1. bruno

    bruno Member

    73
    6
    8
    Oct 14, 2016
    Ratings:
    +12
    Local Time:
    9:08 AM
    • CentOS Version: CentOS 7 64bit ?
    • Centmin Mod Version Installed: 123.09beta01
    • PHP Version Installed: 7.2

    Hi, so I booted up a fresh instance on EC2 and logged in via SSH, typed "sudo su" and copied over the one-line install script.

    When the script finished installing, Nginx dooes not exist. I tried running "nprestart" and got the following error:

    Code:
    Restarting nginx (via systemctl):  Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
                                                               [FAILED]
    Gracefully shutting down php-fpm kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
    ................................... failed. Use force-quit
    Starting php-fpm /etc/init.d/php-fpm: line 69: /usr/local/sbin/php-fpm: No such file or directory
     failed
    
    
    
    I also noticed these in the installation logs, don't know if they're related:

    Code:
    --------------------------------------------------------
    Check mysqlreport version:
    --------------------------------------------------------
    Can't locate DBI.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /root/mysqlreport line 25.
    BEGIN failed--compilation aborted at /root/mysqlreport line 25.
    
    --------------------------------------------------------
    Check pure-ftpd Version:
    --------------------------------------------------------
    which: no pure-ftpd in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    inc/centminfinish.inc: line 185: -h: command not found
    
    
    Do you have any idea why this could be? Any help would be greatly appreciated!

    I suspect it might have something to do with the Inbound Rules on AWS / EC2. This is the current setting, how should it be tweaked? Thanks!

    upload_2018-12-24_3-2-16.png
     
    Last edited: Dec 24, 2018
  2. eva2000

    eva2000 Administrator Staff Member

    37,710
    8,254
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,710
    Local Time:
    7:08 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    So with Amazon EC2 servers, you need to configure EC2 firewall security groups Authorizing Inbound Traffic for Your Linux Instances - Amazon Elastic Compute Cloud and Amazon EC2 Security Groups for Linux Instances - Amazon Elastic Compute Cloud. You can see CSF Firewall's minimal open port configuration which you may need to replicate on AWS EC2 security group firewall for inbound connections at CSF - Centmin Mod LEMP stack CSF Firewall default port listing

    Is this first time using AWS EC2 ? If so be aware EC2 bandwidth costs are expensive between US$90-120/TB so if you have a uncontrolled bandwidth spike to 10TB you'd be paying 10x90-120 = US$900 to US$1,200 for that !
     
  3. bruno

    bruno Member

    73
    6
    8
    Oct 14, 2016
    Ratings:
    +12
    Local Time:
    9:08 AM
    thanks for getting back to me! i've opened all inbound ports like so:

    upload_2018-12-24_9-51-17.png

    still can't get centminmod to install properly. do you have any suggestions?

    thank you!
     
  4. bruno

    bruno Member

    73
    6
    8
    Oct 14, 2016
    Ratings:
    +12
    Local Time:
    9:08 AM
    Just tried to run one-line install command on Google Cloud (where I usually host centminmod) and it has the same error. Could it be that there's an error with the script, or that one of the dependencies isn't loading properly?
     
  5. eva2000

    eva2000 Administrator Staff Member

    37,710
    8,254
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,710
    Local Time:
    7:08 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Well i haven't tested Centmin Mod on either Google Cloud or Amazon EC2 myself though others have. It is usually to do with the cloud provider's firewall.

    But to troubleshoot initial installs.

    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.9 or 7.4 ? 32bit or 64bit ?
    • What version of Centmin Mod ? .07 stable or 08 stable or .09 beta01 or another branch version ?
    • 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

    Example for 123.09beta01 and newer list /root/centminlogs files in date ascending order and grep for installer_*
    Code (Text):
    ls -lahrt /root/centminlogs | grep installer_*
    

    example output returns install log at /root/centminlogs both a the full log and minimal log (smaller in size with some stuff filtered out)
    Code (Text):
    ls -lahrt /root/centminlogs | grep installer_*
    -rw-r--r-- 1 root root 4.3M Jul 12 09:06 installer_120718-083445.log
    -rw-r--r-- 1 root root 826K Jul 12 10:20 installer_120718-083445_minimal.log
    


    Example for 123.08stable list /root/centminlogs files in date ascending order and grep for install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    

    example output returns install log at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    -rw-r--r--  1 root root 2.2M Oct 11 01:40 centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    in SSH use cat to ouput contents of /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log. Clear your SSH client window/buffer so only output is the contents of the file

    for 123.08stable
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    for 123.09beta01 and newer
    Code (Text):
    cat /root/centminlogs/installer_120718-083445_minimal.log
    


    Then copy and paste into Pastebin.com or Gists entry. If your SSH window scroll buffer isn't that large to get the whole contents of the install log, you can download file manually and copy and paste contents. But makes sure it's sanitised version of the contents of the initial install log as outlined at How to troubleshoot Centmin Mod initial install issues
     
..