Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong php (8.1) after update buster to bullseye + 503 Service unavailable at pihole web gui #6266

Closed
strupp666 opened this issue Mar 22, 2023 · 16 comments

Comments

@strupp666
Copy link

strupp666 commented Mar 22, 2023

Creating a bug report/issue

wrong php (8.1) after update buster to bullseye + 503 Service unavailable at pihole web gui

Required Information

  • DietPi version | cat /boot/dietpi/.version
    G_DIETPI_VERSION_CORE=8
    G_DIETPI_VERSION_SUB=15
    G_DIETPI_VERSION_RC=2
    G_GITBRANCH='master'
    G_GITOWNER='MichaIng'
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
    bullseye
  • Kernel version | uname -a
    Linux DietPi 4.14.294+ #1 SMP PREEMPT Sat Sep 24 10:24:15 UTC 2022 armv7l GNU/Linux
  • SBC model | echo $G_HW_MODEL_NAME
    Odroid XU3/XU4/MC1/HC1/HC2 (armv7l) - HC2
  • Power supply used | (EG: 5V 1A RAVpower) i. O
  • SD card used | (EG: SanDisk ultra) i.O

Additional Information (if applicable)

  • Software title | pihole, lighttpd, php
  • Was the software title installed freshly or updated/migrated? updated
  • Can this issue be replicated on a fresh installation of DietPi?
  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

  1. Update from buster to bullseye
  2. ...

Expected behaviour

Dashboard of pihole must be reachable

  • ...

Actual behaviour

503 service unavailable

  • ...

Extra details

  • 1 -
