Restore Pi-Hole Address to /pihole

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Chester007
Posts: 32
Joined: Sat Mar 04, 2017 3:57 pm

Restore Pi-Hole Address to /pihole

Post by Chester007 »

Hey so I just upgraded my pihole to 3.0 and during the installation, I got an error regarding the web UI. after a few minutes of google search, I found out that the solution was to do

Code: Select all

git clone https://github.com/pi-hole/adminLTE.git /var/www/html/admin
After doing the line above and repairing the installation, I can only access the pihole dashboard through IP.ADDRESS/admin now instead of IP.ADDRESS/pihole which I really liked.

How can I change it back to /pihole?

Thanks!
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Restore Pi-Hole Address to /pihole

Post by Fourdee »

Chester007 wrote: After doing the line above and repairing the installation, I can only access the pihole dashboard through IP.ADDRESS/admin now instead of IP.ADDRESS/pihole which I really liked.

How can I change it back to /pihole?

Thanks!
Hi,

DietPi generates this symlink, we like it too ;)
https://github.com/Fourdee/DietPi/blob/ ... 8233-L8234

Code: Select all

			# - Create a symlink so users can use http://ip/pihole
			ln -sf /var/www/html/admin /var/www/pihole
How did you update PiHole? pihole -up?
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Chester007
Posts: 32
Joined: Sat Mar 04, 2017 3:57 pm

Re: Restore Pi-Hole Address to /pihole

Post by Chester007 »

Sadly the command above didn't work. I'm still getting a Website Blocked when I try to open /pihole
And yes, I did pihole -up to update it
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Restore Pi-Hole Address to /pihole

Post by Fourdee »

Chester007 wrote:Sadly the command above didn't work. I'm still getting a Website Blocked when I try to open /pihole
And yes, I did pihole -up to update it
Strange, does it say "Blocked by PiHole"?

Lets check status of /var/www

Code: Select all

ls -lha /var/www
ls -lha /var/www/html
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Chester007
Posts: 32
Joined: Sat Mar 04, 2017 3:57 pm

Re: Restore Pi-Hole Address to /pihole

Post by Chester007 »

Fourdee wrote: Strange, does it say "Blocked by PiHole"?
Yes it does
Fourdee wrote: Lets check status of /var/www

Code: Select all

ls -lha /var/www
ls -lha /var/www/html
Image
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Restore Pi-Hole Address to /pihole

Post by Fourdee »

Chester007 wrote:
Fourdee wrote: Strange, does it say "Blocked by PiHole"?
Yes it does
Well thats bizarre, PiHole is blocking our symlink lol.

I couldn't replicate this on a fresh installation today. So it must be an issue with the blocked sites list, do you have any custom entries?
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Chester007
Posts: 32
Joined: Sat Mar 04, 2017 3:57 pm

Re: Restore Pi-Hole Address to /pihole

Post by Chester007 »

Fourdee wrote: Well thats bizarre, PiHole is blocking our symlink lol.

I couldn't replicate this on a fresh installation today. So it must be an issue with the blocked sites list, do you have any custom entries?
Yes, my adlist contains some of wally3k's collection of domains https://wally3k.github.io/. All of which worked properly before the upgrade.

I went ahead and backed-up my current list and copied the default one from pi-hole's github repo https://github.com/pi-hole/pi-hole/blob ... ts.default and ran

Code: Select all

pihole -g
Sadly there's no difference with the result

UPDATE:
Tried to reinstall Pi-Hole. After the installation process, IP.ADDRESS/pihole just displays a blank page while IP.ADDRESS/admin shows the admin UI
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Restore Pi-Hole Address to /pihole

Post by Fourdee »

Chester007 wrote:PDATE:
Tried to reinstall Pi-Hole. After the installation process, IP.ADDRESS/pihole just displays a blank page while IP.ADDRESS/admin shows the admin UI
Ok, sounds like the pihole symlink is missing, lets try and recreate it again:

Code: Select all

rm -R /var/www/pihole
ln -sf /var/www/html/admin /var/www/pihole
Did you use DietPi-Software to uninstall, then install PiHole again?
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Chester007
Posts: 32
Joined: Sat Mar 04, 2017 3:57 pm

Re: Restore Pi-Hole Address to /pihole

Post by Chester007 »

Fourdee wrote: Ok, sounds like the pihole symlink is missing, lets try and recreate it again:

Code: Select all

rm -R /var/www/pihole
ln -sf /var/www/html/admin /var/www/pihole
Did you use DietPi-Software to uninstall, then install PiHole again?
Did the set of commands, still blank screen. And yes, I did use DietPi-Software to uninstall and reinstall
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Restore Pi-Hole Address to /pihole

Post by Fourdee »

I think your lighttpd.conf has been overwritten during the PiHole update.

Assuming you are using the default Lighttpd webserver on DietPi:

Did you backup your lighttpd.conf before upgrading pihole, as per Updating PiHole::
http://dietpi.com/phpbb/viewtopic.php?f ... rt=20#p174

If not, reinstall lighttpd to regenerate the config should fix this:

Code: Select all

apt-get purge lighttpd -y
dietpi-software reinstall 84
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply