My experience on auto installer (on a system without full internet access)

Discussion in 'Installation/Configuration' started by asgare, Nov 21, 2022.

  1. asgare

    asgare Member

    Hi
    Thanks to till for preparing this marvelous system.
    I live in Iran and nowadays we are facing lots of network issues ( censorship and tons of filtering ).
    I installed a stable version of Debian 11 on my HP server. While Installing I faced a couple of issues and now I would like to share with you to know whether these are network issues or something else. In both conditions I hope could solve it.


    Command:
    Code:
    wget -O - https://get.ispconfig.org | sh -s -- --help
    Problem:
    Code:
    PHP cli missing, trying to install.
    Solution:
    Code:
    apt install php7.4
    Again ran the first command and got this errors:
    Code:
    PHP Fatal error:  Uncaught Error: Call to undefined function mb_strlen() in /tmp/ispconfig-ai/lib/class.ISPConfigLog.inc.php:74
    Stack trace:
    #0 /tmp/ispconfig-ai/lib/class.ISPConfig.inc.php(310): ISPConfigLog::print()
    #1 /tmp/ispconfig-ai/lib/class.ISPConfig.inc.php(338): ISPConfig::printHelp()
    #2 /tmp/ispconfig-ai/ispconfig.ai.php(13): ISPConfig::run()
    #3 {main}
      thrown in /tmp/ispconfig-ai/lib/class.ISPConfigLog.inc.php on line 74
    Solution:
    Code:
    apt install php7.4-mbstring
    apt update
    apt install software-properties-common
    apt-add-repository ppa:ondrej/php

    Finally went to installation with the below results:
    Code:
    --2022-11-17 00:29:32--  https://get.ispconfig.org/
    Resolving get.ispconfig.org (get.ispconfig.org)... 188.114.98.0, 188.114.99.0, 2a06:98c1:3123::, ...
    Connecting to get.ispconfig.org (get.ispconfig.org)|188.114.98.0|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 2003 (2.0K) [application/octet-stream]
    Saving to: ‘STDOUT’
    
    -                                 100%[==========================================================>]   1.96K  --.-KB/s    in 0s
    
    2022-11-17 00:29:32 (45.0 MB/s) - written to stdout [2003/2003]
    
    
    
    *************************************************************************************************************************************                                ISPConfig 3 Autoinstaller
    *************************************************************************************************************************************
    
    Usage: ispc3-ai.sh [<argument>] [...]
    
    This script automatically installs all needed packages for an ISPConfig 3 setup using the guidelines from the "Perfect Server Setup"                                 howtos on www.howtoforge.com.
    
    
    Possible arguments are:
        --help          Show this help page
        --debug         Enable verbose logging (logs each command with the exit code)
        --channel       Choose the channel to use for ISPConfig. --channel=<stable|dev>
                        "stable" is the latest ISPConfig release available on www.ispconfig.org
                        "dev" is the latest dev-branch from the ISPConfig git repository:
                        https://git.ispconfig.org/ispconfig/ispconfig3/tree/develop
                        -> The dev channel might contain bugs and less-tested features and should only be used in production by very
                        experienced users.
        --lang          Use language for ISPConfig installation. Specify with --lang=en|de (only en (English) and de (German) supported
                        currently).
        --interactive   Don't install ISPConfig in non-interactive mode. This is needed if you want to use expert mode, e. g. to install
                        a slave server that shall be integrated into an existing multiserver setup.
        --use-nginx     Use nginx webserver instead of apache2
        --use-amavis    Use amavis instead of rspamd for mail filtering
        --use-unbound   Use unbound instead of bind9 for local resolving. Only allowed if --no-dns is set.
        --use-php       Use specific PHP versions, comma separated, instead of installing multiple PHP, e.g. --use-php=7.4,8.0 (5.6, 7.0,
                        7.1, 7.2, 7.3, 7.4, 8.0 and 8.1 available).
                        --use-php=system disables the sury repository and just installs the system's default PHP version.
                        ommiting the argument (use all versions)
        --use-ftp-ports This option sets the passive port range for pure-ftpd. You have to specify the port range separated by hyphen, e.
                        g. --use-ftp-ports=40110-40210.
                        If not provided the passive port range will not be configured.
        --use-certbot   Use Certbot instead of acme.sh for issuing Let's Encrypt certificates. Not adviced unless you are migrating from
                        a old server that uses Certbot.
        --no-web        Do not use ISPConfig on this server to manage webserver setting and don't install nginx/apache or pureftpd. This
                        will also prevent installing an ISPConfig UI and implies --no-roundcube as well as --no-pma
        --no-mail       Do not use ISPConfig on this server to manage mailserver settings. This will install postfix for sending system
                        mails, but not dovecot and not configure any settings for ISPConfig mail. It implies --no-mailman.
        --no-dns        Do not use ISPConfig on this server to manage DNS entries. Bind will be installed for local DNS caching /
                        resolving only.
        --no-local-dns  Do not install local DNS caching / resolving via bind.
        --no-firewall   Do not install ufw and tell ISPConfig to not manage firewall settings on this server.
        --no-roundcube  Do not install roundcube webmail.
        --roundcube     Install Roundcube even when --no-mail is used. Manual configuration of Roundcube config is needed.
        --no-pma        Do not install PHPMyAdmin on this server.
        --no-mailman    Do not install Mailman mailing list manager.
        --no-quota      Disable file system quota
        --no-ntp        Disable NTP setup
        --unattended-upgrades
                        Install UnattendedUpgrades. You can add extra arguments for automatic cleanup and automatic reboots when
                        necessary with --unattended-upgrades=autoclean,reboot (or only one of them).
        --i-know-what-i-am-doing
                        Prevent the autoinstaller to ask for confirmation before continuing to reconfigure the server.
    
    root@ns1:~# wget -O - https://get.ispconfig.org | sh -s -- --use-ftp-ports=40110-40210 --unattended-upgrades
    --2022-11-17 00:30:14--  https://get.ispconfig.org/
    Resolving get.ispconfig.org (get.ispconfig.org)... 188.114.99.0, 188.114.98.0, 2a06:98c1:3122::, ...
    Connecting to get.ispconfig.org (get.ispconfig.org)|188.114.99.0|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 2003 (2.0K) [application/octet-stream]
    Saving to: ‘STDOUT’
    
    -                                 100%[==========================================================>]   1.96K  --.-KB/s    in 0s
    
    2022-11-17 00:30:15 (45.5 MB/s) - written to stdout [2003/2003]
    
    WARNING! This script will reconfigure your complete server!
    It should be run on a freshly installed server and all current configuration that you have done will most likely be lost!
    Type 'yes' if you really want to continue: yes
    [INFO] Starting perfect server setup for Debian GNU/Linux 11 (bullseye)
    [INFO] Checking hostname.
    [INFO] Enabling contrib and non-free repositories.
    [INFO] Updating packages
    [INFO] Updated packages
    [INFO] Installing packages ssh, openssh-server, nano, vim-nox, lsb-release, apt-transport-https, ca-certificates, wget, git, gnupg, s                                oftware-properties-common, curl, ntp
    [INFO] Installed packages ssh, openssh-server, nano, vim-nox, lsb-release, apt-transport-https, ca-certificates, wget, git, gnupg, so                                ftware-properties-common, curl, ntp
    [INFO] Activating rspamd repository.
    [INFO] Activating sury php repository.
    ^[[B[INFO] Activating GoAccess repository.
    [ERROR] Exception occured: ISPConfigOSException -> Command echo "deb https://deb.goaccess.io/ $(lsb_release -cs) main" | tee -a /etc/apt/sources.list.d/goac         cess.list >/dev/null 2>&1 ; wget -O - https://deb.goaccess.io/gnugpg.key 2>&1 | apt-key --keyring /etc/apt/trusted.gpg.d/goaccess.gpg add - 2>&1 failed. (/i         spconfig.ai.php:15)
    

    Now I don't know in which step of auto installer I stucked to continue!
    Code:
    [ERROR] Exception occured: ISPConfigOSException -> Command echo "deb https://deb.goaccess.io/ $(lsb_release -cs) main" | tee -a /etc/apt/sources.list.d/goac         cess.list >/dev/null 2>&1 ; wget -O - https://deb.goaccess.io/gnugpg.key 2>&1 | apt-key --keyring /etc/apt/trusted.gpg.d/goaccess.gpg add - 2>&1 failed. (/i         spconfig.ai.php:15)
    
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Do not manually install php, the auto-installer does that. All additional errors you posted are caused by this first mistake in conjunction with the fact that your system is not able to install packages automatically or download additional software and files form the internet.

    That's the sole reason for your issues.

    Your system must match the following minimal requirements to run the auto installer:
    • Operating System: Debian 10 or 11 or Ubuntu 20.04.
    • Intel or AMD 64-Bit CPU Architecture (x86_64, also known as AMD64). ARM CPUs are not supported at the moment.
    • The System must have internet access to download and install software with apt.
    • Start from a clean- and empty base OS installation.
    See: https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/

    If any of these is not matched, like lacking full internet access as in your case, installation must fail.
     
    ahrasis and Th0m like this.
  3. asgare

    asgare Member

    In that case, I must wait for the manual installation of Debian 11. Because I don't have that much Linux and PHP knowledge to configure auto-installer to figure out which apps are installed or not.

    Meanwhile, I'll work on the proxy to see what I can do.
     
  4. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Basically you can use Debian 10 guide as much as possible. I bet only few minor things need to be changed should manual guide for Debian 11 is released, though there is possibility that it may not be released too. Only @till can really answer that.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    I already answered it several times in the past weeks here in the forum, even in the other thread of @asgare, that there will be a Debian 11 perfect server guide, I just did not have the time to write it yet.
     
    ahrasis likes this.

Share This Page