root@DietPi:~# pihole -up
  [✓] Update local cache of available packages
  [i] Existing PHP installation detected : PHP version 8.1.2
  [✓] Checking for git
  [✓] Checking for iproute2
  [✓] Checking for dialog
  [✓] Checking for ca-certificates

  [i] Checking for updates...
  [i] Pi-hole Core:     update available
  [i] Web Interface:    update available
  [i] FTL:              update available

  [i] Pi-hole core files out of date, updating local repo.
  [✓] Check for existing repository in /etc/.pihole
  [i] Update repo in /etc/.pihole...HEAD ist jetzt bei d86b325d Only search for "OVERWRITTEN BY PI-HOLE" when checking inside `lighttpd.conf` (#5167)
  [✓] Update repo in /etc/.pihole

  [i] If you had made any changes in '/etc/.pihole/', they have been stashed using 'git stash'

  [i] Pi-hole Web Admin files out of date, updating local repo.
  [✓] Check for existing repository in /var/www/html/admin
  [i] Update repo in /var/www/html/admin...HEAD ist jetzt bei b29a423b Pi-hole web v5.18.4 (#2523)
  [✓] Update repo in /var/www/html/admin

  [i] If you had made any changes in '/var/www/html/admin/', they have been stashed using 'git stash'

  [i] FTL out of date, it will be updated by the installer.

  [✓] Root user check

        .;;,.
        .ccccc:,.
         :cccclll:.      ..,,
          :ccccclll.   ;ooodc
           'ccll:;ll .oooodc
             .;cll.;;looo:.
                 .. ','.
                .',,,,,,'.
              .',,,,,,,,,,.
            .',,,,,,,,,,,,....
          ....''',,,,,,,'.......
        .........  ....  .........
        ..........      ..........
        ..........      ..........
        .........  ....  .........
          ........,,,,,,,'......
            ....',,,,,,,,,,,,.
               .',,,,,,,,,'.
                .',,,,,,'.
                  ..'''.

  [i] SELinux not detected
  [✓] Update local cache of available packages
  [i] Existing PHP installation detected : PHP version 8.1.2

  [✓] Checking apt-get for upgraded packages... up to date!

  [i] Checking for / installing Required dependencies for OS Check...
  [✓] Checking for grep
  [✓] Checking for dnsutils

  [✓] Supported OS detected
  [i] Checking for / installing Required dependencies for this install script...
  [✓] Checking for git
  [✓] Checking for iproute2
  [✓] Checking for dialog
  [✓] Checking for ca-certificates

  [i] Performing unattended setup, no dialogs will be displayed
  [i] Performing reconfiguration, skipping download of local repos
  [✓] Resetting repository within /etc/.pihole...
  [✓] Resetting repository within /var/www/html/admin...
  [i] Checking for / installing Required dependencies for Pi-hole software...
  [✓] Checking for cron
  [✓] Checking for curl
  [✓] Checking for iputils-ping
  [✓] Checking for psmisc
  [✓] Checking for sudo
  [✓] Checking for unzip
  [✓] Checking for idn2
  [✓] Checking for libcap2-bin
  [✓] Checking for dns-root-data
  [✓] Checking for libcap2
  [✓] Checking for netcat-openbsd
  [✓] Checking for procps
  [✓] Checking for jq

  [✓] Checking for user 'pihole'

  [i] FTL Checks...

  [✓] Detected ARMv7 processor (with hard-float support)
  [i] Checking for existing FTL binary...
  [✓] Downloading and Installing FTL
  [✓] Installing scripts from /etc/.pihole

  [i] Installing configs from /etc/.pihole...
  [i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
  [✓] Installed /etc/dnsmasq.d/01-pihole.conf
  [✓] Installed /etc/dnsmasq.d/06-rfc6761.conf

  [✓] Installing sudoer file

  [✓] Installing latest Cron script

  [i] Installing latest logrotate script...
        [i] Existing logrotate file found. No changes made.
  [i] Backing up /etc/dnsmasq.conf to /etc/dnsmasq.conf.old
  [i] man not installed
  [i] Testing if systemd-resolved is enabled
  [i] Systemd-resolved is not enabled
  [i] Restarting services...
  [✓] Enabling pihole-FTL service to start on reboot...
  [✓] Restarting pihole-FTL service...
  [✓] Deleting existing list cache
  [i] Neutrino emissions detected...
  [✓] Pulling blocklist source list into range

  [✓] Preparing new gravity database
  [i] Using libz compression

  [i] Target: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  [✓] Status: Retrieval successful
  [i] Imported 192874 domains, ignoring 1 non-domain entries
      Sample of non-domain entries:
        - 0.0.0.0

  [i] Target: http://sysctl.org/cameleon/hosts
  [✓] Status: Retrieval successful
  [i] Imported 20561 domains

  [i] Target: https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  [✓] Status: Retrieval successful
  [i] Imported 34 domains

  [i] Target: https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  [✓] Status: Retrieval successful
  [i] Imported 2701 domains

  [i] Target: https://v.firebog.net/hosts/Easylist.txt
  [✓] Status: Retrieval successful
  [i] Imported 22098 domains

  [i] Target: https://v.firebog.net/hosts/Admiral.txt
  [✓] Status: Retrieval successful
  [i] Imported 1013 domains

  [i] Target: https://v.firebog.net/hosts/AdguardDNS.txt
  [✓] Status: Retrieval successful
  [i] Imported 49466 domains

  [i] Target: https://adaway.org/hosts.txt
  [✓] Status: Retrieval successful
  [i] Imported 7355 domains

  [i] Target: https://v.firebog.net/hosts/static/w3kbl.txt
  [✓] Status: Retrieval successful
  [i] Imported 347 domains

  [i] Target: https://github.com/StevenBlack/hosts
  [✓] Status: Retrieval successful
  [i] Imported 10 domains, ignoring 438 non-domain entries
      Sample of non-domain entries:
        - "
        - ">
        - "${hostsfile}";
        - "<architecture>";
        - 0;">

  [i] Target: https://github.com/x-o-r-r-o/Pi-Hole-Block-Lists/blob/master/ads-and-tracking.txt
  [✓] Status: Retrieval successful
  [i] Imported 0 domains, ignoring 319 non-domain entries
      Sample of non-domain entries:
        - "
        - ">
        - 0;">
        - 175px">
        - 1rem;">

  [✓] Creating new gravity databases
  [✓] Storing downloaded domains in new gravity database
  [✓] Building tree
  [✓] Swapping databases
  [✓] The old database remains available.
  [i] Number of gravity domains: 296459 (250169 unique domains)
  [i] Number of exact blacklisted domains: 0
  [i] Number of regex blacklist filters: 3
  [i] Number of exact whitelisted domains: 1
  [i] Number of regex whitelist filters: 0
  [✓] Flushing DNS cache
  [✓] Cleaning up stray matter

  [✓] FTL is listening on port 53
     [✓] UDP (IPv4)
     [✓] TCP (IPv4)
     [✓] UDP (IPv6)
     [✓] TCP (IPv6)

  [✓] Pi-hole blocking is enabled

  [i] The install log is located at: /etc/pihole/install.log
  [✓] Update complete! 

  Current Pi-hole version is v5.15.5
  Current AdminLTE version is v5.18.4
  Current FTL version is v5.21
- ...
  • 2 -
root@DietPi:~# journalctl -u lighttpd
tail -10 /var/log/lighttpd/error.log
Journal file /var/log/journal/e06a67a4ff8e40c2a988f11152e0f6d3/system@da4c718c35cd4bc3abea1192c6070263-00000000000042d6-0005f76accaa8a1b.journal is truncated, ignoring file.
-- Journal begins at Wed 2023-03-22 07:31:09 CET, ends at Wed 2023-03-22 08:58:28 CET. --
-- No entries --
2023-03-22 08:54:19: gw_backend.c.238) establishing connection failed: socket: unix:/run/php/php7.4-fpm.sock: No such file or directory
2023-03-22 08:54:19: gw_backend.c.970) all handlers for /admin/index.php?login on .php are down.
2023-03-22 08:54:21: gw_backend.c.315) gw-server re-enabled: unix:/run/php/php7.4-fpm.sock  0 /run/php/php7.4-fpm.sock
root@DietPi:~# getent hosts doubleclick.com
192.168.168.22  doubleclick.com
root@DietPi:~# ls -l "$(which php)"
php -v
lrwxrwxrwx 1 root root 21 27. Feb 2020  /usr/bin/php -> /etc/alternatives/php
PHP 8.1.2 (cli) (built: Jan 27 2022 12:19:23) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.2, Copyright (c), by Zend Technologies
@Joulinar
Copy link
Collaborator

