Get the most out of your Centmin Mod LEMP stack
Become a Member

Install unsucessfully, Nginx,php……

Discussion in 'Install & Upgrades or Pre-Install Questions' started by jellday, Jul 7, 2018.

  1. jellday

    jellday Member

    44
    3
    8
    May 31, 2014
    Ratings:
    +5
    Local Time:
    9:21 AM
    1.4.6
    5.5
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 6.9 64Bit
    • Centmin Mod Version Installed: 123.08stable
    • Post output in CODE tags.
    Yep, me again, I thought I solved the problem, but after the installation, I got "command not found" error for nginx and php also csf not installed properly. I reload the OS and installed again and same errors.
    Here is the log:
    gist:84189daa77bcf7e6a0c2738a77a9a108
     
  2. eva2000

    eva2000 Administrator Staff Member

    36,905
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,436
    Local Time:
    11:21 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    might be related to your servers IPv6 networking not working properly causing varnish cache yum repo to fail to install and thus messing up other yum repo package installs
    Code (Text):
    https://packagecloud.io/varnishcache/varnish41/el/6/x86_64/repodata/8751c67d0f66d3e1b786645edbd3c73953e214b4-primary.xml.gz: [Errno 14] PYCURL ERROR 7 - "Failed to connect to 2600:1fa0:c040:90:36e7:ec2c::: Network is unreachable"
    Trying other mirror.
    Error: failure: repodata/8751c67d0f66d3e1b786645edbd3c73953e214b4-primary.xml.gz from varnishcache_varnish41: [Errno 256] No more mirrors to try.
    Loaded plugins: fastestmirror, security
    

    Centmin Mod 123.09beta01 and higher manages these failures much better than Centmin Mod 123.08stable.

    Though not seeing that IPv6 ip in AAAA records for packagecloud.io
    Code (Text):
    curl -Ivs https://packagecloud.io/varnishcache/varnish41/el/6/x86_64/repodata/8751c67d0f66d3e1b786645edbd3c73953e214b4-primary.xml.gz 2>&1 | grep Connected
    * Connected to packagecloud.io (2607:f0d0:2101:270::2) port 443 (#0)
    


    But php is source compiled and not done via yum but you seem to have issues download and corrupting downloads - is this same server as before ? i'd spin up an hourly vultr, linode or digitocean vps and try centos 6.9/6.10 on that for a quick hour and see if it works - i have tested 123.08stable recently and installs fine too. Problem might be with your specific server
    Code (Text):
    (B[m
    [1;33;40mDownload php-5.5.38.tar.gz ...
    (B[m2018-07-07 15:08:42 URL:http://php.net/distributions/php-5.5.38.tar.gz [17785731/17785731] -> "mirror" [1]
    [1;33;40mDownload done.
    (B[mtar (child): php-5.5.38.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    [1;32;40mError: php-5.5.38.tar.gz extraction failed.
    
     
  3. jellday

    jellday Member

    44
    3
    8
    May 31, 2014
    Ratings:
    +5
    Local Time:
    9:21 AM
    1.4.6
    5.5
    Thanks a lot. I think you are right. It is the same VPS that located in China and it does seem to have problems causing corrupted files.
    So other than change to other VPS, any other solutions? I have to manually download these files beforehand?
     
  4. eva2000

    eva2000 Administrator Staff Member

    36,905
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,436
    Local Time:
    11:21 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Tried using 123.09beta01 installer ? It doesn't use centmin mod zip file install anymore but uses github sourced files Centmin Mod LEMP Stack Install Nginx on CentOS though github isn't that well performing in China IIRC

    But with 123.09beta01 there's a tool that might help at /usr/local/src/centminmod/tools/centminmod_packager.sh if you run it on an existing installed 123.09beta01 server, it will package up all current downloaded source files at /svr-setup into a zip file like /home/centminmod_pkg-080718-023308.zip
    Code (Text):
    ./tools/centminmod_packager.sh
    
    zip up package directory /home/centminmod_pkg
    
    real    0m7.195s
    user    0m6.876s
    sys     0m0.315s
    
    drwxr-xr-x  2 root  root  4.0K Jul  8 02:33 centminmod_pkg
    -rw-r--r--  1 root  root  171M Jul  8 02:33 centminmod_pkg-080718-023308.zip
    
    packaging completed
    saved package to /home/centminmod_pkg-080718-023308.zip
    

    You can then transfer that file /home/centminmod_pkg-080718-023308.zip over to another server i.e. one with bad connectivity and extract contents to /svr-setup before running centmin install for 123.09beta01. But it won't help if the issue is yum mirror connectivity issues as that is outside of centmin mod control.

    123.09beta01 installer
    Code (Text):
    yum -y update; curl -O https://centminmod.com/betainstaller.sh && chmod 0700 betainstaller.sh && bash betainstaller.sh
    
     
  5. jellday

    jellday Member

    44
    3
    8
    May 31, 2014
    Ratings:
    +5
    Local Time:
    9:21 AM
    1.4.6
    5.5
    Yep, betainstaller seems working fine now. How do I check if everything is working fine after the installation? If there is a script to run?
     
  6. eva2000

    eva2000 Administrator Staff Member

    36,905
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,436
    Local Time:
    11:21 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    end of install there's a post install check list of versions it runs through in 123.09beta01
     
..