Pihole Web Interface Issue

Thank you for your reply. I have apache installed for a weather application that I have running in PHP. I would like to have PHP running in apache too, but I'm unsure how to specify what PHP version I would like to us in apache. Currently I just get the text of a PHP file when viewing my weather website from apache.

Running the purge command to remove the apache php module brings this output:

root@pi:/home/ape# apt purge libapache2-mod-php7.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'libapache2-mod-php7.4' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libonig5 libzip4
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@pi:/home/ape#

But I don't remember installing a package with that name when I set apache up.

All of the other commands worked successfully and I no longer get any PHP Warnings when running pihole -r. The web interface is still giving me a 403 Forbidden message however I am getting a diffferent message when running pihole -r (where I would normally see the PHP Warnings.)

root@pi:/home/ape# pihole -r

  [โœ“] Root user check

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

  [i] Existing PHP installation detected : PHP version 7.3.17-1+0~20200419.57+debian10~1.gbp0fda17
  [i] Repair option selected
  [i] Repair option selected
  [โœ“] Disk space check
  [โœ—] Update local cache of available packages
  Error: Unable to update package cache. Please try "apt-get update"

Oh! So I was on the right lines in Post 11

Any chance of another debug token please? The original one has expired.

And what is the output of apt-get update (may require sudo)

1 Like

Yes, you were on the right lines.

I have lighthttpd installed only for the pi-hole though, I don't use apache for that as I want to keep things simple.

Here's the new debug token: https://tricorder.pi-hole.net/3glkuqefic

Here is the output of sudo apt-get update:

root@pi:/home/ape# sudo apt-get update
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://security.debian.org/debian-security buster/updates InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Hit:4 http://repo.mysql.com/apt/debian buster InRelease
Hit:5 https://packages.sury.org/php buster InRelease
Hit:6 https://deb.nodesource.com/node_10.x buster InRelease
Hit:7 https://download.docker.com/linux/ubuntu bionic InRelease
Hit:8 https://download.docker.com/linux/debian buster InRelease
Ign:9 https://download.docker.com/linux/ubuntu buster InRelease
Ign:10 http://download.webmin.com/download/repository sarge InRelease
Err:11 https://download.docker.com/linux/ubuntu buster Release
  404  Not Found [IP: 52.84.141.31 443]