Did you upgrade from Debian Stretch before? Because PHP 8 is not available on default Debian Bullseye apt package repository and would need to be installed from 3rd party location. Do you know if Ondrej's PHP repository is setup? Can be checked as follow

apt update

@strupp666
Copy link
Author

strupp666 commented Mar 22, 2023

Hello Joulinar,

Yes it has been upgraded from stretch to buster and finally to bullseye.
I can not see Ondrej´s PHP repository:

root@DietPi:~# apt update
OK:1 https://deb.debian.org/debian bullseye InRelease
Holen:2 https://deb.debian.org/debian bullseye-updates InRelease [44,1 kB]
OK:3 https://deb.debian.org/debian-security bullseye-security InRelease
Holen:4 https://deb.debian.org/debian bullseye-backports InRelease [49,0 kB]
OK:5 https://dietpi.com/meveric all InRelease
OK:6 https://dietpi.com/meveric bullseye InRelease
Es wurden 93,0 kB in 3 s geholt (30,9 kB/s).
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Alle Pakete sind aktuell.

@Joulinar
Copy link
Collaborator

Did you follow our update guide to switch from Stretch to Buster? https://dietpi.com/docs/usage/#how-to-upgrade-to-buster
If yes, the repository has been removed. But I guess the PHP version has not been set back to Debian repository.

Can you check which packages are installed actually

dpkg -l *php*

@strupp666
Copy link
Author

strupp666 commented Mar 22, 2023

Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
         Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
