Autoinstaller breaks with "Command a2enconf php7.3-fpm 2>&1 failed" even PHP 7.3 is not selected

Discussion in 'Installation/Configuration' started by Tondiar, Jul 25, 2021.

  1. Tondiar

    Tondiar New Member

    Hi,
    I have a freshly installed server with Debian Buster and I am following the instructions /ispconfig-autoinstall-debian-ubuntu (I am not allowed to use a link).
    After I use
    Everything starts normal and all of a sudden I get
    What am I doing wrong and why is the auto installer trying to a2enconf php7.3-fpm?
    If there is a solution (probably using PHP 7.3, even if I don't want to), do I need to reinstall the server or can I just use the command again and the installer will skip the already done steps?
    Help is really appreciated!
    Thanks,
    Markus

    Just in case, if someone wants to see the whole terminal output, here you go:
    Code:
    root@isp ~ # wget -O -LINK TO get_ispconfig_org (again, no links allowed) | sh -s -- --use-php=7.4,8.0 --                                                                                                                                                             use-ftp-ports=40110-40210 --no-mail --no-dns --no-roundcube --no-mailman
    --2021-07-25 13:49:00--  https://get.ispconfig.org/
    Resolving get.ispconfig.org (get.ispconfig.org)... 2606:4700:20::ac43:4b70, 2606                                                                                                                                                             :4700:20::681a:af6, 2606:4700:20::681a:bf6, ...
    Connecting to get.ispconfig.org (get.ispconfig.org)|2606:4700:20::ac43:4b70|:443                                                                                                                                                             ... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 2004 (2.0K) [application/octet-stream]
    Saving to: ‘STDOUT’
    
    -                   100%[===================>]   1.96K  --.-KB/s    in 0s
    
    2021-07-25 13:49:00 (31.8 MB/s) - written to stdout [2004/2004]
    
    PHP cli missing, trying to install.
    Selecting previously unselected package libmagic-mgc.
    (Reading database ... 27714 files and directories currently installed.)
    Preparing to unpack .../0-libmagic-mgc_1%3a5.35-4+deb10u2_amd64.deb ...
    Unpacking libmagic-mgc (1:5.35-4+deb10u2) ...
    Selecting previously unselected package libmagic1:amd64.
    Preparing to unpack .../1-libmagic1_1%3a5.35-4+deb10u2_amd64.deb ...
    Unpacking libmagic1:amd64 (1:5.35-4+deb10u2) ...
    Selecting previously unselected package libsodium23:amd64.
    Preparing to unpack .../2-libsodium23_1.0.18-1+0~20191009.1+debian10~1.gbpb6823f                                                                                                                                                             _amd64.deb ...
    Unpacking libsodium23:amd64 (1.0.18-1+0~20191009.1+debian10~1.gbpb6823f) ...
    Selecting previously unselected package psmisc.
    Preparing to unpack .../3-psmisc_23.2-1_amd64.deb ...
    Unpacking psmisc (23.2-1) ...
    Selecting previously unselected package php-common.
    Preparing to unpack .../4-php-common_2%3a84+0~20210621.36+debian10~1.gbp28513e_a                                                                                                                                                             ll.deb ...
    Unpacking php-common (2:84+0~20210621.36+debian10~1.gbp28513e) ...
    Selecting previously unselected package php8.0-common.
    Preparing to unpack .../5-php8.0-common_8.0.8-1+0~20210701.21+debian10~1.gbp9ee3                                                                                                                                                             85_amd64.deb ...
    Unpacking php8.0-common (8.0.8-1+0~20210701.21+debian10~1.gbp9ee385) ...
    Selecting previously unselected package php8.0-opcache.
    Preparing to unpack .../6-php8.0-opcache_8.0.8-1+0~20210701.21+debian10~1.gbp9ee                                                                                                                                                             385_amd64.deb ...
    Unpacking php8.0-opcache (8.0.8-1+0~20210701.21+debian10~1.gbp9ee385) ...
    Selecting previously unselected package php8.0-readline.
    Preparing to unpack .../7-php8.0-readline_8.0.8-1+0~20210701.21+debian10~1.gbp9e                                                                                                                                                             e385_amd64.deb ...
    Unpacking php8.0-readline (8.0.8-1+0~20210701.21+debian10~1.gbp9ee385) ...
    Selecting previously unselected package php8.0-cli.
    Preparing to unpack .../8-php8.0-cli_8.0.8-1+0~20210701.21+debian10~1.gbp9ee385_                                                                                                                                                             amd64.deb ...
    Unpacking php8.0-cli (8.0.8-1+0~20210701.21+debian10~1.gbp9ee385) ...
    Selecting previously unselected package php-cli.
    Preparing to unpack .../9-php-cli_2%3a8.0+84+0~20210621.36+debian10~1.gbp28513e_                                                                                                                                                             all.deb ...
    Unpacking php-cli (2:8.0+84+0~20210621.36+debian10~1.gbp28513e) ...
    Setting up libsodium23:amd64 (1.0.18-1+0~20191009.1+debian10~1.gbpb6823f) ...
    Setting up libmagic-mgc (1:5.35-4+deb10u2) ...
    Setting up psmisc (23.2-1) ...
    Setting up libmagic1:amd64 (1:5.35-4+deb10u2) ...
    Setting up php-common (2:84+0~20210621.36+debian10~1.gbp28513e) ...
    Created symlink /etc/systemd/system/timers.target.wants/phpsessionclean.timer →                                                                                                                                                              /lib/systemd/system/phpsessionclean.timer.
    Setting up php8.0-common (8.0.8-1+0~20210701.21+debian10~1.gbp9ee385) ...
    
    Creating config file /etc/php/8.0/mods-available/calendar.ini with new version
    
    Creating config file /etc/php/8.0/mods-available/ctype.ini with new version
    
    Creating config file /etc/php/8.0/mods-available/exif.ini with new version
    
    Creating config file /etc/php/8.0/mods-available/fileinfo.ini with new version
    
    Creating config file /etc/php/8.0/mods-available/ffi.ini with new version
    
    Creating config file /etc/php/8.0/mods-available/ftp.ini with new version
    
    Creating config file /etc/php/8.0/mods-available/gettext.ini with new version
    
    Creating config file /etc/php/8.0/mods-available/iconv.ini with new version
    
    Creating config file /etc/php/8.0/mods-available/pdo.ini with new version
    
    Creating config file /etc/php/8.0/mods-available/phar.ini with new version
    
    Creating config file /etc/php/8.0/mods-available/posix.ini with new version
    
    Creating config file /etc/php/8.0/mods-available/shmop.ini with new version
    
    Creating config file /etc/php/8.0/mods-available/sockets.ini with new version
    
    Creating config file /etc/php/8.0/mods-available/sysvmsg.ini with new version
    
    Creating config file /etc/php/8.0/mods-available/sysvsem.ini with new version
    
    Creating config file /etc/php/8.0/mods-available/sysvshm.ini with new version
    
    Creating config file /etc/php/8.0/mods-available/tokenizer.ini with new version
    Setting up php8.0-readline (8.0.8-1+0~20210701.21+debian10~1.gbp9ee385) ...
    
    Creating config file /etc/php/8.0/mods-available/readline.ini with new version
    Setting up php8.0-opcache (8.0.8-1+0~20210701.21+debian10~1.gbp9ee385) ...
    
    Creating config file /etc/php/8.0/mods-available/opcache.ini with new version
    Setting up php8.0-cli (8.0.8-1+0~20210701.21+debian10~1.gbp9ee385) ...
    update-alternatives: using /usr/bin/php8.0 to provide /usr/bin/php (php) in auto                                                                                                                                                              mode
    update-alternatives: using /usr/bin/phar8.0 to provide /usr/bin/phar (phar) in a                                                                                                                                                             uto mode
    update-alternatives: using /usr/bin/phar.phar8.0 to provide /usr/bin/phar.phar (                                                                                                                                                             phar.phar) in auto mode
    
    Creating config file /etc/php/8.0/cli/php.ini with new version
    Setting up php-cli (2:8.0+84+0~20210621.36+debian10~1.gbp28513e) ...
    update-alternatives: using /usr/bin/php.default to provide /usr/bin/php (php) in auto mode
    update-alternatives: using /usr/bin/phar.default to provide /usr/bin/phar (phar) in auto mode
    update-alternatives: using /usr/bin/phar.phar.default to provide /usr/bin/phar.phar (phar.phar) in auto mode
    Processing triggers for man-db (2.8.5-2) ...
    Processing triggers for libc-bin (2.28-10) ...
    Processing triggers for php8.0-cli (8.0.8-1+0~20210701.21+debian10~1.gbp9ee385) ...
    Selecting previously unselected package libonig5:amd64.
    (Reading database ... 27919 files and directories currently installed.)
    Preparing to unpack .../libonig5_6.9.1-1_amd64.deb ...
    Unpacking libonig5:amd64 (6.9.1-1) ...
    Selecting previously unselected package php8.0-mbstring.
    Preparing to unpack .../php8.0-mbstring_8.0.8-1+0~20210701.21+debian10~1.gbp9ee385_amd64.deb ...
    Unpacking php8.0-mbstring (8.0.8-1+0~20210701.21+debian10~1.gbp9ee385) ...
    Selecting previously unselected package php-mbstring.
    Preparing to unpack .../php-mbstring_2%3a8.0+84+0~20210621.36+debian10~1.gbp28513e_all.deb ...
    Unpacking php-mbstring (2:8.0+84+0~20210621.36+debian10~1.gbp28513e) ...
    Setting up libonig5:amd64 (6.9.1-1) ...
    Setting up php8.0-mbstring (8.0.8-1+0~20210701.21+debian10~1.gbp9ee385) ...
    
    Creating config file /etc/php/8.0/mods-available/mbstring.ini with new version
    Setting up php-mbstring (2:8.0+84+0~20210621.36+debian10~1.gbp28513e) ...
    Processing triggers for libc-bin (2.28-10) ...
    Processing triggers for php8.0-cli (8.0.8-1+0~20210701.21+debian10~1.gbp9ee385) ...
    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 10 (buster)
    [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, ntp
    [INFO] Installed packages ssh, openssh-server, nano, vim-nox, lsb-release, apt-transport-https, ca-certificates, wget, git, gnupg, ntp
    [INFO] Activating sury php repository.
    [INFO] Activating GoAccess repository.
    [INFO] Updating packages (after enabling 3rd party repos).
    [INFO] Updated packages
    [INFO] Default shell is currently dash.
    [INFO] Setting bash as default shell.
    [INFO] Default shell is now bash.
    [INFO] Installing packages dbconfig-common, postfix, postfix-mysql, postfix-doc, mariadb-client, mariadb-server, openssl, getmail4, rkhunter, binutils, sudo
    [INFO] Installed packages dbconfig-common, postfix, postfix-mysql, postfix-doc, mariadb-client, mariadb-server, openssl, getmail4, rkhunter, binutils, sudo
    [INFO] Generating mySQL password.
    [INFO] Writing MySQL config files.
    [INFO] Restarting postfix
    [INFO] Installing packages software-properties-common, dnsutils, resolvconf, clamav, clamav-daemon, clamav-docs, zip, unzip, bzip2, xz-utils, lzip, rar, arj, nomarch, lzop, cabextract, apt-listchanges, libnet-ldap-perl, libauthen-sasl-perl, daemon, libio-string-perl, libio-socket-ssl-perl, libnet-ident-perl, libnet-dns-perl, libdbd-mysql-perl, bind9, p7zip, p7zip-full, unrar-free, lrzip
    [INFO] Installed packages software-properties-common, dnsutils, resolvconf, clamav, clamav-daemon, clamav-docs, zip, unzip, bzip2, xz-utils, lzip, rar, arj, nomarch, lzop, cabextract, apt-listchanges, libnet-ldap-perl, libauthen-sasl-perl, daemon, libio-string-perl, libio-socket-ssl-perl, libnet-ident-perl, libnet-dns-perl, libdbd-mysql-perl, bind9, p7zip, p7zip-full, unrar-free, lrzip
    [INFO] (Re)starting Bind.
    [INFO] Disabling spamassassin daemon.
    [INFO] Checking local dns resolver.
    [WARN] Unexpected resolver response: Server:            213.133.98.98 (/lib/os/class.ISPConfigDebianOS.inc.php:870)
    [INFO] Installing packages apache2, apache2-doc, apache2-utils, libapache2-mod-fcgid, apache2-suexec-pristine, libapache2-mod-python, libapache2-mod-passenger
    [INFO] Installed packages apache2, apache2-doc, apache2-utils, libapache2-mod-fcgid, apache2-suexec-pristine, libapache2-mod-python, libapache2-mod-passenger
    [INFO] Installing packages php-pear, php-memcache, php-imagick, php-gettext, mcrypt, imagemagick, libruby, memcached, php-apcu, php7.4, php7.4-common, php7.4-gd, php7.4-mysql, php7.4-imap, php7.4-cli, php7.4-curl, php7.4-intl, php7.4-pspell, php7.4-sqlite3, php7.4-tidy, php7.4-xmlrpc, php7.4-xsl, php7.4-zip, php7.4-mbstring, php7.4-soap, php7.4-opcache, php7.4-cgi, php7.4-fpm, php8.0, php8.0-common, php8.0-gd, php8.0-mysql, php8.0-imap, php8.0-cli, php8.0-curl, php8.0-intl, php8.0-pspell, php8.0-sqlite3, php8.0-tidy, php8.0-xsl, php8.0-zip, php8.0-mbstring, php8.0-soap, php8.0-opcache, php8.0-cgi, php8.0-fpm
    [INFO] Installed packages php-pear, php-memcache, php-imagick, php-gettext, mcrypt, imagemagick, libruby, memcached, php-apcu, php7.4, php7.4-common, php7.4-gd, php7.4-mysql, php7.4-imap, php7.4-cli, php7.4-curl, php7.4-intl, php7.4-pspell, php7.4-sqlite3, php7.4-tidy, php7.4-xmlrpc, php7.4-xsl, php7.4-zip, php7.4-mbstring, php7.4-soap, php7.4-opcache, php7.4-cgi, php7.4-fpm, php8.0, php8.0-common, php8.0-gd, php8.0-mysql, php8.0-imap, php8.0-cli, php8.0-curl, php8.0-intl, php8.0-pspell, php8.0-sqlite3, php8.0-tidy, php8.0-xsl, php8.0-zip, php8.0-mbstring, php8.0-soap, php8.0-opcache, php8.0-cgi, php8.0-fpm
    [INFO] Disabling conflicting apache modules.
    [INFO] Enabling apache modules.
    [INFO] Enabling default PHP-FPM config.
    [ERROR] Exception occured: ISPConfigOSException -> Command a2enconf php7.3-fpm 2>&1 failed. (/ispconfig.ai.php:15)
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    PHP 7.3 is selected because this is the default PHP version of Debian 10. ISPConfig always needs the default PHP version for your OS, so you should always install that AND others, not just others.
     
  3. Tondiar

    Tondiar New Member

    Thank you so much for the explanation. Makes total sense :D
     
  4. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Probably the auto installer should always include the system php version (7.3 here) if that is being enabled.
     
    Th0m and till like this.

Share This Page