Hit:12 http://download.webmin.com/download/repository sarge Release
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/ubuntu buster Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list:30
W: Target Translations (stable/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list:30
W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list:30
W: Target DEP-11 (stable/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list:30
W: Target DEP-11 (stable/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list:30
W: Target DEP-11-icons-small (stable/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list:30
W: Target DEP-11-icons (stable/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list:30
W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list.d/docker.list:1
W: Target Translations (stable/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list.d/docker.list:1
W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list.d/docker.list:1
W: Target DEP-11 (stable/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list.d/docker.list:1
W: Target DEP-11 (stable/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list.d/docker.list:1
W: Target DEP-11-icons-small (stable/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list.d/docker.list:1
W: Target DEP-11-icons (stable/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list.d/docker.list:1
N: Skipping acquire of configured file 'stable/binary-i386/Packages' as repository 'https://download.docker.com/linux/debian buster InRelease' doesn't support architecture 'i386'
W: Target Packages (contrib/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/webmin.list:1 and /etc/apt/sources.list.d/webmin.list:2
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/webmin.list:1 and /etc/apt/sources.list.d/webmin.list:2
W: Target Translations (contrib/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/webmin.list:1 and /etc/apt/sources.list.d/webmin.list:2
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/webmin.list:1 and /etc/apt/sources.list.d/webmin.list:2
W: Target DEP-11 (contrib/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list.d/webmin.list:1 and /etc/apt/sources.list.d/webmin.list:2
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/webmin.list:1 and /etc/apt/sources.list.d/webmin.list:2
W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/webmin.list:1 and /etc/apt/sources.list.d/webmin.list:2
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/webmin.list:1 and /etc/apt/sources.list.d/webmin.list:2
W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list:30
W: Target Translations (stable/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list:30
W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list:30
W: Target DEP-11 (stable/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list:30
W: Target DEP-11 (stable/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list:30
W: Target DEP-11-icons-small (stable/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list:30
W: Target DEP-11-icons (stable/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list:30
W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list.d/docker.list:1
W: Target Translations (stable/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list.d/docker.list:1
W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list.d/docker.list:1
W: Target DEP-11 (stable/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list.d/docker.list:1
W: Target DEP-11 (stable/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list.d/docker.list:1
W: Target DEP-11-icons-small (stable/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list.d/docker.list:1
W: Target DEP-11-icons (stable/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list.d/docker.list:1
W: Target Packages (contrib/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/webmin.list:1 and /etc/apt/sources.list.d/webmin.list:2
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/webmin.list:1 and /etc/apt/sources.list.d/webmin.list:2
W: Target Translations (contrib/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/webmin.list:1 and /etc/apt/sources.list.d/webmin.list:2
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/webmin.list:1 and /etc/apt/sources.list.d/webmin.list:2
W: Target DEP-11 (contrib/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list.d/webmin.list:1 and /etc/apt/sources.list.d/webmin.list:2
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/webmin.list:1 and /etc/apt/sources.list.d/webmin.list:2
W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/webmin.list:1 and /etc/apt/sources.list.d/webmin.list:2
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/webmin.list:1 and /etc/apt/sources.list.d/webmin.list:2
root@pi:/home/ape#   

EDIT:

After some research I was able to edit the source that sudo apt-get update was using and I removed the broken links by doing the command sudo nano /etc/apt/sources.list and removing them.

I am now able to run pihole -r without getting the update error message. Below is the output:

root@pi:/home/ape# pihole -r

  [โœ“] Root user check

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

  [i] Existing PHP installation detected : PHP version 7.3.17-1+0~20200419.57+debian10~1.gbp0fda17
  [i] Repair option selected
  [โœ“] Disk space check
  [โœ“] Update local cache of available packages

  [โœ“] Checking apt-get for upgraded packages... up to date!

  [i] Installer Dependency checks...
  [โœ“] Checking for dhcpcd5
  [โœ“] Checking for git
  [โœ“] Checking for iproute2
  [โœ“] Checking for whiptail

  [i] SELinux not detected
  [i] Performing reconfiguration, skipping download of local repos
  [โœ“] Resetting repository within /etc/.pihole...
  [โœ“] Resetting repository within /var/www/html/admin...
  [i] Main Dependency checks...
  [โœ“] Checking for cron
  [โœ“] Checking for curl
  [โœ“] Checking for dnsutils
  [โœ“] Checking for iputils-ping
  [โœ“] Checking for lsof
  [โœ“] Checking for netcat
  [โœ“] Checking for psmisc
  [โœ“] Checking for sudo
  [โœ“] Checking for unzip
  [โœ“] Checking for wget
  [โœ“] Checking for idn2
  [โœ“] Checking for sqlite3
  [โœ“] Checking for libcap2-bin
  [โœ“] Checking for dns-root-data
  [โœ“] Checking for libcap2
  [โœ“] Checking for lighttpd
  [โœ“] Checking for php7.3-common
  [โœ“] Checking for php7.3-cgi
  [โœ“] Checking for php7.3-sqlite3
  [โœ“] Checking for php7.3-xml
  [i] Checking for php-intl (will be installed)
  [i] Processing apt-get install(s) for: php-intl, please wait...
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libonig5 libzip4
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  php7.4-common php7.4-intl
The following NEW packages will be installed:
  php-intl php7.4-common php7.4-intl
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 649 kB/788 kB of archives.
After this operation, 7,665 kB of additional disk space will be used.
Get:1 https://packages.sury.org/php buster/main i386 php7.4-common i386 7.4.5-1+0~20200419.16+debian10~1.gbpc40fd0 [649 kB]
Fetched 649 kB in 0s (1,907 kB/s)
Selecting previously unselected package php7.4-common.
(Reading database ... 197191 files and directories currently installed.)
Preparing to unpack .../php7.4-common_7.4.5-1+0~20200419.16+debian10~1.gbpc40fd0_i386.deb ...
Unpacking php7.4-common (7.4.5-1+0~20200419.16+debian10~1.gbpc40fd0) ...
Selecting previously unselected package php7.4-intl.
Preparing to unpack .../php7.4-intl_7.4.5-1+0~20200419.16+debian10~1.gbpc40fd0_i386.deb ...
Unpacking php7.4-intl (7.4.5-1+0~20200419.16+debian10~1.gbpc40fd0) ...
Selecting previously unselected package php-intl.
Preparing to unpack .../php-intl_2%3a7.4+76+0~20200511.26+debian10~1.gbpc9beb6_all.deb ...
Unpacking php-intl (2:7.4+76+0~20200511.26+debian10~1.gbpc9beb6) ...
Setting up php7.4-common (7.4.5-1+0~20200419.16+debian10~1.gbpc40fd0) ...

Creating config file /etc/php/7.4/mods-available/calendar.ini with new version

Creating config file /etc/php/7.4/mods-available/ctype.ini with new version

Creating config file /etc/php/7.4/mods-available/exif.ini with new version

Creating config file /etc/php/7.4/mods-available/fileinfo.ini with new version

Creating config file /etc/php/7.4/mods-available/ffi.ini with new version

Creating config file /etc/php/7.4/mods-available/ftp.ini with new version

Creating config file /etc/php/7.4/mods-available/gettext.ini with new version

Creating config file /etc/php/7.4/mods-available/iconv.ini with new version

Creating config file /etc/php/7.4/mods-available/pdo.ini with new version

Creating config file /etc/php/7.4/mods-available/phar.ini with new version

Creating config file /etc/php/7.4/mods-available/posix.ini with new version

Creating config file /etc/php/7.4/mods-available/shmop.ini with new version

Creating config file /etc/php/7.4/mods-available/sockets.ini with new version

Creating config file /etc/php/7.4/mods-available/sysvmsg.ini with new version

Creating config file /etc/php/7.4/mods-available/sysvsem.ini with new version

Creating config file /etc/php/7.4/mods-available/sysvshm.ini with new version

Creating config file /etc/php/7.4/mods-available/tokenizer.ini with new version
Setting up php7.4-intl (7.4.5-1+0~20200419.16+debian10~1.gbpc40fd0) ...

Creating config file /etc/php/7.4/mods-available/intl.ini with new version
Setting up php-intl (2:7.4+76+0~20200511.26+debian10~1.gbpc9beb6) ...
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  [โœ“] Enabling lighttpd service to start on reboot...
  [โœ“] Checking for user 'pihole'

  [i] FTL Checks...

  [โœ“] Detected 32bit (i686) architecture
  [i] Checking for existing FTL binary...
  [i] Latest FTL Binary already installed (v5.0). Confirming Checksum...
  [i] Checksum correct. No need to download!
/etc/.pihole/automated install/basic-install.sh: line 1892: usermod: command not found
  [i] Testing if systemd-resolved is enabled
  [i] Systemd-resolved is not enabled
  [โœ“] Restarting lighttpd service...
  [โœ“] Enabling lighttpd service to start on reboot...
  [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] Target: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  [โœ“] Status: Retrieval successful
  [i] Received 57681 domains

  [i] Target: https://mirror1.malwaredomains.com/files/justdomains
  [โœ“] Status: Retrieval successful
  [i] Received 26857 domains

  [i] Target: https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  [โœ“] Status: Retrieval successful
  [i] Received 34 domains

  [i] Target: https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  [โœ“] Status: Retrieval successful
  [i] Received 2701 domains

  [โœ“] Storing downloaded domains in new gravity database
  [โœ“] Building tree
  [โœ“] Swapping databases
  [i] Number of gravity domains: 87273 (84831 unique domains)
  [i] Number of exact blacklisted domains: 0
  [i] Number of regex blacklist filters: 0
  [i] Number of exact whitelisted domains: 0
  [i] Number of regex whitelist filters: 0
  [โœ“] Flushing DNS cache
  [โœ“] Cleaning up stray matter
  [โœ—] /usr/local/bin/pihole: line 129: service: command not found

  [โœ“] DNS service is running
  [โœ“] Pi-hole blocking is Enabled

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

  Current Pi-hole version is v5.0.
  Current AdminLTE version is v5.0.
  Current FTL version is v5.0.

Sorry for editing back and forth, should have read your whole post carefully first :sweat_smile:

So, great that you solved the repository issues already, generally remove all the Docker Ubuntu repos as well, those caused the warnings when running apt update (the error was caused by the one invalid entry ubuntu buster). The only Docker source should be: https://download.docker.com/linux/debian buster

Since Ondrejs repository is still in place, while PHP7.3 is as well still installed, Pi-hole again pulled PHP7.4 through the php-intl meta package. I mean if it works now without issues, probably better to not touch a running system :wink:. However to cleanup the following could be done:
Identify where Ondrejs repo is located

grep -r sury /etc/apt/ 

Remove the found line or file.
Purge again all PHP7.4 packages + the php-intl meta package:

apt purge 'php7.4-*' php-intl
apt autopurge

Install intl module for PHP7.3:

apt install php7.3-intl

But that should be it, Lighttpd was using PHP7.3 anyway, the missing intl module for that version could have caused some issues on web UI.

:sweat_smile: haha don't worry about it!

Yes, took some googling as my knowledge of Linux is very limited but I was able to solve that issue on my own.

Sadly the web interface still dosen't work, giving me the usual 403 forbidden page :confused:

The output of the first command is:


root@pi:/home/ape# grep -r sury /etc/apt/
Binary file /etc/apt/trusted.gpg.d/php.gpg matches
/etc/apt/sources.list.d/php.list.save:deb https://packages.sury.org/php/ buster main
/etc/apt/sources.list.d/php.list:deb https://packages.sury.org/php/ buster main
root@pi:/home/ape#

Should I remove the file /etc/apt/trusted.gpg.d/php.gpg?

Output for the php purge command is:

root@pi:/home/ape# apt purge 'php7.4-*' php-intl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'php7.4-snmp-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-bz2' for glob 'php7.4-*'
Note, selecting 'php7.4-gd' for glob 'php7.4-*'
Note, selecting 'php7.4-json-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-cgi' for glob 'php7.4-*'
Note, selecting 'php7.4-cli' for glob 'php7.4-*'
Note, selecting 'php7.4-pdo-odbc' for glob 'php7.4-*'
Note, selecting 'php7.4-dba' for glob 'php7.4-*'
Note, selecting 'php7.4-dbg' for glob 'php7.4-*'
Note, selecting 'php7.4-dev' for glob 'php7.4-*'
Note, selecting 'php7.4-bz2-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-dom' for glob 'php7.4-*'
Note, selecting 'php7.4-dba-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-tidy' for glob 'php7.4-*'
Note, selecting 'php7.4-odbc-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-bcmath-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-ffi' for glob 'php7.4-*'
Note, selecting 'php7.4-fpm' for glob 'php7.4-*'
Note, selecting 'php7.4-ftp' for glob 'php7.4-*'
Note, selecting 'php7.4-xmlreader' for glob 'php7.4-*'
Note, selecting 'php7.4-gmp' for glob 'php7.4-*'
Note, selecting 'php7.4-mysqli' for glob 'php7.4-*'
Note, selecting 'php7.4-sybase' for glob 'php7.4-*'
Note, selecting 'php7.4-sysvmsg' for glob 'php7.4-*'
Note, selecting 'php7.4-json' for glob 'php7.4-*'
Note, selecting 'php7.4-xml-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-gd-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-phar' for glob 'php7.4-*'
Note, selecting 'php7.4-tokenizer' for glob 'php7.4-*'
Note, selecting 'php7.4-pgsql' for glob 'php7.4-*'
Note, selecting 'php7.4-fpm-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-curl' for glob 'php7.4-*'
Note, selecting 'php7.4-phpdbg' for glob 'php7.4-*'
Note, selecting 'php7.4-interbase' for glob 'php7.4-*'
Note, selecting 'php7.4-shmop' for glob 'php7.4-*'
Note, selecting 'php7.4-mbstring-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-ldap' for glob 'php7.4-*'
Note, selecting 'php7.4-curl-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-pdo-mysql' for glob 'php7.4-*'
Note, selecting 'php7.4-sysvsem' for glob 'php7.4-*'
Note, selecting 'php7.4-sysvshm' for glob 'php7.4-*'
Note, selecting 'php7.4-phpdbg-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-uploadprogress' for glob 'php7.4-*'
Note, selecting 'php7.4-pdo' for glob 'php7.4-*'
Note, selecting 'php7.4-imap' for glob 'php7.4-*'
Note, selecting 'php7.4-sockets' for glob 'php7.4-*'
Note, selecting 'php7.4-ctype' for glob 'php7.4-*'
Note, selecting 'php7.4-calendar' for glob 'php7.4-*'
Note, selecting 'php7.4-intl' for glob 'php7.4-*'
Note, selecting 'php7.4-pspell-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-fileinfo' for glob 'php7.4-*'
Note, selecting 'php7.4-sqlite3' for glob 'php7.4-*'
Note, selecting 'php7.4-common-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-odbc' for glob 'php7.4-*'
Note, selecting 'php7.4-pdo-dblib' for glob 'php7.4-*'
Note, selecting 'php7.4-xmlrpc' for glob 'php7.4-*'
Note, selecting 'php7.4-tidy-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-opcache' for glob 'php7.4-*'
Note, selecting 'php7.4-xmlrpc-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-snmp' for glob 'php7.4-*'
Note, selecting 'php7.4-soap' for glob 'php7.4-*'
Note, selecting 'php7.4-xml' for glob 'php7.4-*'
Note, selecting 'php7.4-xsl' for glob 'php7.4-*'
Note, selecting 'php7.4-zip-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-zip' for glob 'php7.4-*'
Note, selecting 'php7.4-simplexml' for glob 'php7.4-*'
Note, selecting 'php7.4-gearman' for glob 'php7.4-*'
Note, selecting 'php7.4-pspell' for glob 'php7.4-*'
Note, selecting 'php7.4-mysql' for glob 'php7.4-*'
Note, selecting 'php7.4-recode' for glob 'php7.4-*'
Note, selecting 'php7.4-intl-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-gmp-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-mbstring' for glob 'php7.4-*'
Note, selecting 'php7.4-pgsql-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-readline' for glob 'php7.4-*'
Note, selecting 'php7.4-pdo-firebird' for glob 'php7.4-*'
Note, selecting 'php7.4-imap-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-exif' for glob 'php7.4-*'
Note, selecting 'php7.4-cgi-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-mysqlnd' for glob 'php7.4-*'
Note, selecting 'php7.4-mysql-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-sqlite3-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-pdo-sqlite' for glob 'php7.4-*'
Note, selecting 'php7.4-ldap-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-common' for glob 'php7.4-*'
Note, selecting 'php7.4-enchant-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-bcmath' for glob 'php7.4-*'
Note, selecting 'php7.4-soap-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-readline-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-pdo-pgsql' for glob 'php7.4-*'
Note, selecting 'php7.4-posix' for glob 'php7.4-*'
Note, selecting 'php7.4-iconv' for glob 'php7.4-*'
Note, selecting 'php7.4-sybase-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-cli-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-enchant' for glob 'php7.4-*'
Note, selecting 'php7.4-opcache-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-interbase-dbgsym' for glob 'php7.4-*'
Note, selecting 'php7.4-gettext' for glob 'php7.4-*'
Note, selecting 'php7.4-xmlwriter' for glob 'php7.4-*'
Package 'php7.4-dbg' is not installed, so not removed
Note, selecting 'php-gearman' instead of 'php7.4-gearman'
Package 'php7.4-recode' is not installed, so not removed
Note, selecting 'php-uploadprogress' instead of 'php7.4-uploadprogress'
Note, selecting 'php7.4-common' instead of 'php7.4-calendar'
Note, selecting 'php7.4-common' instead of 'php7.4-ctype'
Note, selecting 'php7.4-common' instead of 'php7.4-exif'
Note, selecting 'php7.4-common' instead of 'php7.4-ffi'
Note, selecting 'php7.4-common' instead of 'php7.4-fileinfo'
Note, selecting 'php7.4-common' instead of 'php7.4-ftp'
Note, selecting 'php7.4-common' instead of 'php7.4-gettext'
Note, selecting 'php7.4-common' instead of 'php7.4-iconv'
Note, selecting 'php7.4-common' instead of 'php7.4-pdo'
Note, selecting 'php7.4-common' instead of 'php7.4-phar'
Note, selecting 'php7.4-common' instead of 'php7.4-posix'
Note, selecting 'php7.4-common' instead of 'php7.4-shmop'
Note, selecting 'php7.4-common' instead of 'php7.4-sockets'
Note, selecting 'php7.4-common' instead of 'php7.4-sysvmsg'
Note, selecting 'php7.4-common' instead of 'php7.4-sysvsem'
Note, selecting 'php7.4-common' instead of 'php7.4-sysvshm'
Note, selecting 'php7.4-common' instead of 'php7.4-tokenizer'
Note, selecting 'php7.4-interbase' instead of 'php7.4-pdo-firebird'
Note, selecting 'php7.4-mysql' instead of 'php7.4-mysqli'
Note, selecting 'php7.4-mysql' instead of 'php7.4-mysqlnd'
Note, selecting 'php7.4-mysql' instead of 'php7.4-pdo-mysql'
Note, selecting 'php7.4-odbc' instead of 'php7.4-pdo-odbc'
Note, selecting 'php7.4-pgsql' instead of 'php7.4-pdo-pgsql'
Note, selecting 'php7.4-sqlite3' instead of 'php7.4-pdo-sqlite'
Note, selecting 'php7.4-sybase' instead of 'php7.4-pdo-dblib'
Note, selecting 'php7.4-xml' instead of 'php7.4-dom'
Note, selecting 'php7.4-xml' instead of 'php7.4-simplexml'
Note, selecting 'php7.4-xml' instead of 'php7.4-xmlreader'
Note, selecting 'php7.4-xml' instead of 'php7.4-xmlwriter'
Package 'php-intl' is not installed, so not removed
Package 'php7.4-bcmath' is not installed, so not removed
Package 'php7.4-bcmath-dbgsym' is not installed, so not removed
Package 'php7.4-bz2' is not installed, so not removed
Package 'php7.4-bz2-dbgsym' is not installed, so not removed
Package 'php7.4-cgi' is not installed, so not removed
Package 'php7.4-cgi-dbgsym' is not installed, so not removed
Package 'php7.4-cli' is not installed, so not removed
Package 'php7.4-cli-dbgsym' is not installed, so not removed
Package 'php7.4-common' is not installed, so not removed
Package 'php7.4-common-dbgsym' is not installed, so not removed
Package 'php7.4-curl' is not installed, so not removed
Package 'php7.4-curl-dbgsym' is not installed, so not removed
Package 'php7.4-dba' is not installed, so not removed
Package 'php7.4-dba-dbgsym' is not installed, so not removed
Package 'php7.4-dev' is not installed, so not removed
Package 'php7.4-enchant' is not installed, so not removed
Package 'php7.4-enchant-dbgsym' is not installed, so not removed
Package 'php7.4-fpm' is not installed, so not removed
Package 'php7.4-fpm-dbgsym' is not installed, so not removed
Package 'php7.4-gd' is not installed, so not removed
Package 'php7.4-gd-dbgsym' is not installed, so not removed
Package 'php7.4-gmp' is not installed, so not removed
Package 'php7.4-gmp-dbgsym' is not installed, so not removed
Package 'php7.4-imap' is not installed, so not removed
Package 'php7.4-imap-dbgsym' is not installed, so not removed
Package 'php7.4-interbase' is not installed, so not removed
Package 'php7.4-interbase-dbgsym' is not installed, so not removed
Package 'php7.4-intl' is not installed, so not removed
Package 'php7.4-intl-dbgsym' is not installed, so not removed
Package 'php7.4-json' is not installed, so not removed
Package 'php7.4-json-dbgsym' is not installed, so not removed
Package 'php7.4-ldap' is not installed, so not removed
Package 'php7.4-ldap-dbgsym' is not installed, so not removed
Package 'php7.4-mbstring' is not installed, so not removed
Package 'php7.4-mbstring-dbgsym' is not installed, so not removed
Package 'php7.4-mysql' is not installed, so not removed
Package 'php7.4-mysql-dbgsym' is not installed, so not removed
Package 'php7.4-odbc' is not installed, so not removed
Package 'php7.4-odbc-dbgsym' is not installed, so not removed
Package 'php7.4-opcache' is not installed, so not removed
Package 'php7.4-opcache-dbgsym' is not installed, so not removed
Package 'php7.4-pgsql' is not installed, so not removed
Package 'php7.4-pgsql-dbgsym' is not installed, so not removed
Package 'php7.4-phpdbg' is not installed, so not removed
Package 'php7.4-phpdbg-dbgsym' is not installed, so not removed
Package 'php7.4-pspell' is not installed, so not removed
Package 'php7.4-pspell-dbgsym' is not installed, so not removed
Package 'php7.4-readline' is not installed, so not removed
Package 'php7.4-readline-dbgsym' is not installed, so not removed
Package 'php7.4-snmp' is not installed, so not removed
Package 'php7.4-snmp-dbgsym' is not installed, so not removed
Package 'php7.4-soap' is not installed, so not removed
Package 'php7.4-soap-dbgsym' is not installed, so not removed
Package 'php7.4-sqlite3' is not installed, so not removed
Package 'php7.4-sqlite3-dbgsym' is not installed, so not removed
Package 'php7.4-sybase' is not installed, so not removed
Package 'php7.4-sybase-dbgsym' is not installed, so not removed
Package 'php7.4-tidy' is not installed, so not removed
Package 'php7.4-tidy-dbgsym' is not installed, so not removed
Package 'php7.4-xml' is not installed, so not removed
Package 'php7.4-xml-dbgsym' is not installed, so not removed
Package 'php7.4-xmlrpc' is not installed, so not removed
Package 'php7.4-xmlrpc-dbgsym' is not installed, so not removed
Package 'php7.4-xsl' is not installed, so not removed
Package 'php7.4-zip' is not installed, so not removed
Package 'php7.4-zip-dbgsym' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@pi:/home/ape#

With the apt autorpurge command I assume you meant apt autopurge? The output is shown below.

root@pi:/home/ape# apt autorpurge
E: Invalid operation autorpurge
root@pi:/home/ape# apt autopurge
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libonig5* libzip4*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 773 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 197191 files and directories currently installed.)
Removing libonig5:i386 (6.9.1-1) ...
Removing libzip4:i386 (1.5.1-4+0~20190318173200.9+buster~1.gbp333132) ...
Processing triggers for libc-bin (2.28-10) ...

You can remove all three matches. The first is the repository key, the third is the actual repository entry, the second looks like a backup file.

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Interesting, looks like you already removed it before, as it was clearly installed during pihole -r, however so everything fine about that.
Note to myself: Do not use wildcard glob on apt purge to avoid massive output, better use something like:

apt purge $(dpkg --get-selections | awk '/^php7.4-*/{print $1}')

Did you do apt install php7.3-intl already?


Okay 403 response means that the webserver denies access itself, AFAIK. However could you verify that the webroot and admin panel dir is readable:

ls -al /var/www/html{,/admin}

And are there any other Lighttpd configs active?

for i in /etc/lighttpd/conf-enabled/*.conf; do
[[ -f $i ]] || continue
echo $i
cat $i
done

I have removed all three of the matched files.

It looks as if I must've done apt install php7.3-intl already because apparently the package is already installed:

root@pi:/home/ape# sudo apt install php7.3-intl
Reading package lists... Done
Building dependency tree
Reading state information... Done
php7.3-intl is already the newest version (7.3.17-1+0~20200419.57+debian10~1.gbp0fda17).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Here is the permission check command, i'm not sure what it means:

root@pi:/home/ape# ls -al /var/www/html{,/admin}
/var/www/html:
total 76
drwxrwxr-x  13 www-data www-data 4096 May 13 18:44  .
drwxr-xr-x   3 root     root     4096 Apr 24 13:03  ..
drwxrwxrwx+  7 root     root     4096 May 13 18:44  admin
-rw-r--r--   1 www-data www-data   13 May  8 18:33  custom_disable_timer
drwxrwxrwx   7 root     root     4096 Apr 24 21:50  delete2
drwxrwxrwx   5 root     root     4096 Apr 24 21:45  deletge
drwxrwxrwx+ 18 root     root     4096 May  9 19:07  f
drwxrwxrwx   4 root     root     4096 Apr 25 13:53  filemanager
drwxrwxrwx+ 18 root     root     4096 May  9 19:12  fm
drwxrwxrwx   8 root     root     4096 Apr 27 14:55  link
drwxrwxrwx   2 root     root     4096 Apr 27 14:45 'New folder'
-rwxrwxrwx   1 root     root       72 Apr 24 08:47  phpinfo.php
drwxrwxr-x+ 12 root     root     4096 Apr 24 10:59  phpmyadmin
drwxr-xr-x   2 root     root     4096 May 12 22:44  pihole
drwxrwxrwx   9 root     root     4096 May  9 18:58 'webhost admin'

/var/www/html/admin:
total 480
drwxrwxrwx+  7 root     root       4096 May 13 18:44 .
drwxrwxr-x  13 www-data www-data   4096 May 13 18:44 ..
-rw-r--r--   1 root     root      11902 May 13 18:44 api_db.php
-rw-r--r--   1 root     root       9478 May 13 18:44 api_FTL.php
-rw-r--r--   1 root     root       3609 May 13 18:44 api.php
-rw-r--r--   1 root     root       2260 May 13 18:44 auditlog.php
-rw-r--r--   1 root     root       2339 May 13 18:44 CONTRIBUTING.md
-rw-r--r--   1 root     root       2242 May 13 18:44 db_graph.php
-rw-r--r--   1 root     root       4265 May 13 18:44 db_lists.php
-rw-r--r--   1 root     root       6501 May 13 18:44 db_queries.php
-rw-r--r--   1 root     root        939 May 13 18:44 debug.php
-rw-r--r--   1 root     root       3910 May 13 18:44 dns_records.php
drwxr-xr-x   8 root     root       4096 May 16 08:10 .git
drwxr-xr-x   3 root     root       4096 May 13 18:44 .github
-rw-r--r--   1 root     root        153 May 13 18:44 .gitignore
-rw-r--r--   1 root     root       1321 May 13 18:44 gravity.php
-rw-r--r--   1 root     root       3006 May 13 18:44 groups-adlists.php
-rw-r--r--   1 root     root       3036 May 13 18:44 groups-clients.php
-rw-r--r--   1 root     root       6866 May 13 18:44 groups-domains.php
-rw-r--r--   1 root     root       2731 May 13 18:44 groups.php
-rw-r--r--   1 root     root       9385 May 13 18:44 help.php
drwxr-xr-x   3 root     root       4096 May 13 18:44 img
-rw-r--r--   1 root     root       9049 May 13 18:44 index.php
-rw-r--r--   1 root     root      14164 May 13 18:44 LICENSE
-rw-r--r--   1 root     root       2900 May 13 18:44 network.php
-rw-r--r--   1 root     root       1486 May 13 18:44 package.json
-rw-r--r--   1 root     root     181446 May 13 18:44 package-lock.json
-rw-r--r--   1 root     root       5460 May 13 18:44 queries.php
-rw-r--r--   1 root     root       1110 May 13 18:44 queryads.php
-rw-r--r--   1 root     root       9158 May 13 18:44 README.md
drwxr-xr-x   4 root     root       4096 May 13 18:44 scripts
-rw-r--r--   1 root     root      91608 May 13 18:44 settings.php
drwxr-xr-x   3 root     root       4096 May 13 18:44 style
-rw-r--r--   1 root     root        939 May 13 18:44 taillog-FTL.php
-rw-r--r--   1 root     root        931 May 13 18:44 taillog.php
-rw-r--r--   1 root     root         45 May 13 18:44 .user.php.ini
root@pi:/home/ape#

Here is the lighthttpd config command:

root@pi:/home/ape# for i in /etc/lighttpd/conf-enabled/*.conf; do

[[ -f $i ]] || continue
echo $i
cat $i
done
/etc/lighttpd/conf-enabled/90-javascript-alias.conf
alias.url += ("/javascript" => "/usr/share/javascript")
root@pi:/home/ape#

Not sure how relevant this is but I just noticed something with the lighthttpd pi hole interface.

When I go to my servers Local IP Address / admin: http://192.168.0.76/admin/ I get a 403 Forbidden page. But when I go to a directory that does not exist such as http://192.168.0.76/fakedirectory instead I get a 404 Not Found error page. The same happens for individual files such as index.php.

From what I can gather lighthttpd is listening in the correct directory and is able to see if files and directorys exist or not. I have changed the permissions for the WWW folder allowing everyone access but I am still receiving the 403 forbidden message.

UPDATE:

I did a little bit of research and I was able to fix this issue! I am not too sure what the below commands do but they were able to fix the 403 issue, and the statistics seem to work now also! :slight_smile:

sudo lighty-enable-mod fastcgi 

sudo lighty-enable-mod fastcgi-php

sudo service lighttpd force-reload

One last problem though... Earlier on we uninstalled the three different versions of PHP that were installed. This has caused my weather application that is running with apache to stop working. When I access the weather application's website I am just greated with the RAW PHP code for the files, not the actual rendered website. How am I able to fix this without running into the same issue of installing multiple PHP versions again?

Thanks!

Strange about the solution since this should be covered by the installer: pi-hole/basic-install.sh at 4d25f695267590b61a4061f9bb43448005d99b85 ยท pi-hole/pi-hole ยท GitHub
However great that it works now :+1:.

About your weather application, is there any reason to not run it behind Lighttpd as well? Seems an overhead to me to run two webservers. However to re-enable PHP (without having multiple versions) for Apache2, do:

apt install libapache2-mod-php7.3
a2enmod php7.3
systemctl restart apache2

I'm not sure how it worked, but it did! :slight_smile:

I would put it behind lighttpd but I am a little more familiar with apache and it is managable using webmin which makes it easier for me.

I am receiving this error message while trying to install PHP though:

root@pi:/home/ape# sudo apt install libapache2-mod-php7.3
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libapache2-mod-php7.3 : Depends: php7.3-common (= 7.3.14-1~deb10u1) but 7.3.17-1+0~20200419.57+debian10~1.gbp0fda17 is to be installed
E: Unable to correct problems, you have held broken packages.
root@pi:/home/ape#

Could install that slightly older version if available in your repo's (the "Version table"):

pi@ph5:~ $ apt policy php7.3-common
php7.3-common:
  Installed: 7.3.14-1~deb10u1
  Candidate: 7.3.14-1~deb10u1
  Version table:
 *** 7.3.14-1~deb10u1 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status

Mine only has version "7.3.14-1~deb10u1" but if you can choose, below how to change version:

sudo apt install php7.3-common=7.3.14-1~deb10u1

This is my version table:

root@pi:/home/ape# apt policy php7.3-common
php7.3-common:
  Installed: 7.3.14-1~deb10u1
  Candidate: 7.3.14-1~deb10u1
  Version table:
 *** 7.3.14-1~deb10u1 500
        500 http://security.debian.org/debian-security buster/updates/main i386 Packages
        100 /var/lib/dpkg/status
     7.3.11-1~deb10u1 500
        500 http://deb.debian.org/debian buster/main i386 Packages
root@pi:/home/ape#                                                                                                      

I get this message while running the PHP install command:

root@pi:/home/ape# sudo apt install php7.3-common=7.3.14-1~deb10u1
Reading package lists... Done
Building dependency tree
Reading state information... Done
php7.3-common is already the newest version (7.3.14-1~deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@pi:/home/ape#

EDIT: made mistake it needs the newer version of php7.3-common that seems not available from policy.

apt policy libapache2-mod-php7.3

apt depends libapache2-mod-php7.3

?

Here is the output of the first command:

root@pi:/home/ape# apt policy libapache2-mod-php7.3
libapache2-mod-php7.3:
  Installed: 7.3.14-1~deb10u1
  Candidate: 7.3.14-1~deb10u1
  Version table:
 *** 7.3.14-1~deb10u1 500
        500 http://security.debian.org/debian-security buster/updates/main i386 Packages
        100 /var/lib/dpkg/status
     7.3.11-1~deb10u1 500
        500 http://deb.debian.org/debian buster/main i386 Packages
root@pi:/home/ape#

Here is the output of the second command:

root@pi:/home/ape# apt depends libapache2-mod-php7.3
libapache2-mod-php7.3
  Depends: libmagic1
  Depends: mime-support
  Depends: php7.3-cli
  Depends: php7.3-common (= 7.3.14-1~deb10u1)
  Depends: php7.3-json
  Depends: php7.3-opcache
  Depends: tzdata
  Depends: ucf
  Depends: <apache2-api-20120211>
    apache2-bin
  Depends: apache2-bin (>= 2.4.16)
  Depends: libargon2-1 (>= 0~20171227)
  Depends: libc6 (>= 2.28)
  Depends: libpcre2-8-0 (>= 10.32)
  Depends: libsodium23 (>= 1.0.14)
  Depends: libssl1.1 (>= 1.1.0)
  Depends: libxml2 (>= 2.8.0)
  Depends: zlib1g (>= 1:1.2.3.4)
  Recommends: apache2
  Suggests: php-pear
root@pi:/home/ape#

Above makes me believe its not installed.

But above says its installed already.

Try:

sudo a2enmod php7.3

sudo systemctl restart apache2

See if fixed.

I was also confused now, first looks like it's not installed, second tells it's installed. Some apt clean && apt update would have been good after removing Ondrejs repo, I forgot about that. Would have made sense that some newer version was installed from Ondrejs repo but from the last outputs now everything looks as it should.

Yeah good one.
Clear out apt cache.

Is it really removed ?

sudo grep -v '^\s*#\|^\s*$' -R /etc/apt/sources.list*

Here's the sources list:

root@pi:/home/ape# sudo grep -v '^\s*#\|^\s*$' -R /etc/apt/sources.list*
/etc/apt/sources.list:deb http://deb.debian.org/debian/ buster main
/etc/apt/sources.list:deb-src http://deb.debian.org/debian/ buster main
/etc/apt/sources.list:deb http://security.debian.org/debian-security buster/updates main
/etc/apt/sources.list:deb-src http://security.debian.org/debian-security buster/updates main
/etc/apt/sources.list:deb http://deb.debian.org/debian/ buster-updates main
/etc/apt/sources.list:deb-src http://deb.debian.org/debian/ buster-updates main
/etc/apt/sources.list.d/php.list.save:deb https://packages.sury.org/php/ buster main
/etc/apt/sources.list.d/webmin.list:deb http://download.webmin.com/download/repository sarge contrib
/etc/apt/sources.list.d/webmin.list:deb http://download.webmin.com/download/repository sarge contrib
/etc/apt/sources.list.d/mysql.list:deb http://repo.mysql.com/apt/debian/ buster mysql-apt-config
/etc/apt/sources.list.d/mysql.list:deb http://repo.mysql.com/apt/debian/ buster mysql-8.0
/etc/apt/sources.list.d/mysql.list:deb http://repo.mysql.com/apt/debian/ buster mysql-tools
/etc/apt/sources.list.d/mysql.list:deb-src http://repo.mysql.com/apt/debian/ buster mysql-8.0
/etc/apt/sources.list.d/docker.list.save:deb [arch=i386] https://download.docker.com/linux/debian buster stable
/etc/apt/sources.list.d/nodesource.list:deb https://deb.nodesource.com/node_10.x buster main
/etc/apt/sources.list.d/nodesource.list:deb-src https://deb.nodesource.com/node_10.x buster main
/etc/apt/sources.list.d/webmin.list.save:deb http://download.webmin.com/download/repository sarge contrib
/etc/apt/sources.list.d/webmin.list.save:deb http://download.webmin.com/download/repository sarge contrib
/etc/apt/sources.list.d/nodesource.list.save:deb https://deb.nodesource.com/node_10.x buster main
/etc/apt/sources.list.d/nodesource.list.save:deb-src https://deb.nodesource.com/node_10.x buster main
/etc/apt/sources.list.d/mysql.list.save:deb http://repo.mysql.com/apt/debian/ buster mysql-apt-config
/etc/apt/sources.list.d/mysql.list.save:deb http://repo.mysql.com/apt/debian/ buster mysql-8.0
/etc/apt/sources.list.d/mysql.list.save:deb http://repo.mysql.com/apt/debian/ buster mysql-tools
/etc/apt/sources.list.d/mysql.list.save:deb-src http://repo.mysql.com/apt/debian/ buster mysql-8.0
/etc/apt/sources.list.d/docker.list:deb [arch=i386] https://download.docker.com/linux/debian buster stable
/etc/apt/sources.list.save:deb http://deb.debian.org/debian/ buster main
/etc/apt/sources.list.save:deb-src http://deb.debian.org/debian/ buster main
/etc/apt/sources.list.save:deb http://security.debian.org/debian-security buster/updates main
/etc/apt/sources.list.save:deb-src http://security.debian.org/debian-security buster/updates main
/etc/apt/sources.list.save:deb http://deb.debian.org/debian/ buster-updates main
/etc/apt/sources.list.save:deb-src http://deb.debian.org/debian/ buster-updates main
/etc/apt/sources.list.save:deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic test
/etc/apt/sources.list.save:deb [arch=amd64] https://download.docker.com/linux/debian buster stable
/etc/apt/sources.list.save:deb [arch=amd64] https://download.docker.com/linux/ubuntu buster stable edge test
/etc/apt/sources.list.save:deb [arch=arm64] https://download.docker.com/linux/debian buster stable
root@pi:/home/ape#

Running sudo a2enmod php7.3 gives me this output:

root@pi:/home/ape# sudo a2enmod php7.3
Considering dependency mpm_prefork for php7.3:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Considering conflict php5 for php7.3:
Module php7.3 already enabled

However the website says it is currently unable to handle this request - HTTP ERROR 500. Before installing I was just getting the PHP code for the file displayed.

EDIT: you still have sury repo:

sudo grep sury -R /etc/apt/sources.list*

Hash out # those or remove or you'll have version issues (and run below two to apply).


Did you run below two ?

sudo apt clean

sudo apt update

Whats output now when run below (for prosterity):

sudo apt install libapache2-mod-php7.3

Check out below:

Might see an error live trailing the logs when browsing to that site:

sudo tail -f /var/log/apache2/*.log

Might want to reinstall that software that depends on Apache.

Thanks for your reply!

It looks like we have finally got everything working, thank you so much for your help.

After removing that sury repo I followed the clean and update commands you kindly provided and uninstalled PHP using the command sudo apt remove libapache2-mod-php7.3. I then installed it with sudo apt install libapache2-mod-php7.3` and the weather website works again. I think there was something with that Sury repo version of PHP that my weather website did not like.

Thanks again! :slight_smile:
`

2 Likes