||/ Name                  Version                                           Arch
itektur  Beschreibung
+++-=====================-=================================================-====
========-===============================================================
un  libapache2-mod-php    <keine>                                           <kei
ne>      (keine Beschreibung vorhanden)
ii  libapache2-mod-php7.4 7.4.33-1+deb11u3                                  armh
f        server-side, HTML-embedded scripting language (Apache 2 module)
un  php                   <keine>                                           <kei
ne>      (keine Beschreibung vorhanden)
ii  php-apcu              5.1.21+4.0.11-7+0~20220117.31+debian9~1.gbp9a887a armhf        APC User Cache for PHP
un  php-apcu-bc           <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-bz2               <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-calendar          <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-cgi               <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-cli               <keine>                                           <keine>      (keine Beschreibung vorhanden)
ii  php-common            2:92+0~20220117.43+debian9~1.gbpe0d14e            all         Common files for PHP packages
un  php-crypt-gpg         <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-ctype             <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-curl              <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-dom               <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-exif              <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-ffi               <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-fileinfo          <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-fpm               <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-ftp               <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-gd                <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-iconv             <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-intl              <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-json              <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-mbstring          <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-mysqli            <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-mysqlnd           <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-opcache           <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-pdo               <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-pdo-mysql         <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-pear              <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-phar              <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-phpdbg            <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-posix             <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-readline          <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-shmop             <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-simplexml         <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-sockets           <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-sysvmsg           <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-sysvsem           <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-sysvshm           <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-tokenizer         <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-xcache            <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-xml               <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-xmlreader         <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-xmlwriter         <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-xsl               <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-yac               <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php-zip               <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php5.6-common         <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php5.6-json           <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.0-common         <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.0-curl           <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.2-sodium         <keine>                                           <keine>      (keine Beschreibung vorhanden)
ii  php7.4                7.4.33-1+deb11u3                                  all         server-side, HTML-embedded scripting language (metapackage)
ii  php7.4-bz2            7.4.33-1+deb11u3                                  armhf        bzip2 module for PHP
un  php7.4-calendar       <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.4-cgi            <keine>                                           <keine>      (keine Beschreibung vorhanden)
ii  php7.4-cli            7.4.33-1+deb11u3                                  armhf        command-line interpreter for the PHP scripting language
ii  php7.4-common         7.4.33-1+deb11u3                                  armhf        documentation, examples and common module for PHP
un  php7.4-ctype          <keine>                                           <keine>      (keine Beschreibung vorhanden)
ii  php7.4-curl           7.4.33-1+deb11u3                                  armhf        CURL module for PHP
un  php7.4-dom            <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.4-exif           <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.4-ffi            <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.4-fileinfo       <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.4-fpm            <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.4-ftp            <keine>                                           <keine>      (keine Beschreibung vorhanden)
ii  php7.4-gd             7.4.33-1+deb11u3                                  armhf        GD module for PHP
un  php7.4-gettext        <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.4-iconv          <keine>                                           <keine>      (keine Beschreibung vorhanden)
ii  php7.4-intl           7.4.33-1+deb11u3                                  armhf        Internationalisation module for PHP
ii  php7.4-json           7.4.33-1+deb11u3                                  armhf        JSON module for PHP
ii  php7.4-mbstring       7.4.33-1+deb11u3                                  armhf        MBSTRING module for PHP
ii  php7.4-mysql          7.4.33-1+deb11u3                                  armhf        MySQL module for PHP
un  php7.4-mysqli         <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.4-mysqlnd        <keine>                                           <keine>      (keine Beschreibung vorhanden)
ii  php7.4-opcache        7.4.33-1+deb11u3                                  armhf        Zend OpCache module for PHP
un  php7.4-pdo            <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.4-pdo-mysql      <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.4-phar           <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.4-posix          <keine>                                           <keine>      (keine Beschreibung vorhanden)
ii  php7.4-readline       7.4.33-1+deb11u3                                  armhf        readline module for PHP
un  php7.4-shmop          <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.4-simplexml      <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.4-sockets        <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.4-sysvmsg        <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.4-sysvsem        <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.4-sysvshm        <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.4-tokenizer      <keine>                                           <keine>      (keine Beschreibung vorhanden)
ii  php7.4-xml            7.4.33-1+deb11u3                                  armhf        DOM, SimpleXML, XML, and XSL module for PHP
un  php7.4-xmlreader      <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php7.4-xmlwriter      <keine>                                           <keine>      (keine Beschreibung vorhanden)
ii  php7.4-xsl            7.4.33-1+deb11u3                                  all         XSL module for PHP (dummy)
ii  php7.4-zip            7.4.33-1+deb11u3                                  armhf        Zip module for PHP
ii  php8.1-apcu           5.1.21+4.0.11-7+0~20220117.31+debian9~1.gbp9a887a armhf        APC User Cache for PHP
un  php8.1-calendar       <keine>                                           <keine>      (keine Beschreibung vorhanden)
ii  php8.1-cli            8.1.2-1+0~20220127.12+debian9~1.gbpe46588         armhf        command-line interpreter for the PHP scripting language
ii  php8.1-common         8.1.2-1+0~20220127.12+debian9~1.gbpe46588         armhf        documentation, examples and common module for PHP
un  php8.1-ctype          <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php8.1-exif           <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php8.1-ffi            <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php8.1-fileinfo       <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php8.1-ftp            <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php8.1-gettext        <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php8.1-iconv          <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php8.1-json           <keine>                                           <keine>      (keine Beschreibung vorhanden)
ii  php8.1-opcache        8.1.2-1+0~20220127.12+debian9~1.gbpe46588         armhf        Zend OpCache module for PHP
un  php8.1-pdo            <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php8.1-phar           <keine>                                           <keine>      (keine Beschreibung vorhanden)
ii  php8.1-phpdbg         8.1.2-1+0~20220127.12+debian9~1.gbpe46588         armhf        server-side, HTML-embedded scripting language (PHPDBG binary)
un  php8.1-posix          <keine>                                           <keine>      (keine Beschreibung vorhanden)
ii  php8.1-readline       8.1.2-1+0~20220127.12+debian9~1.gbpe46588         armhf        readline module for PHP
un  php8.1-shmop          <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php8.1-sockets        <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php8.1-sysvmsg        <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php8.1-sysvsem        <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php8.1-sysvshm        <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  php8.1-tokenizer      <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  phpapi-20190902       <keine>                                           <keine>      (keine Beschreibung vorhanden)
un  phpapi-20210902       <keine>                                           <keine>      (keine Beschreibung vorhanden)

