Welcome to Centmin Mod Community
Become a Member

Install Nginx PHP-FPM PHP & Nginx Not Installed By Default.

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Varun, Apr 10, 2018.

  1. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:30 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    you can remove those log links now if you want

    i can see the problem, varnish cache yum repo link isn't working for your install - i just tested fresh 123.09beta01 install in Dallas, USA and it worked so maybe geographic network issues with your digitalocean region which region is your droplet in ? i see in log

    Code (Text):
    update varnish cache 4.1 yum repo config
    curl: (7) Failed connect to packagecloud.io:443; Connection timed out



    What output do you get when you type below commands
    Code (Text):
    curl -I "https://packagecloud.io/install/repositories/varnishcache/varnish41/config_file.repo?os=centos&dist=7&source=script"
    

    Code (Text):
    curl -Iv "https://packagecloud.io/install/repositories/varnishcache/varnish41/config_file.repo?os=centos&dist=7&source=script" 2>&1| grep -A10 'About to connect' 
    


    example output
    Code (Text):
    curl -I "https://packagecloud.io/install/repositories/varnishcache/varnish41/config_file.repo?os=centos&dist=7&source=script" 
    HTTP/1.1 200 OK
    Server: nginx
    Date: Tue, 10 Apr 2018 16:28:31 GMT
    Content-Type: text/repo; charset=utf-8
    Connection: keep-alive
    X-Frame-Options: SAMEORIGIN
    X-XSS-Protection: 1; mode=block
    X-Content-Type-Options: nosniff
    version: 9f1abc2
    ETag: W/"139622dd5c82767fcb5e4d18d5c50720"
    Cache-Control: max-age=0, private, must-revalidate
    X-Request-Id: 38a6eebf-999b-456d-8d0f-e7effe0cb2be
    X-Runtime: 0.076745
    Strict-Transport-Security: max-age=15552000; includeSubDomains
    

    Code (Text):
    curl -Iv "https://packagecloud.io/install/repositories/varnishcache/varnish41/config_file.repo?os=centos&dist=7&source=script" 2>&1| grep -A10 'About to connect' 
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* About to connect() to packagecloud.io port 443 (#0)
    *   Trying 2607:f0d0:2101:270::2...
    * Connected to packagecloud.io (2607:f0d0:2101:270::2) port 443 (#0)
    * Initializing NSS with certpath: sql:/etc/pki/nssdb
    *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
      CApath: none
    * SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
    * Server certificate:
    *       subject: CN=packagecloud.io,OU=EssentialSSL,OU=Domain Control Validated
    *       start date: Feb 01 00:00:00 2018 GMT
    *       expire date: Apr 01 23:59:59 2021 GMT
    

    For folks reading this message and yourself for posting code or output from commands to keep the formatting, you might want to use CODE tags for code How to use forum BBCODE code tags :)
     
  2. Varun

    Varun Member

    36
    2
    8
    Apr 6, 2018
    India, Tamil Nadu, Chennai
    Ratings:
    +3
    Local Time:
    6:00 PM
    1.13.11
    For the first cmd i got below response

    Code (Text):
     curl: (7) Failed to connect to 2607:f0d0:2101:270::2: Network is unreachable 


    For the second cmd i got the below reponse

    Code (Text):
    [16:38][root@jps.joeshop.co.uk ~]# curl -Iv "https://packagecloud.io/install/repositories/varnishcache/varnish41/config_file.repo?os=centos&dist=7&source=script                                                                             " 2>&1| grep -A10 'About to connect'
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* About to connect() to packagecloud.io port 443 (#0)
    *   Trying 50.97.198.58...
      0     0    0     0    0     0      0      0 --:--:--  0:00:15 --:--:--     0* Connection timed out
    *   Trying 2607:f0d0:2101:270::2...
    * Failed to connect to 2607:f0d0:2101:270::2: Network is unreachable
    * Failed connect to packagecloud.io:443; Network is unreachable
    * Closing connection 0
    curl: (7) Failed to connect to 2607:f0d0:2101:270::2: Network is unreachable
    
     
    Last edited: Apr 11, 2018
  3. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:30 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    what about
    Code (Text):
    curl -4Is "https://packagecloud.io/install/repositories/varnishcache/varnish41/config_file.repo?os=centos&dist=7&source=script"
    
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:30 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    it could be your server's dns resolver issues what's contents of /etc/resolv.conf ?
    Code (Text):
    cat /etc/resolv.conf
    

    and output for these commands
    Code (Text):
    dig A packagecloud.io +short
    dig AAAA packagecloud.io +short
    dig A google.com +short
    dig AAAA google.com +short
    ping -c4 packagecloud.io
    ping -c4 google.com
    ping6 -c4 packagecloud.io
    ping6 -c4 google.com
    
     
  5. Varun

    Varun Member

    36
    2
    8
    Apr 6, 2018
    India, Tamil Nadu, Chennai
    Ratings:
    +3
    Local Time:
    6:00 PM
    1.13.11
    Sorry About the delay

    Output for the cmd
    Code (Text):
     curl -4Is "https://packagecloud.io/install/repositories/varnishcache/varnish41/config_file.repo?os=centos&dist=7&source=script" 

    Nothing Just a blank Line ( http://s.svarun.in/pK )

    Output For
    Code (Text):
    cat /etc/resolv.conf

    Code (Text):
    [00:51][root@jps.joeshop.co.uk ~]# cat /etc/resolv.conf
    ; Created by cloud-init on instance boot automatically, do not edit.
    ;
    nameserver 67.207.67.2
    nameserver 67.207.67.3
    search joeshop.co.uk
    


    And the last CMDS
    Code (Text):
    dig A packagecloud.io +short
    dig AAAA packagecloud.io +short
    dig A google.com +short
    dig AAAA google.com +short
    ping -c4 packagecloud.io
    ping -c4 google.com
    ping6 -c4 packagecloud.io
    ping6 -c4 google.com
    



    Output :
    Code (Text):
    [00:52][root@jps.joeshop.co.uk ~]# dig A packagecloud.io +short
    50.97.198.58
    [00:52][root@jps.joeshop.co.uk ~]# dig AAAA packagecloud.io +short
    2607:f0d0:2101:270::2
    [00:52][root@jps.joeshop.co.uk ~]# dig A google.com +short
    216.58.206.46
    [00:52][root@jps.joeshop.co.uk ~]# dig AAAA google.com +short
    2a00:1450:4009:812::200e
    [00:52][root@jps.joeshop.co.uk ~]# ping -c4 packagecloud.io
    PING packagecloud.io (50.97.198.58) 56(84) bytes of data.
    
    --- packagecloud.io ping statistics ---
    4 packets transmitted, 0 received, 100% packet loss, time 3000ms
    
    [00:52][root@jps.joeshop.co.uk ~]# ping -c4 google.com
    PING google.com (216.58.213.110) 56(84) bytes of data.
    64 bytes from lhr25s02-in-f14.1e100.net (216.58.213.110): icmp_seq=1 ttl=57 time=1.84 ms
    64 bytes from lhr25s02-in-f14.1e100.net (216.58.213.110): icmp_seq=2 ttl=57 time=1.25 ms
    64 bytes from lhr25s02-in-f14.1e100.net (216.58.213.110): icmp_seq=3 ttl=57 time=1.31 ms
    64 bytes from lhr25s02-in-f14.1e100.net (216.58.213.110): icmp_seq=4 ttl=57 time=1.29 ms
    
    --- google.com ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3005ms
    rtt min/avg/max/mdev = 1.259/1.426/1.840/0.239 ms
    [00:52][root@jps.joeshop.co.uk ~]# ping6 -c4 packagecloud.io
    connect: Network is unreachable
    [00:52][root@jps.joeshop.co.uk ~]# ping6 -c4 google.com
    
    
     
  6. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:30 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    I'd contact do support and provide output of those commands you just posted and say packagecloud domain is not resolving with 100% packet loss and you want to double check is there's any issues on digitalocean end. Seems connecting to google was fine though.

    I have updated 123.09beta01 today to check packagecloud connectivity and skip it's setup of varnish cache yum repo if you can't connect. So you can try another fresh install too
     
  7. Varun

    Varun Member

    36
    2
    8
    Apr 6, 2018
    India, Tamil Nadu, Chennai
    Ratings:
    +3
    Local Time:
    6:00 PM
    1.13.11
    Hi,

    Thanks for your fast reply.

    I created a new droplet again and tried all the ping cmds there. (In the same datacenter)

    Code (Text):
    [01:34][root@jps.joeshop.co.uk ~]# dig A packagecloud.io +short
    50.97.198.58
    [01:34][root@jps.joeshop.co.uk ~]# dig AAAA packagecloud.io +short
    2607:f0d0:2101:270::2
    [01:34][root@jps.joeshop.co.uk ~]# dig A google.com +short
    216.58.206.46
    [01:34][root@jps.joeshop.co.uk ~]# dig AAAA google.com +short
    2a00:1450:4009:801::200e
    [01:34][root@jps.joeshop.co.uk ~]# ping -c4 packagecloud.io
    PING packagecloud.io (50.97.198.58) 56(84) bytes of data.
    
    --- packagecloud.io ping statistics ---
    4 packets transmitted, 0 received, 100% packet loss, time 3003ms
    
    [01:34][root@jps.joeshop.co.uk ~]# ping -c4 google.com
    PING google.com (216.58.206.46) 56(84) bytes of data.
    64 bytes from lhr35s10-in-f14.1e100.net (216.58.206.46): icmp_seq=1 ttl=55 time=1.78 ms
    64 bytes from lhr35s10-in-f14.1e100.net (216.58.206.46): icmp_seq=2 ttl=55 time=1.38 ms
    64 bytes from lhr35s10-in-f14.1e100.net (216.58.206.46): icmp_seq=3 ttl=55 time=1.36 ms
    64 bytes from lhr35s10-in-f14.1e100.net (216.58.206.46): icmp_seq=4 ttl=55 time=1.37 ms
    
    --- google.com ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3005ms
    rtt min/avg/max/mdev = 1.362/1.475/1.781/0.176 ms
    [01:34][root@jps.joeshop.co.uk ~]# ping6 -c4 packagecloud.io
    connect: Network is unreachable
    [01:34][root@jps.joeshop.co.uk ~]# ping6 -c4 google.com
    connect: Network is unreachable
    [01:34][root@jps.joeshop.co.uk ~]#
    


    DO you think it will workout ?
    Can you do a fresh install again ?
     
  8. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:30 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Looks like packagecloud is still getting 100% packet loss so on latest 123.09beta01 code varnish cache repo setup will be skipped but rest of centmin mod will install and run find if you don't need varnish cache repo.

    I have no problems with packagecloud on other web hosts so issue is with digitalocean so still may want to contact their tech support
     
  9. Varun

    Varun Member

    36
    2
    8
    Apr 6, 2018
    India, Tamil Nadu, Chennai
    Ratings:
    +3
    Local Time:
    6:00 PM
    1.13.11
    Hi

    I was successfully able to install CENTMIN MOD Stack and able to verify nginx and php version

    but is there any cmd to verify if it got fully installed. ?

    i have used the below cmd to install
    Code (Text):
    yum -y update; curl -O https://centminmod.com/betainstaller72.sh && chmod 0700 betainstaller72.sh && bash betainstaller72.sh
    
     
  10. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:30 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    the post install check list at end of initial install should list the main software installed and it's version numbers along with install times

    example here's Upcloud $20/mon 2 cpu Chicago KVM VPS with betainstaller71.sh for PHP 7.1.15 default
    Code (Text):
    yum -y update; curl -O https://centminmod.com/betainstaller71.sh && chmod 0700 betainstaller71.sh && bash betainstaller71.sh
    

    Code (Text):
    ---------------------------------------------------------------------------
    Total Curl Installer YUM or DNF Time: 216.0248 seconds
    Total YUM Time: 39.756138386 seconds
    Total YUM or DNF + Source Download Time: 60.3143
    Total Nginx First Time Install Time: 274.5870
    Total PHP First Time Install Time: 288.3554
    Download Zip From Github Time: 3.5494
    Total Time Other eg. source compiles: 316.5700
    Total Centmin Mod Install Time: 939.8267
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 1159.4009 seconds
    ---------------------------------------------------------------------------
          2  Intel(R) Xeon(R) CPU E5-2687W v4 @ 3.00GHz (2  2999.996 Mhz)
    ---------------------------------------------------------------------------
    

    Code (Text):
    *************************************************
    * Post-Install Check List....
    *************************************************
    
    --------------------------------------------------------
    Check ccache Version:
    --------------------------------------------------------
    ccache version 3.4.1
    
    Copyright (C) 2002-2007 Andrew Tridgell
    Copyright (C) 2009-2018 Joel Rosdahl
    
    This program is free software; you can redistribute it and/or modify it under
    the terms of the GNU General Public License as published by the Free Software
    Foundation; either version 3 of the License, or (at your option) any later
    version.
    
    --------------------------------------------------------
    Check Nginx Version:
    --------------------------------------------------------
    nginx version: nginx/1.13.10
    built by gcc 7.2.1 20170829 (Red Hat 7.2.1-1) (GCC)
    built with OpenSSL 1.1.0h  27 Mar 2018
    TLS SNI support enabled
    configure arguments: --with-ld-opt='-ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-m64 -march=native -DTCP_FASTOPEN=23 -g -O3 -fstack-protector-strong -flto -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wimplicit-fallthrough=0 -fcode-hoisting -Wp,-D_FORTIFY_SOURCE=2 -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-stream=dynamic --with-stream_ssl_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.2 --add-module=../ngx_cache_purge-2.4.2 --add-module=../ngx_devel_kit-0.3.0 --add-dynamic-module=../set-misc-nginx-module-0.31 --add-dynamic-module=../echo-nginx-module-0.61 --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-dynamic-module=../headers-more-nginx-module-0.33 --with-pcre=../pcre-8.42 --with-pcre-jit --with-zlib=../zlib-cloudflare-1.3.0 --with-http_ssl_module --with-http_v2_module --with-openssl=../openssl-1.1.0h --with-openssl-opt='enable-ec_nistp_64_gcc_128'
    
    --------------------------------------------------------
    Check PHP-FPM Version:
    --------------------------------------------------------
    PHP 7.1.15 (cli) (built: Mar 28 2018 04:07:45) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
        with Zend OPcache v7.1.15, Copyright (c) 1999-2018, by Zend Technologies
    
    --------------------------------------------------------
    Check MariaDB installed RPM Versions:
    --------------------------------------------------------
    MariaDB-common-10.1.32-1.el7.centos.x86_64
    MariaDB-devel-10.1.32-1.el7.centos.x86_64
    MariaDB-client-10.1.32-1.el7.centos.x86_64
    MariaDB-shared-10.1.32-1.el7.centos.x86_64
    MariaDB-compat-10.1.32-1.el7.centos.x86_64
    MariaDB-server-10.1.32-1.el7.centos.x86_64
    
    --------------------------------------------------------
    Check Memcached Server Version:
    --------------------------------------------------------
    memcached 1.5.6
    
    --------------------------------------------------------
    Check CSF Firewall Version:
    --------------------------------------------------------
    csf: v12.01 (generic)
    
    --------------------------------------------------------
    Check Siege Benchmark Version:
    --------------------------------------------------------
    SIEGE 4.0.4
    
    Copyright (C) 2017 by Jeffrey Fulmer, et al.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS
    FOR A PARTICULAR PURPOSE.
    
    
    --------------------------------------------------------
    Check mysqlreport version:
    --------------------------------------------------------
    mysqlreport v3.5-maria11 Jul 4 2013
    
    --------------------------------------------------------
    Check pure-ftpd Version:
    --------------------------------------------------------
    pure-ftpd v1.0.42
    
    --------------------------------------------------------
    Check YUM Repo List
    --------------------------------------------------------
    Loaded plugins: fastestmirror, priorities, versionlock
    Loading mirror speeds from cached hostfile
     * base: mirrors.usinternet.com
     * epel: mirror.steadfast.net
     * extras: mirrors.usinternet.com
     * rpmforge: mirror.team-cymru.org
     * updates: mirrors.usinternet.com
    234 packages excluded due to repository priority protections
    repo id                        repo name                             status
    base/7/x86_64                  CentOS-7 - Base                       7,420+2,171
    centos-sclo-rh/x86_64          CentOS-7 - SCLo rh                       6,765+94
    centos-sclo-sclo/x86_64        CentOS-7 - SCLo sclo                          515
    epel/x86_64                    Extra Packages for Enterprise Linux 7  11,522+927
    extras/7/x86_64                CentOS-7 - Extras                             446
    mariadb                        MariaDB                                      30+2
    rpmforge                       RHEL 7 - RPMforge.net - dag               135+110
    updates/7/x86_64               CentOS-7 - Updates                      1,886+530
    !varnishcache_varnish41/x86_64 varnishcache_varnish41                         46
    !varnishcache_varnish41-source varnishcache_varnish41-source                   0
    repolist: 28,765
    
    --------------------------------------------------------
    mytimes check:
    /usr/bin/mytimes
    --------------------------------------------------------
    Wed Mar 28 04:11:29 UTC 2018  [UTC]
    Wed Mar 28 14:11:29 AEST 2018   [Australia/Brisbane]
    Tue Mar 27 21:11:29 PDT 2018    [America/Los_Angeles]
    Tue Mar 27 23:11:29 CDT 2018    [America/Chicago]
    Wed Mar 28 00:11:29 EDT 2018    [America/New_York]
    Wed Mar 28 00:11:29 EDT 2018    [America/Montreal]
    Wed Mar 28 05:11:29 BST 2018    [Europe/London]
    Wed Mar 28 06:11:29 CEST 2018   [Europe/Berlin]
    Wed Mar 28 11:11:29 +07 2018    [Asia/Bangkok]
    Wed Mar 28 11:11:29 +07 2018    [Asia/Ho_Chi_Minh]
    Wed Mar 28 11:11:29 WIB 2018    [Asia/Jakarta]
    Wed Mar 28 12:11:29 +08 2018    [Asia/Kuala_Lumpur]
    Wed Mar 28 12:11:29 +08 2018    [Asia/Singapore]
    --------------------------------------------------------
    
     
  11. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:30 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    @Varun looks like you're not the only person who is having packagecloud.io connectivity issues with DigitalOcean web host as @MakeShyft seems to report the same issue at Installer stalls · Issue #109 · centminmod/centminmod. I have thus disabled Varnish Cache yum repo setup by default with new default variable VARNISHREPO_DISABLE='y' on new 123.09beta01 installs until I can figure out why DigitalOcean is having connectivity issues to packagecloud.io.
     
  12. Varun

    Varun Member

    36
    2
    8
    Apr 6, 2018
    India, Tamil Nadu, Chennai
    Ratings:
    +3
    Local Time:
    6:00 PM
    1.13.11
    @eva2000
    Thanks for the update. if there is anything if i could support please let me know.