[SOLVED] PiHole via dietpi-software installation issues

Having issues with your DietPi installation, or, found a bug? Post it here.
Zombievirus
Posts: 119
Joined: Sun Sep 20, 2015 2:07 am

[SOLVED] PiHole via dietpi-software installation issues

Post by Zombievirus »

Hi,

I just wanted to let you know there might be a problem with installing PiHole from dietpi-software!

I tried to get it to work using dietpi-software but it just didn't work.

I tried multiple clean installs but had no success! It was constantly giving me a 404 Error when i tried to access the admin page.

Then i tried to install it using

Code: Select all

curl -sSL https://install.pi-hole.net | bash
This worked perfectly without any issues!

You might want to look into this.

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

Re: PiHole via dietpi-software installation issues

Post by Fourdee »

Hi Zombie,

Thanks for the report.

Tested with clean install on C2 with dietpi-software, http://192.168.0.112/pihole working as expected.

Which device was this on? And which webserver choice did you use (default is lighttpd)?
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.
Zombievirus
Posts: 119
Joined: Sun Sep 20, 2015 2:07 am

Re: PiHole via dietpi-software installation issues

Post by Zombievirus »

It was a Raspberry Pi 1 Model B

I tried for more than 2 Hours with multiple clean installs but it didn't work.

Then using the official method without dietpi-software, it worked first time without any issues.
rothchild
Posts: 74
Joined: Sat Jun 27, 2015 10:39 am

Re: PiHole via dietpi-software installation issues

Post by rothchild »

Were you using /admin or /pihole?

At first I tried /admin and got a 404 then realised that it's actually /pihole and everything worked fine
Zombievirus
Posts: 119
Joined: Sun Sep 20, 2015 2:07 am

Re: PiHole via dietpi-software installation issues

Post by Zombievirus »

i was using /admin

This is what the installer told me to do!

I had no idea about /pihole

I guess that was the issue!

with the official installation method it works with /admin

EDIT:

I just checked the DietPi Software Thread here in the Forum and there it also states that it should be /pihole.

so my fault. i should have double checked!
rothchild
Posts: 74
Joined: Sat Jun 27, 2015 10:39 am

Re: PiHole via dietpi-software installation issues

Post by rothchild »

I think it's a fair confusion, as you say the installer also says it will be at /admin and also spits out a password (which is useless because the password by default is dietpi...) potentially there could be a couple of bits of tidying to this install to make it clear how the DP version differs from the main version?
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: PiHole via dietpi-software installation issues

Post by Fourdee »

rothchild wrote:I think it's a fair confusion, as you say the installer also says it will be at /admin and also spits out a password (which is useless because the password by default is dietpi...) potentially there could be a couple of bits of tidying to this install to make it clear how the DP version differs from the main version?
Yep, no worries.

Ok so theres a few adjusments we make, mostly to allow for multiple use of the web server, not dedicated it to PiHole, and, prevent PiHole from overwriting the current lighttpd.conf:
https://github.com/Fourdee/DietPi/blob/ ... 3700-L3708

After that, during configuration, we symlink /pihole to /html/admin, as per our online doc:
https://github.com/Fourdee/DietPi/blob/ ... 7230-L7243

As our DietPi web server paths are standardized and relative in /var/www (eg: /var/www/myfolder/website_1 = http://ip/myfolder/website_1), the actual location of the PiHole web page (via the official installer) is /var/www/html/admin and therefor the link is http://ip/html/admin

So either of the following will work:
http://ip/html/admin
http://ip/pihole

But I will update the code to create a symlink so the following also works, to prevent this occurring again:
http://ip/admin

https://github.com/Fourdee/DietPi/issues/703
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.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: PiHole via dietpi-software installation issues

Post by Fourdee »

Your Admin Webpage login password is 1XR2_UbZ
Also looks like this a new addition. Previously, no password was set for the web interface, hence we do it during install and set to dietpi after PiHole installer is finished.
https://github.com/Fourdee/DietPi/blob/ ... 7250-L7251
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.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: PiHole via dietpi-software installation issues

Post by Fourdee »

We'll inform user of password changed aswell:
https://github.com/Fourdee/DietPi/issue ... -271330490
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.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: PiHole via dietpi-software installation issues

Post by Fourdee »

Thanks guys,

resolved for v142. Let me know if theres anything else :)
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