im running a raspberry pi 4 with octoprint and i got pihole installed via putty. i cant acsess the web page but have no problem in configuring in the ssh.
debug token: 3wCwDMNG
im running a raspberry pi 4 with octoprint and i got pihole installed via putty. i cant acsess the web page but have no problem in configuring in the ssh.
debug token: 3wCwDMNG
Most likely there is a conflict between Octoprint and Pi-Hole in listening on port 80.
You need to configure either Pi-Hole or Octoprint to use a different port.
To change the port Pi-Hole listens on do this:
Add this line "server.port := 1080"to "/etc/lighttpd/external.conf"
Restart lighttpd server with one of these commands:
"sudo systemctl restart lighttpd"
"sudo service lighttpd restart"
This is covered in Pi-Hole documentation under "Webserver/Caddy" in the section "Modifying lighttpd configuration".
Hope this helps.
Butch
You debug log confirms what butchkemper said.
Port 80 is in use (haproxy) and lighttpd is not able to listen on the same port.
[✗] tcp:*:80 is in use by haproxy
You have 2 options:
change the port used by haproxy (you will need to find out how to do it); or
edit the port in etc/lighttpd/lighttpd.conf:
Change the server.port to something else, like 8080:
server.port = 8080
And then restart lighttpd with systemctl restart lighttpd.service
Note:
The procedure explained above by butchkemper (using external.conf) is only correct for old installations (Pi-hole v5.14.2, or older versions).
If your initial Pi-hole install was newer than v5.15, this file won't be read.
It says i cant write in the haproxy config file. And i cant edit the lighttpd.conf file i dont have any permissions
You need root user permissions to edit that file:
$ stat /etc/lighttpd/lighttpd.conf
[..]
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Try:
sudo nano /etc/lighttpd/lighttpd.conf
Probably same for the haproxy config file.
When i try to run that command a file opens but nothing shows up inside the file
Check the file name and try again. You probably made a typo.
The debug log shows the file /etc/lighttpd/lighttpd.conf exists and is not empty.
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.