Learn about Centmin Mod LEMP Stack today
Register Now

Install betainstaller73.sh not getting curl'ed

Discussion in 'Install & Upgrades or Pre-Install Questions' started by deschlong, Jul 23, 2019.

  1. deschlong

    deschlong New Member

    26
    5
    3
    Mar 1, 2018
    Ratings:
    +8
    Local Time:
    11:45 PM
    1.15
    10.1
    Hello,

    I'm trying to execute this script:

    Code:
    #!/bin/bash
    # create initial persistent config file to override centmin.sh defaults
    # https://centminmod.com/upgrade.html#persistent
    mkdir -p /etc/centminmod
    touch /etc/centminmod/custom_config.inc
    
    # SET_DEFAULT_MYSQLCHARSET='utf8mb4' to override MariaDB MySQL
    # default characterset and collation from default utf8 to utf8mb4
    # https://community.centminmod.com/threads/17949/
    echo "SET_DEFAULT_MYSQLCHARSET='utf8mb4'" >> /etc/centminmod/custom_config.inc
    
    # enable nginx backlog override https://community.centminmod.com/threads/17620/
    echo "AUTOHARDTUNE_NGINXBACKLOG='y'" >> /etc/centminmod/custom_config.inc
    
    # enable zstd compressed logrotation for nginx & php-fpm https://community.centminmod.com/threads/16374/
    echo "ZSTD_LOGROTATE_NGINX='y'" >> /etc/centminmod/custom_config.inc
    echo "ZSTD_LOGROTATE_PHPFPM='y'" >> /etc/centminmod/custom_config.inc
    
    # enable nginx zero downtime on the fly nginx binary upgrades https://community.centminmod.com/threads/8000/
    #echo "NGINX_ZERODT='y'" >> /etc/centminmod/custom_config.inc
    
    # enable brotli compression https://community.centminmod.com/threads/10688/
    echo "NGINX_LIBBROTLI='y'" >> /etc/centminmod/custom_config.inc
    echo "NGXDYNAMIC_BROTLI='y'" >> /etc/centminmod/custom_config.inc
    
    # boost PHP 7 performance by enabling Profile Guided Optimisation flag
    # https://centminmod.com/perf/
    echo "PHP_PGO='y'" >> /etc/centminmod/custom_config.inc
    
    # php compression extensions https://community.centminmod.com/posts/70777/
    echo "PHP_BROTLI='y'" >> /etc/centminmod/custom_config.inc
    echo "PHP_LZFOUR='y'" >> /etc/centminmod/custom_config.inc
    echo "PHP_LZF='y'" >> /etc/centminmod/custom_config.inc
    echo "PHP_ZSTD='y'" >> /etc/centminmod/custom_config.inc
    
    # install centmin mod latest beta with php-fpm 7.2 default
    # https://community.centminmod.com/threads/centmin-mod-09-beta-branch-testing.4128/
    yum -y update; curl -O https://centminmod.com/betainstaller73.sh && chmod 0700 betainstaller73.sh && bash betainstaller73.sh
    
    # enable letsencrypt ssl certificate + dual RSA+ECDSA ssl certs https://centminmod.com/acmetool/
    echo "LETSENCRYPT_DETECT='y'" >> /etc/centminmod/custom_config.inc
    echo "DUALCERTS='y'" >> /etc/centminmod/custom_config.inc
    
    # install and configure auditd https://community.centminmod.com/posts/37680/
    echo "AUDITD_ENABLE='y'" >> /etc/centminmod/custom_config.inc
    /usr/local/src/centminmod/tools/auditd.sh setup
    
    # setup extended CSF Firewall blocklists https://community.centminmod.com/posts/50060/
    /usr/local/src/centminmod/tools/csf-advancetweaks.sh
    
    # enable CSF Firewall native fail2ban like support
    # https://community.centminmod.com/posts/62343/
    csf --profile backup backup-b4-customregex
    cp -a /usr/local/csf/bin/regex.custom.pm /usr/local/csf/bin/regex.custom.pm.bak
    egrep 'CUSTOM1_LOG|CUSTOM2_LOG|CUSTOM3_LOG|CUSTOM4_LOG' /etc/csf/csf.conf
    sed -i "s|CUSTOM1_LOG = .*|CUSTOM1_LOG = \"/home/nginx/domains/\*/log/access.log\"|" /etc/csf/csf.conf
    sed -i "s|CUSTOM2_LOG = .*|CUSTOM2_LOG = \"/home/nginx/domains/\*/log/error.log\"|" /etc/csf/csf.conf
    sed -i "s|CUSTOM3_LOG = .*|CUSTOM3_LOG = \"/var/log/nginx/localhost.access.log\"|" /etc/csf/csf.conf
    sed -i "s|CUSTOM4_LOG = .*|CUSTOM4_LOG = \"/var/log/nginx/localhost.error.log\"|" /etc/csf/csf.conf
    egrep 'CUSTOM1_LOG|CUSTOM2_LOG|CUSTOM3_LOG|CUSTOM4_LOG' /etc/csf/csf.conf
    wget -O /usr/local/csf/bin/regex.custom.pm https://gist.github.com/centminmod/f5551b92b8aba768c3b4db84c57e756d/raw/regex.custom.pm
    csf -ra
    
    
    But I noticed, that:

    Code:
    curl -O https://centminmod.com/betainstaller73.sh
    
    Isn't downloading anything?!
    Screenshot_4.png
     
  2. eva2000

    eva2000 Administrator Staff Member

    46,179
    10,499
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,278
    Local Time:
    8:45 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    what do you get for following commands
    Code (Text):
    curl -Iv https://centminmod.com/betainstaller73.sh
    

    Code (Text):
    curl -4Iv https://centminmod.com/betainstaller73.sh
    

    Code (Text):
    curl -6Iv https://centminmod.com/betainstaller73.sh
    

    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 :)
     
  3. deschlong

    deschlong New Member

    26
    5
    3
    Mar 1, 2018
    Ratings:
    +8
    Local Time:
    11:45 PM
    1.15
    10.1
    Code:
    [root@server]-[~] #: curl -Iv https://centminmod.com/betainstaller73.sh
    * About to connect() to centminmod.com port 443 (#0)
    *   Trying 2606:4700:10::6814:e755...
    * Connected to centminmod.com (2606:4700:10::6814:e755) 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_ECDSA_WITH_AES_128_GCM_SHA256
    * Server certificate:
    *       subject: CN=centminmod.com,O="CloudFlare, Inc.",L=San Francisco,ST=CA,C=US
    *       start date: Apr 10 00:00:00 2019 GMT
    *       expire date: Apr 10 12:00:00 2020 GMT
    *       common name: centminmod.com
    *       issuer: CN=CloudFlare Inc ECC CA-2,O="CloudFlare, Inc.",L=San Francisco,ST=CA,C=US
    > HEAD /betainstaller73.sh HTTP/1.1
    > User-Agent: curl/7.29.0
    > Host: centminmod.com
    > Accept: */*
    >
    < HTTP/1.1 200 OK
    HTTP/1.1 200 OK
    < Date: Tue, 23 Jul 2019 11:13:29 GMT
    Date: Tue, 23 Jul 2019 11:13:29 GMT
    < Content-Type: application/octet-stream
    Content-Type: application/octet-stream
    < Content-Length: 0
    Content-Length: 0
    < Connection: keep-alive
    Connection: keep-alive
    < Set-Cookie: __cfduid=d39e89005464fa6fc4f4c9f55d77e10dc1563880409; expires=Wed, 22-Jul-20 11:13:29 GMT; path=/; domain=.centminmod.com; HttpOnly
    Set-Cookie: __cfduid=d39e89005464fa6fc4f4c9f55d77e10dc1563880409; expires=Wed, 22-Jul-20 11:13:29 GMT; path=/; domain=.centminmod.com; HttpOnly
    < Last-Modified: Mon, 22 Jul 2019 16:05:11 GMT
    Last-Modified: Mon, 22 Jul 2019 16:05:11 GMT
    < ETag: "5d35deb7-0"
    ETag: "5d35deb7-0"
    < X-Powered-By: centminmod
    X-Powered-By: centminmod
    < X-Frame-Options: SAMEORIGIN
    X-Frame-Options: SAMEORIGIN
    < X-Xss-Protection: 1; mode=block
    X-Xss-Protection: 1; mode=block
    < X-Content-Type-Options: nosniff
    X-Content-Type-Options: nosniff
    < Link: </fonts/fontawesome-webfont.woff2?v=4.3.0>; rel=preload; as=font; crossorigin; false
    Link: </fonts/fontawesome-webfont.woff2?v=4.3.0>; rel=preload; as=font; crossorigin; false
    < Link: </fonts-local/Arimo_400.woff2>; rel=preload; as=font; crossorigin; false
    Link: </fonts-local/Arimo_400.woff2>; rel=preload; as=font; crossorigin; false
    < Link: </fonts/icomoon-set8.woff2?s8gaml>; rel=preload; as=font; crossorigin; false
    Link: </fonts/icomoon-set8.woff2?s8gaml>; rel=preload; as=font; crossorigin; false
    < Link: </fonts/glyphicons-halflings-regular.woff2>; rel=preload; as=font; crossorigin; false
    Link: </fonts/glyphicons-halflings-regular.woff2>; rel=preload; as=font; crossorigin; false
    < CWND: 19
    CWND: 19
    < CSID: 104.238.170.208
    CSID: 104.238.170.208
    < CRTT: 1000
    CRTT: 1000
    < CRQT: 0.000
    CRQT: 0.000
    < Link: <https://centminmod.com/betainstaller73.sh>; rel="canonical"
    Link: <https://centminmod.com/betainstaller73.sh>; rel="canonical"
    < CF-Cache-Status: HIT
    CF-Cache-Status: HIT
    < Age: 68726
    Age: 68726
    < Expires: Sat, 27 Jul 2019 11:13:29 GMT
    Expires: Sat, 27 Jul 2019 11:13:29 GMT
    < Cache-Control: public, max-age=345600
    Cache-Control: public, max-age=345600
    < Accept-Ranges: bytes
    Accept-Ranges: bytes
    < Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    < Server: cloudflare
    Server: cloudflare
    < CF-RAY: 4fad39acfb3dc2c7-FRA
    CF-RAY: 4fad39acfb3dc2c7-FRA
    
    <
    * Connection #0 to host centminmod.com left intact
    
    Code:
    [root@server]-[~] #: curl -4Iv https://centminmod.com/betainstaller73.sh
    * About to connect() to centminmod.com port 443 (#0)
    *   Trying 104.20.230.85...
    * Connected to centminmod.com (104.20.230.85) 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_ECDSA_WITH_AES_128_GCM_SHA256
    * Server certificate:
    *       subject: CN=centminmod.com,O="CloudFlare, Inc.",L=San Francisco,ST=CA,C=US
    *       start date: Apr 10 00:00:00 2019 GMT
    *       expire date: Apr 10 12:00:00 2020 GMT
    *       common name: centminmod.com
    *       issuer: CN=CloudFlare Inc ECC CA-2,O="CloudFlare, Inc.",L=San Francisco,ST=CA,C=US
    > HEAD /betainstaller73.sh HTTP/1.1
    > User-Agent: curl/7.29.0
    > Host: centminmod.com
    > Accept: */*
    >
    < HTTP/1.1 200 OK
    HTTP/1.1 200 OK
    < Date: Tue, 23 Jul 2019 11:14:19 GMT
    Date: Tue, 23 Jul 2019 11:14:19 GMT
    < Content-Type: application/octet-stream
    Content-Type: application/octet-stream
    < Content-Length: 0
    Content-Length: 0
    < Connection: keep-alive
    Connection: keep-alive
    < Set-Cookie: __cfduid=dd36a5f1f3873dbcc6f2d8bf33b9cdce01563880459; expires=Wed, 22-Jul-20 11:14:19 GMT; path=/; domain=.centminmod.com; HttpOnly
    Set-Cookie: __cfduid=dd36a5f1f3873dbcc6f2d8bf33b9cdce01563880459; expires=Wed, 22-Jul-20 11:14:19 GMT; path=/; domain=.centminmod.com; HttpOnly
    < Last-Modified: Mon, 22 Jul 2019 16:05:11 GMT
    Last-Modified: Mon, 22 Jul 2019 16:05:11 GMT
    < ETag: "5d35deb7-0"
    ETag: "5d35deb7-0"
    < X-Powered-By: centminmod
    X-Powered-By: centminmod
    < X-Frame-Options: SAMEORIGIN
    X-Frame-Options: SAMEORIGIN
    < X-Xss-Protection: 1; mode=block
    X-Xss-Protection: 1; mode=block
    < X-Content-Type-Options: nosniff
    X-Content-Type-Options: nosniff
    < Link: </fonts/fontawesome-webfont.woff2?v=4.3.0>; rel=preload; as=font; crossorigin; false
    Link: </fonts/fontawesome-webfont.woff2?v=4.3.0>; rel=preload; as=font; crossorigin; false
    < Link: </fonts-local/Arimo_400.woff2>; rel=preload; as=font; crossorigin; false
    Link: </fonts-local/Arimo_400.woff2>; rel=preload; as=font; crossorigin; false
    < Link: </fonts/icomoon-set8.woff2?s8gaml>; rel=preload; as=font; crossorigin; false
    Link: </fonts/icomoon-set8.woff2?s8gaml>; rel=preload; as=font; crossorigin; false
    < Link: </fonts/glyphicons-halflings-regular.woff2>; rel=preload; as=font; crossorigin; false
    Link: </fonts/glyphicons-halflings-regular.woff2>; rel=preload; as=font; crossorigin; false
    < CWND: 19
    CWND: 19
    < CSID: 104.238.170.208
    CSID: 104.238.170.208
    < CRTT: 1000
    CRTT: 1000
    < CRQT: 0.000
    CRQT: 0.000
    < Link: <https://centminmod.com/betainstaller73.sh>; rel="canonical"
    Link: <https://centminmod.com/betainstaller73.sh>; rel="canonical"
    < CF-Cache-Status: HIT
    CF-Cache-Status: HIT
    < Age: 68776
    Age: 68776
    < Expires: Sat, 27 Jul 2019 11:14:19 GMT
    Expires: Sat, 27 Jul 2019 11:14:19 GMT
    < Cache-Control: public, max-age=345600
    Cache-Control: public, max-age=345600
    < Accept-Ranges: bytes
    Accept-Ranges: bytes
    < Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    < Server: cloudflare
    Server: cloudflare
    < CF-RAY: 4fad3ae7fc93c28b-FRA
    CF-RAY: 4fad3ae7fc93c28b-FRA
    
    <
    * Connection #0 to host centminmod.com left intact
    

    Code:
    [root@server]-[~] #: curl -6Iv https://centminmod.com/betainstaller73.sh
    * About to connect() to centminmod.com port 443 (#0)
    *   Trying 2606:4700:10::6814:e755...
    * Connected to centminmod.com (2606:4700:10::6814:e755) 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_ECDSA_WITH_AES_128_GCM_SHA256
    * Server certificate:
    *       subject: CN=centminmod.com,O="CloudFlare, Inc.",L=San Francisco,ST=CA,C=US
    *       start date: Apr 10 00:00:00 2019 GMT
    *       expire date: Apr 10 12:00:00 2020 GMT
    *       common name: centminmod.com
    *       issuer: CN=CloudFlare Inc ECC CA-2,O="CloudFlare, Inc.",L=San Francisco,ST=CA,C=US
    > HEAD /betainstaller73.sh HTTP/1.1
    > User-Agent: curl/7.29.0
    > Host: centminmod.com
    > Accept: */*
    >
    < HTTP/1.1 200 OK
    HTTP/1.1 200 OK
    < Date: Tue, 23 Jul 2019 11:14:40 GMT
    Date: Tue, 23 Jul 2019 11:14:40 GMT
    < Content-Type: application/octet-stream
    Content-Type: application/octet-stream
    < Content-Length: 0
    Content-Length: 0
    < Connection: keep-alive
    Connection: keep-alive
    < Set-Cookie: __cfduid=d330d47766cdf4347d292f7302feb7a011563880480; expires=Wed, 22-Jul-20 11:14:40 GMT; path=/; domain=.centminmod.com; HttpOnly
    Set-Cookie: __cfduid=d330d47766cdf4347d292f7302feb7a011563880480; expires=Wed, 22-Jul-20 11:14:40 GMT; path=/; domain=.centminmod.com; HttpOnly
    < Last-Modified: Mon, 22 Jul 2019 16:05:11 GMT
    Last-Modified: Mon, 22 Jul 2019 16:05:11 GMT
    < ETag: "5d35deb7-0"
    ETag: "5d35deb7-0"
    < X-Powered-By: centminmod
    X-Powered-By: centminmod
    < X-Frame-Options: SAMEORIGIN
    X-Frame-Options: SAMEORIGIN
    < X-Xss-Protection: 1; mode=block
    X-Xss-Protection: 1; mode=block
    < X-Content-Type-Options: nosniff
    X-Content-Type-Options: nosniff
    < Link: </fonts/fontawesome-webfont.woff2?v=4.3.0>; rel=preload; as=font; crossorigin; false
    Link: </fonts/fontawesome-webfont.woff2?v=4.3.0>; rel=preload; as=font; crossorigin; false
    < Link: </fonts-local/Arimo_400.woff2>; rel=preload; as=font; crossorigin; false
    Link: </fonts-local/Arimo_400.woff2>; rel=preload; as=font; crossorigin; false
    < Link: </fonts/icomoon-set8.woff2?s8gaml>; rel=preload; as=font; crossorigin; false
    Link: </fonts/icomoon-set8.woff2?s8gaml>; rel=preload; as=font; crossorigin; false
    < Link: </fonts/glyphicons-halflings-regular.woff2>; rel=preload; as=font; crossorigin; false
    Link: </fonts/glyphicons-halflings-regular.woff2>; rel=preload; as=font; crossorigin; false
    < CWND: 19
    CWND: 19
    < CSID: 104.238.170.208
    CSID: 104.238.170.208
    < CRTT: 1000
    CRTT: 1000
    < CRQT: 0.000
    CRQT: 0.000
    < Link: <https://centminmod.com/betainstaller73.sh>; rel="canonical"
    Link: <https://centminmod.com/betainstaller73.sh>; rel="canonical"
    < CF-Cache-Status: HIT
    CF-Cache-Status: HIT
    < Age: 68797
    Age: 68797
    < Expires: Sat, 27 Jul 2019 11:14:40 GMT
    Expires: Sat, 27 Jul 2019 11:14:40 GMT
    < Cache-Control: public, max-age=345600
    Cache-Control: public, max-age=345600
    < Accept-Ranges: bytes
    Accept-Ranges: bytes
    < Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    < Server: cloudflare
    Server: cloudflare
    < CF-RAY: 4fad3b686fb6c2fe-FRA
    CF-RAY: 4fad3b686fb6c2fe-FRA
    
    <
    * Connection #0 to host centminmod.com left intact
    
     
  4. eva2000

    eva2000 Administrator Staff Member

    46,179
    10,499
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,278
    Local Time:
    8:45 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    nothing wrong on centminmod.com end, i see you only ran half of the command the install command is
    Code (Text):
    yum -y update; curl -O https://centminmod.com/betainstaller73.sh && chmod 0700 betainstaller73.sh && bash betainstaller73.sh
    
     
  5. deschlong

    deschlong New Member

    26
    5
    3
    Mar 1, 2018
    Ratings:
    +8
    Local Time:
    11:45 PM
    1.15
    10.1
    Sorry, forgot to mention that I only outlined the command which caused issues for me. I definitely tried the whole command, but I noticed that setting the permission for the installer didnt work because the file wasnt found.

    I tried again to curl the betainstaller73.sh and voila:
    Screenshot_5.png

    Seems like its working now :)

    Edit: Yep, working now! My install script runs fine now.
     
  6. eva2000

    eva2000 Administrator Staff Member

    46,179
    10,499
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,278
    Local Time:
    8:45 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    good to hear :)