@strupp666
Copy link
Author

And yes I follow the guide.

@Joulinar
Copy link
Collaborator

Joulinar commented Mar 22, 2023

@MichaIng could you give a helping hand pls before doing something wrong. I guess PHP 8.1 needs to be purged right? There are leftover from debian9

@strupp666
Copy link
Author

Thanks for considering my request.

@MichaIng
Copy link
Owner

Just purge PHP 8.1 packages explicitly:

apt autopurge $(dpkg --get-selections 'php8.2-*' | mawk '{print $1}')

@strupp666
Copy link
Author

strupp666 commented Mar 22, 2023

root@DietPi:~# apt autopurge $(dpkg --get-selections 'php8.2-*' | mawk '{print $1}')
dpkg: Kein Paket gefunden, das auf php8.2-* passt
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.

@strupp666
Copy link
Author

Maybe no minus?

@MichaIng
Copy link
Owner

PHP 8.1, of course:

apt autopurge $(dpkg --get-selections 'php8.1-*' | mawk '{print $1}')

@strupp666
Copy link
Author

After reboot, 503 fail still appears.

@strupp666
Copy link
Author

strupp666 commented Mar 22, 2023

root@DietPi:~# dpkg -l *php*
Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
         Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
||/ Name                  Version                                Architektur  Be
schreibung
+++-=====================-======================================-============-==
=============================================================
un  libapache2-mod-php    <keine>                                <keine>      (k
eine Beschreibung vorhanden)
ii  libapache2-mod-php7.4 7.4.33-1+deb11u3                       armhf        se
rver-side, HTML-embedded scripting language (Apache 2 module)
un  php                   <keine>                                <keine>      (k
eine Beschreibung vorhanden)
un  php-bz2               <keine>                                <keine>      (k
eine Beschreibung vorhanden)
un  php-calendar          <keine>                                <keine>      (k
eine Beschreibung vorhanden)
un  php-cgi               <keine>                                <keine>      (k
eine Beschreibung vorhanden)
un  php-cli               <keine>                                <keine>      (k
eine Beschreibung vorhanden)
ii  php-common            2:92+0~20220117.43+debian9~1.gbpe0d14e all          Co
mmon files for PHP packages
un  php-crypt-gpg         <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-ctype             <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-curl              <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-dom               <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-exif              <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-ffi               <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-fileinfo          <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-fpm               <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-ftp               <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-gd                <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-iconv             <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-intl              <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-json              <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-mbstring          <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-mysqli            <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-mysqlnd           <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-opcache           <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-pdo               <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-pdo-mysql         <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-pear              <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-phar              <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-posix             <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-readline          <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-shmop             <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-simplexml         <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-sockets           <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-sysvmsg           <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-sysvsem           <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-sysvshm           <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-tokenizer         <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-xml               <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-xmlreader         <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-xmlwriter         <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-xsl               <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php-zip               <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php5.6-common         <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php5.6-json           <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.0-common         <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.0-curl           <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.2-sodium         <keine>                                <keine>      (keine Beschre
ibung vorhanden)
ii  php7.4                7.4.33-1+deb11u3                       all          server-side, H
TML-embedded scripting language (metapackage)
ii  php7.4-bz2            7.4.33-1+deb11u3                       armhf        bzip2 module f
or PHP
un  php7.4-calendar       <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.4-cgi            <keine>                                <keine>      (keine Beschre
ibung vorhanden)
ii  php7.4-cli            7.4.33-1+deb11u3                       armhf        command-line i
nterpreter for the PHP scripting language
ii  php7.4-common         7.4.33-1+deb11u3                       armhf        documentation,
 examples and common module for PHP
