Discover Centmin Mod today
Register Now

SSH got disconnected midway during installation of centminmod

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by radbrad, Aug 8, 2020.

  1. radbrad

    radbrad Member

    34
    3
    8
    Feb 15, 2020
    Ratings:
    +4
    Local Time:
    11:12 AM
    • CentOS Version: CentOS 7 64bit ?
    • Centmin Mod Version Installed:123.09beta01
    • Nginx Version Installed: i.e. 1.15.3
    • PHP Version Installed: ] 7.2.9
    • MariaDB MySQL Version Installed: 10.2.xx

      Hi @eva2000 , I faced an internet cut midway during the installation of centminmod onto my VPS.
      I eventually ran the installation code again
      Code:
      yum -y update; curl -O https://centminmod.com/betainstaller73.sh && chmod 0700 betainstaller73.sh && bash betainstaller73.sh
      This time i got the following

      Code:
      Loaded plugins: fastestmirror, priorities, versionlock
      Loading mirror speeds from cached hostfile
       * base: mirror.newmediaexpress.com
       * centos-sclo-rh: mirror.newmediaexpress.com
       * centos-sclo-sclo: mirror.newmediaexpress.com
       * epel: hkg.mirror.rackspace.com
       * extras: mirror.newmediaexpress.com
       * rpmforge: mirror.poliwangi.ac.id
       * updates: mirror.newmediaexpress.com
      328 packages excluded due to repository priority protections
      No packages marked for update
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100 62358  100 62358    0     0   121k      0 --:--:-- --:--:-- --:--:--  121k
      The date/time is now:
      Sat Aug  8 07:26:15 UTC 2020
      
      Check for existing mariadb packages
      
      Check for existing mariadb-libs package
      
      Check for existing MySQL-shared-compat
      Loaded plugins: fastestmirror, priorities, versionlock
      Cleaning repos: base centos-sclo-rh centos-sclo-sclo epel extras
                    : google-cloud-sdk google-compute-engine mariadb
                    : percona-release-x86_64 rpmforge updates
      Cleaning up list of fastest mirrors
      Other repos take up 16 M of disk space (use --verbose for details)
      Download axel-2.16.1.tar.gz ...
      Axel 2.16.1 Archive found, skipping download...
      axel-2.16.1.tar.gz valid file.
      
      checking for a BSD-compatible install... /bin/install -c
      checking whether build environment is sane... yes
      checking for a thread-safe mkdir -p... /bin/mkdir -p
      checking for gawk... gawk
      checking whether make sets $(MAKE)... yes
      checking whether make supports nested variables... yes
      checking for pkg-config... /bin/pkg-config
      checking pkg-config is at least version 0.9.0... yes
      checking whether make supports nested variables... (cached) yes
      checking for gcc... ccache gcc
      checking whether the C compiler works... yes
      checking for C compiler default output file name... a.out
      checking for suffix of executables...
      checking whether we are cross compiling... no
      checking for suffix of object files... o
      checking whether we are using the GNU C compiler... yes
      checking whether ccache gcc accepts -g... yes
      checking for ccache gcc option to accept ISO C89... none needed
      checking whether ccache gcc understands -c and -o together... yes
      checking for style of include used by make... GNU
      checking dependency style of ccache gcc... gcc3
      checking for ccache gcc option to accept ISO C99... -std=gnu99
      checking how to run the C preprocessor... ccache gcc -std=gnu99 -E
      checking for grep that handles long lines and -e... /bin/grep
      checking for egrep... /bin/grep -E
      checking for ANSI C header files... yes
      checking for sys/types.h... yes
      checking for sys/stat.h... yes
      checking for stdlib.h... yes
      checking for string.h... yes
      checking for memory.h... yes
      checking for strings.h... yes
      checking for inttypes.h... yes
      checking for stdint.h... yes
      checking for unistd.h... yes
      checking arpa/inet.h usability... yes
      checking arpa/inet.h presence... yes
      checking for arpa/inet.h... yes
      checking fcntl.h usability... yes
      checking fcntl.h presence... yes
      checking for fcntl.h... yes
      checking libintl.h usability... yes
      checking libintl.h presence... yes
      checking for libintl.h... yes
      checking limits.h usability... yes
      checking limits.h presence... yes
      checking for limits.h... yes
      checking locale.h usability... yes
      checking locale.h presence... yes
      checking for locale.h... yes
      checking netdb.h usability... yes
      checking netdb.h presence... yes
      checking for netdb.h... yes
      checking netinet/in.h usability... yes
      checking netinet/in.h presence... yes
      checking for netinet/in.h... yes
      checking for stdlib.h... (cached) yes
      checking for string.h... (cached) yes
      checking sys/ioctl.h usability... yes
      checking sys/ioctl.h presence... yes
      checking for sys/ioctl.h... yes
      checking sys/socket.h usability... yes
      checking sys/socket.h presence... yes
      checking for sys/socket.h... yes
      checking sys/time.h usability... yes
      checking sys/time.h presence... yes
      checking for sys/time.h... yes
      checking for unistd.h... (cached) yes
      checking for stdbool.h that conforms to C99... yes
      checking for _Bool... yes
      checking for inline... inline
      checking for off_t... yes
      checking for size_t... yes
      checking for ssize_t... yes
      checking for uint16_t... yes
      checking for getaddrinfo... yes
      checking for gettimeofday... yes
      checking for inet_ntoa... yes
      checking for malloc... yes
      checking for memset... yes
      checking for nanosleep... yes
      checking for realloc... yes
      checking for select... yes
      checking for setlocale... yes
      checking for socket... yes
      checking for strcasecmp... yes
      checking for strchr... yes
      checking for strerror... yes
      checking for strncasecmp... yes
      checking for strpbrk... yes
      checking for strrchr... yes
      checking for strstr... yes
      checking for strtoul... yes
      checking for openssl... yes
      checking whether NLS is requested... yes
      checking for msgfmt... /bin/msgfmt
      checking for gmsgfmt... /bin/msgfmt
      checking for xgettext... /bin/xgettext
      checking for msgmerge... /bin/msgmerge
      checking build system type... x86_64-pc-linux-gnu
      checking host system type... x86_64-pc-linux-gnu
      checking for ld used by GCC... /bin/ld
      checking if the linker (/bin/ld) is GNU ld... yes
      checking for shared library run path origin... done
      checking for CFPreferencesCopyAppValue... no
      checking for CFLocaleCopyCurrent... no
      checking for GNU gettext in libc... yes
      checking whether to use NLS... yes
      checking where the gettext function comes from... libc
      checking for special C compiler options needed for large files... no
      checking for _FILE_OFFSET_BITS value needed for large files... no
      checking that generated files are newer than configure... done
      configure: creating ./config.status
      config.status: creating Makefile
      config.status: creating src/Makefile
      config.status: creating po/Makefile.in
      config.status: creating config.h
      config.status: config.h is unchanged
      config.status: executing depfiles commands
      config.status: executing po-directories commands
      config.status: creating po/POTFILES
      config.status: creating po/Makefile
      make  all-recursive
      make[1]: Entering directory `/svr-setup/axel-2.16.1'
      Making all in src
      make[2]: Entering directory `/svr-setup/axel-2.16.1/src'
      make[2]: Nothing to be done for `all'.
      make[2]: Leaving directory `/svr-setup/axel-2.16.1/src'
      Making all in po
      make[2]: Entering directory `/svr-setup/axel-2.16.1/po'
      make[2]: Leaving ddirectory `/svr-setup/axel-2.16.1/po'
      make[2]: Entering directory `/svr-setup/axel-2.16.1'
      make[2]: Leaving directory `/svr-setup/axel-2.16.1'
      make[1]: Leaving directory `/svr-setup/axel-2.16.1'
      Making install in src
      make[1]: Entering directory `/svr-setup/axel-2.16.1/src'
      make[2]: Entering directory `/svr-setup/axel-2.16.1/src'
       /bin/mkdir -p '/usr/local/bin'
        /bin/install -c axel '/usr/local/bin'
      make[2]: Nothing to be done for `install-data-am'.
      make[2]: Leaving directory `/svr-setup/axel-2.16.1/src'
      make[1]: Leaving directory `/svr-setup/axel-2.16.1/src'
      Making install in po
      make[1]: Entering directory `/svr-setup/axel-2.16.1/po'
      installing de.gmo as /usr/local/share/locale/de/LC_MESSAGES/axel.mo
      installing es.gmo as /usr/local/share/locale/es/LC_MESSAGES/axel.mo
      installing id_ID.gmo as /usr/local/share/locale/id_ID/LC_MESSAGES/axel.mo
      installing it.gmo as /usr/local/share/locale/it/LC_MESSAGES/axel.mo
      installing ja.gmo as /usr/local/share/locale/ja/LC_MESSAGES/axel.mo
      installing nl.gmo as /usr/local/share/locale/nl/LC_MESSAGES/axel.mo
      installing pt_BR.gmo as /usr/local/share/locale/pt_BR/LC_MESSAGES/axel.mo
      installing ru.gmo as /usr/local/share/locale/ru/LC_MESSAGES/axel.mo
      installing zh_CN.gmo as /usr/local/share/locale/zh_CN/LC_MESSAGES/axel.mo
      if test "axel" = "gettext-tools"; then \
        /bin/mkdir -p /usr/local/share/gettext/po; \
        for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.h                                                                                                             eader en@boldquot.header insert-header.sin Rules-quot   Makevars.template; do \
          /bin/install -c -m 644 ./$file \
                          /usr/local/share/gettext/po/$file; \
        done; \
        for file in Makevars; do \
          rm -f /usr/local/share/gettext/po/$file; \
        done; \
      else \
        : ; \
      fi
      make[1]: Leaving directory `/svr-setup/axel-2.16.1/po'
      make[1]: Entering directory `/svr-setup/axel-2.16.1'
      make[2]: Entering directory `/svr-setup/axel-2.16.1'
      make[2]: Nothing to be done for `install-exec-am'.
       /bin/mkdir -p '/usr/local/share/man/man1'
       /bin/install -c -m 644 man/axel.1 '/usr/local/share/man/man1'
      make[2]: Leaving directory `/svr-setup/axel-2.16.1'
      make[1]: Leaving directory `/svr-setup/axel-2.16.1'
      /usr/local/bin/axel
              ____              _               _          __  __             _
             / ___| ___  _ __  | |_  _ __ ___  (_) _ __   |  \/  |  ___    __| |
            | |    / _ \| '_ \ | __|| '_ ` _ \ | || '_ \  | |\/| | / _ \  / _` |
            | |___|  __/| | | || |_ | | | | | || || | | | | |  | || (_) || (_| |
             \____|\___||_| |_| \__||_| |_| |_||_||_| |_| |_|  |_| \___/  \__,_|
      
                              ___              _          _  _
                             |_ _| _ __   ___ | |_  __ _ | || |
                              | | | '_ \ / __|| __|/ _` || || |
                              | | | | | |\__ \| |_| (_| || || |
                             |___||_| |_||___/ \__|\__,_||_||_|
      
      git clone Centmin Mod repo...
      fatal: destination path 'centminmod' already exists and is not an empty director                                                                                                             y.
      
      real    0m0.002s
      user    0m0.002s
      sys     0m0.000s
      
                                        _   _                          _  _
          _ __ ___   _   _  ___   __ _ | | | |_  _ __ ___   _ __    __| |(_) _ __
         | '_ ` _ \ | | | |/ __| / _` || | | __|| '_ ` _ \ | '_ \  / _` || || '__|
         | | | | | || |_| |\__ \| (_| || | | |_ | | | | | || |_) || (_| || || |
         |_| |_| |_| \__, ||___/ \__, ||_|  \__||_| |_| |_|| .__/  \__,_||_||_|
                     |___/          |_|                    |_|
                                           _
                                ___   ___ | |_  _   _  _ __
                               / __| / _ \| __|| | | || '_ \
                               \__ \|  __/| |_ | |_| || |_) |
                               |___/ \___| \__| \__,_|| .__/
                                                      |_|
      
      Ok: physically installed memory is sufficient for Centmin Mod
      Installation [Installed: 3788 MB]
      
      
      Centmin Mod previous installation detected.
      
      If you are upgrading a server which already previously had Centmin Mod installed
      you DO NOT need to run option #1, instead run option #4 & then #5 for upgrading
      Nginx web server and upgrading PHP.
      
      exiting script
      
      Created command shortcuts:
      * type cmdir to change to Centmin Mod install directory
        at /usr/local/src/centminmod
      * type centmin call and run centmin.sh
        at /usr/local/src/centminmod/centmin.sh
      
      (standard_in) 2: syntax error
      ---------------------------------------------------------------------------
      Total Curl Installer YUM or DNF Time: 0.0000 seconds
      Total YUM Time: 28.624648760 seconds
      tail: option used in invalid context -- 1
      Total YUM or DNF + Source Download Time: 80.2337
      Total Nginx First Time Install Time: 770.3958
      Total PHP First Time Install Time: 0.0000
      Download From Github Time: 0.0034
      Total Time Other eg. source compiles: -846.8807
      Total Centmin Mod Install Time: 0.0000
      ---------------------------------------------------------------------------
      Total Install Time (curl yum + cm install + zip download): 3.7522 seconds
      ---------------------------------------------------------------------------
      2 Intel(R) Xeon(R) CPU @ 2.20GHz
      2 2200.220
      ---------------------------------------------------------------------------
      Then i ran

      Code:
      centmin
      and got some errors below


      Code:
      /usr/local/src/centminmod /
      
      
      --------------------------------------------------------------------
      Setup Server Administration Email
      Emails will be used for future notification alert features
      --------------------------------------------------------------------
      Hit Enter To Skip...
      Will be prompted everytime run centmin.sh if both emails not entered
      --------------------------------------------------------------------
      enter primary email: XYZZ@gmail.com
      enter secondary email:
      --------------------------------------------------------------------
      
      Primary: XYZZ@gmail.com
      setup at /etc/centminmod/email-primary.ini
      
        XYZZ@gmail.com
      
      secondary email setup skipped...
      
      pure-ftpd: one time setup /etc/ssl/private/pure-ftpd-dhparams.pem file
      may take a while to create...
      pure-ftpd: /etc/ssl/private/pure-ftpd-dhparams.pem created
      pure-ftpd: create 2048bit /etc/pki/pure-ftpd/pure-ftpd.pem file for
      pure-ftpd: /etc/pki/pure-ftpd/pure-ftpd.pem created
      sed: can't read /etc/csf/csf.conf: No such file or directory
      Updating command shortcuts...
      **********************************************************************
      * Add cmd shortcuts for php.ini, my.cnf, php-fpm.conf, nginx.conf and virtual.co                                                                                                             nf
      * Edit /etc/centminmod/custom_config.inc = customconfig
      * Edit php.ini = phpedit
      * Edit my.cnf = mycnf
      * Edit php-fpm.conf = fpmconf
      * Edit nginx.conf = nginxconf
      * Edit virtual.conf = vhostconf
      * nginx stop/start/restart = ngxstop/ngxstart/ngxrestart
      * php-fpm stop/start/restart = fpmstop/fpmstart/fpmrestart
      * mysql stop/start/restart = mysqlstop/mysqlstart/mysqlrestart
      * nginx + php-fpm stop/start/restart = npstop/npstart/nprestart
      * memcached stop/start/restart = memcachedstop/memcachedstart/memcachedrestart
      * csf stop/start/restart = csfstop/csfstart/csfrestart
      **********************************************************************
      grep: /usr/local/lib/php.ini: No such file or directory
      grep: /etc/csf/csf.conf: No such file or directory
      sed: can't read /etc/csf/csf.conf: No such file or directory
      sed: can't read /etc/csf/csf.conf: No such file or directory
      cp: cannot create regular file ‘/etc/csf/load.sh’: No such file or directory
      sed: can't read /etc/csf/csf.conf: No such file or directory
      sed: can't read /etc/csf/csf.conf: No such file or directory
      
      
      Is it ok or do i need to to run a clean installation again?

      Regards
     
    Last edited: Aug 8, 2020
  2. eva2000

    eva2000 Administrator Staff Member

    50,896
    11,797
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,252
    Local Time:
    3:42 PM
    Nginx 1.25.x
    MariaDB 10.x
    Yeah clean CentOS 7 install is needed. If you do want to survive SSH disconnections, use something like Screen Sysadmin - Who uses Screen for linux ?
     
  3. radbrad

    radbrad Member

    34
    3
    8
    Feb 15, 2020
    Ratings:
    +4
    Local Time:
    11:12 AM
    Thanks @eva2000, I made a clean installation again. Now I'm facing a new problem which is i cant change the hostname and hosts content.
    My hostname was instance-5
    I used
    Code:
    nano -w /etc/hostname
    to change the hostname to
    Code:
    hostname.mydomain.com
    then restarted the network and after the restart, I checked the hostname and it was back to the old name.

    Now i changed the hosts to

    Code:
    xx.yy.zz.aa hostname.newdomain.com hostname
    but after network restart, the value has changed to this automatically.

    Code:
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    a.b.c.d instance-5.asia-east2-c.c.blogyukti-com.internal instance-5  # Added by Google
    xx.yy.ss.rr metadata.google.internal  # Added by Google
    Im using google cloud VM instance and the instance name is instance-5. What can be the solution? or is it ok to leave it to the old name?
     
    Last edited: Aug 9, 2020
  4. radbrad

    radbrad Member

    34
    3
    8
    Feb 15, 2020
    Ratings:
    +4
    Local Time:
    11:12 AM
    According to Google Cloud Support
    I found a solution in StackOverflow and it worked for me. Removing these two files will resolve the issue.

    Code:
    rm -rf /etc/dhcp/dhclient.d/google_hostname.sh
    rm -rf /etc/dhcp/dhclient-exit-hooks.d/google_set_hostname
     
  5. eva2000

    eva2000 Administrator Staff Member

    50,896
    11,797
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,252
    Local Time:
    3:42 PM
    Nginx 1.25.x
    MariaDB 10.x
    ah specific to Google Cloud it seems