Expected Behaviour:
I downloaded Pihole on my Raspberry Pi 1 B+ via headless installation with PuTTY. I assumed I could go to "http://pi.hole/admin " or "http://192.168.1.185/admin " when the installation was finished and see the dashboard.
Actual Behaviour:
Instead, I cannot do anything and get a "503 service unavailable" if I use pi.hole or my pi's IP address.
This is my first time using a Raspberry Pi and accessing something via SSH. I am a noob!
Debug Token:
https://tricorder.pi-hole.net/4tX9uWVl/
Your debug log shows PHP is not installed in your system:
*** [ DIAGNOSING ]: php version
[✗] php version could not be detected.
Try to run pihole -r
and select repair
.
The installer should install PHP.
Make sure there are no error messages during the installation.
I have already tried that and whenever I redo the diagnosis it comes back with the same result for PHP version. This is the output for the pihole -r
command:
[i] SELinux not detected
[✓] Update local cache of available packages
I can't do anything after that. Maybe I'm missing something but I cannot select repair.
I also tried pihole -r repair
as well.
Thank you for the quick reply!!
What is the output of the 2 commands below?
php -v
php-cgi -v
If PHP is installed both should return the version message.
If the commands fail, what is the output of apt list php8*
? Does it returns something?
Both php -v
and php-cgi -v
returned with segmentation fault
apt list php8*
returned
Listing... Done
php8.2-amqp/stable 1.11.0-5+b2 armhf
php8.2-apcu/stable 5.1.22+4.0.11-2+b2 armhf
php8.2-ast/stable 1.1.0-2+b2 armhf
php8.2-bcmath/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-bz2/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-cgi/stable,now 8.2.7-1~deb12u1+rpi1 armhf [installed,automatic]
php8.2-cli/stable,now 8.2.7-1~deb12u1+rpi1 armhf [installed,automatic]
php8.2-common/stable,now 8.2.7-1~deb12u1+rpi1 armhf [installed,automatic]
php8.2-curl/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-dba/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-dev/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-ds/stable 1.4.0-5+b2 armhf
php8.2-enchant/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-fpm/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-gd/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-gearman/stable 2.1.0+1.1.2-12+b2 armhf
php8.2-gmagick/stable 2.0.6~rc1+1.1.7~rc3-11+b2 armhf
php8.2-gmp/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-gnupg/stable 1.5.1-3+b2 armhf
php8.2-http/stable 4.2.3-3.1 armhf
php8.2-igbinary/stable 3.2.13-1 armhf
php8.2-imagick/stable 3.7.0-4 armhf
php8.2-imap/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-interbase/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-intl/stable,now 8.2.7-1~deb12u1+rpi1 armhf [installed,automatic]
php8.2-ldap/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-libvirt-php/stable 0.5.6-6 armhf
php8.2-mailparse/stable 3.1.4+2.1.7~dev20160128-1+b2 armhf
php8.2-maxminddb/stable 1.11.0-5+b1 armhf
php8.2-mbstring/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-mcrypt/stable 3:1.0.5-4+b2 armhf
php8.2-memcache/stable 8.0+4.0.5.2+3.0.9~20170802.e702b5f9+-8+b1 armhf
php8.2-memcached/stable 3.2.0+2.2.0-4 armhf
php8.2-mongodb/stable 1.15.0+1.11.1+1.9.2+1.7.5-1+b1 armhf
php8.2-msgpack/stable 1:2.2.0~rc2-3 armhf
php8.2-mysql/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-oauth/stable 2.0.7+1.2.3-16+b1 armhf
php8.2-odbc/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-opcache/stable,now 8.2.7-1~deb12u1+rpi1 armhf [installed,automatic]
php8.2-pcov/stable 1.0.11-5+b1 armhf
php8.2-pgsql/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-phpdbg/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-pinba/stable 1.1.2-16 armhf
php8.2-ps/stable 1.4.4+1.3.7-7+b1 armhf
php8.2-pspell/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-psr/stable 1.2.0-5+b1 armhf
php8.2-raphf/stable 2.0.1+1.1.2-14+b1 armhf
php8.2-readline/stable,now 8.2.7-1~deb12u1+rpi1 armhf [installed,automatic]
php8.2-redis/stable 5.3.7+4.3.0-3 armhf
php8.2-rrd/stable 2.0.3+1.1.3-7+b1 armhf
php8.2-smbclient/stable 1.0.6-8+b1 armhf
php8.2-snmp/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-soap/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-solr/stable 2.6.0+2.4.0-3+b1 armhf
php8.2-sqlite3/stable,now 8.2.7-1~deb12u1+rpi1 armhf [installed,automatic]
php8.2-ssh2/stable 1.3.1+0.13-7+b1 armhf
php8.2-stomp/stable 2.0.3-2+b1 armhf
php8.2-sybase/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-tideways/stable 5.0.4-16 armhf
php8.2-tidy/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-uopz/stable 7.1.1+6.1.2-7+b1 armhf
php8.2-uploadprogress/stable 2.0.2+1.1.4-8+b1 armhf
php8.2-uuid/stable 1.2.0-12+b1 armhf
php8.2-xdebug/stable 3.2.0+3.1.6+2.9.8+2.8.1+2.5.5-3+b1 armhf
php8.2-xml/stable,now 8.2.7-1~deb12u1+rpi1 armhf [installed,automatic]
php8.2-xmlrpc/stable 3:1.0.0~rc3-6+b1 armhf
php8.2-xsl/stable 8.2.7-1~deb12u1+rpi1 all
php8.2-yac/stable 2.3.1+0.9.2-5+b1 armhf
php8.2-yaml/stable 2.2.2+2.1.0+2.0.4+1.3.2-6+b1 armhf
php8.2-zip/stable 8.2.7-1~deb12u1+rpi1 armhf
php8.2-zmq/stable 1.1.3-24+b1 armhf
php8.2/stable 8.2.7-1~deb12u1+rpi1 all
Could it be something with my router? I really have no idea.
This means PHP is installed, but it is broken probably due to a filesystem corruption.
If you are 100% sure your SD card is good, you can try to uninstall PHP and install it again, but otherwise my suggestion is to start over, with a fresh OS installation in a new SD card.
The Pi I am using is from Ebay and they left an SD card in it. I cleared everything from it and flashed it myself.
Could there still be something wrong with the SD card from previous use? Is it bad to use Pis from Ebay or secondhand?
If the SD card is the problem, I have a new one and will try using that.
nero355
February 15, 2025, 8:13pm
8
There is always a chance...
The used Raspberry Pi should not be the issue here, but the 2 things that you really need to make sure are in good condition are :
The Power Supply of the Raspberry Pi !!
The microSDXC card that you are using !!
That's the reason why I always :
This has served me well for about 6 to 8 years by now and recently there was a nice offer for 3 pieces of the 32 GB version for € 21 so I bought some backups/future use stock
Please do so and report back
Good news! Changing out the SD card worked! Thank you so much for the help.
1 Like
system
Closed
March 12, 2025, 5:10pm
10
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.