PHP errors

E: Unable to locate package php5-xml
E: Unable to locate package php-intl

I keep getting this^
When I run "sudo apt install php7.2-intl", I get:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.2-intl
E: Couldn't find any package by regex 'php7.2-intl'

Not sure how to tell, I ran "sudo apt list | grep php" and get a huge output

Nvrm, ran sudo apt list --installed:

php5-cgi/oldoldstable,now 5.6.40+dfsg-0+deb8u11 armhf [installed]
php5-cli/oldoldstable,now 5.6.40+dfsg-0+deb8u11 armhf [installed,automatic]
php5-common/oldoldstable,now 5.6.40+dfsg-0+deb8u11 armhf [installed]
php5-intl/oldoldstable,now 5.6.40+dfsg-0+deb8u11 armhf [installed]
php5-json/oldoldstable,now 1.3.6-1 armhf [installed,automatic]
php5-sqlite/oldoldstable,now 5.6.40+dfsg-0+deb8u11 armhf [installed]

Those are from Jessie, you really shouldn't be using them.

What do I do?

Are you actually running Raspbian Jessie?

I'm running whatever came with the sd card when I got my raspberry pi. I never actually flashed an image to it.

https://www.raspberrypi.org/documentation/setup/

https://projects.raspberrypi.org/en/projects/raspberry-pi-setting-up

https://www.raspberrypi.org/downloads/raspbian/

Please post the token generated by

pihole -d

or do it through the Web interface:

Tools > Generate Debug Log

https://tricorder.pi-hole.net/o9ydtn6784

You are running Jessie, and this is not a supported OS. Pi-hole supports Stretch and Buster.

Jessie will be end of life at the end of June 2020.

Ok, so image and start over? Sorry about taking over that other thread.
It doesn't seem to let me export my config either:
Error connecting to database /etc/pihole/gravity.db: Unable to open database: unable to open database file

I think given the circumstances, it would be best to flash a fresh Raspbian Buster Lite image, then reinstall Pi-hole.

Export your settings (if you can) using the teleporter function.

Please try:

usermod -aG pihole www-data

I recommend flashing a fresh Raspbian image as well, but just in case you want to try upgrading your existing image, try these steps: "Unable to complete update" [occured when running pihole -up] - #6 by MichaIng
Do a full SDcard backup/clone before, in case anything fails. The upgrade process will take some hour(s).

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.