un  php7.4-ctype          <keine>                                <keine>      (keine Beschre
ibung vorhanden)
ii  php7.4-curl           7.4.33-1+deb11u3                       armhf        CURL module fo
r PHP
un  php7.4-dom            <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.4-exif           <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.4-ffi            <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.4-fileinfo       <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.4-fpm            <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.4-ftp            <keine>                                <keine>      (keine Beschre
ibung vorhanden)
ii  php7.4-gd             7.4.33-1+deb11u3                       armhf        GD module for
PHP
un  php7.4-gettext        <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.4-iconv          <keine>                                <keine>      (keine Beschre
ibung vorhanden)
ii  php7.4-intl           7.4.33-1+deb11u3                       armhf        Internationali
sation module for PHP
ii  php7.4-json           7.4.33-1+deb11u3                       armhf        JSON module fo
r PHP
ii  php7.4-mbstring       7.4.33-1+deb11u3                       armhf        MBSTRING modul
e for PHP
ii  php7.4-mysql          7.4.33-1+deb11u3                       armhf        MySQL module f
or PHP
un  php7.4-mysqli         <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.4-mysqlnd        <keine>                                <keine>      (keine Beschre
ibung vorhanden)
ii  php7.4-opcache        7.4.33-1+deb11u3                       armhf        Zend OpCache m
odule for PHP
un  php7.4-pdo            <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.4-pdo-mysql      <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.4-phar           <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.4-posix          <keine>                                <keine>      (keine Beschre
ibung vorhanden)
ii  php7.4-readline       7.4.33-1+deb11u3                       armhf        readline modul
e for PHP
un  php7.4-shmop          <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.4-simplexml      <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.4-sockets        <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.4-sysvmsg        <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.4-sysvsem        <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.4-sysvshm        <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.4-tokenizer      <keine>                                <keine>      (keine Beschre
ibung vorhanden)
ii  php7.4-xml            7.4.33-1+deb11u3                       armhf        DOM, SimpleXML
, XML, and XSL module for PHP
un  php7.4-xmlreader      <keine>                                <keine>      (keine Beschre
ibung vorhanden)
un  php7.4-xmlwriter      <keine>                                <keine>      (keine Beschre
ibung vorhanden)
ii  php7.4-xsl            7.4.33-1+deb11u3                       all          XSL module for
 PHP (dummy)
ii  php7.4-zip            7.4.33-1+deb11u3                       armhf        Zip module for
 PHP
un  phpapi-20190902       <keine>                                <keine>      (keine Beschre
ibung vorhanden)

@MichaIng
Copy link
Owner

Did you really follow our guide and reinstalled all applications which make use of PHP, including the webserver? Likely a module is missing or the webserver is still configured to use another PHP version. Ah, actually I do not see php7.4-fpm installed, so it was definitely not reinstalled.

Please repeat those steps which should cover everything: https://dietpi.com/blog/?p=811#2.2.4-software-migrations

@strupp666
Copy link
Author

Now it is running.
TY very much.
Maybe I had some bees in my fingers. I follow all steps...

@MichaIng
Copy link
Owner

Okay great. I'll mark this as closed. Feel free to reopen if required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants