Fresh install and web admin page not work


#1

I install Pi-hole 4.0 in a new virtual machine(centos 7). Everything is fine except the webadmin page. After all day search in this topic I almost give up. I cant’t understand what is wrong.
(I create a lot of vm and install everything from 0 to 100…but the result was the same)

After I run pihole -d I see some problem.:

*** [ DIAGNOSING ]: Pi-hole processes
[✗] dnsmasq daemon is unknown
[✗] lighttpd daemon is failed
[✓] pihole-FTL daemon is active

*** [ DIAGNOSING ]: Dashboard and block page
[✗] Block page X-Header: X-Header does not match or could not be retrieved.

[✗] Web interface X-Header: X-Header does not match or could not be retrieved.

Can anybody help me about that?

I have Debug Token: k6xfqdx61n


#2

lighttpd has failed to start. What is the output of sudo service lighttpd status -l?


#3

This is the output:

Redirecting to /bin/systemctl status lighttpd.service
● lighttpd.service - Lightning Fast Webserver With Light System Requirements
_ Loaded: loaded (/usr/lib/systemd/system/lighttpd.service; enabled; vendor preset: disabled)_
_ Active: failed (Result: exit-code) since v 2018-09-16 00:30:11 CEST; 46s ago_
_ Process: 1102 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)_
_ Main PID: 1102 (code=exited, status=255)_

szept 16 00:30:11 localhost.localdomain systemd[1]: Started Lightning Fast Webserver With Light System Requirements.
szept 16 00:30:11 localhost.localdomain systemd[1]: Starting Lightning Fast Webserver With Light System Requirements…
szept 16 00:30:11 localhost.localdomain lighttpd[1102]: 2018-09-16 00:30:11: (configfile.c.1451) pclose "cat external.conf 2>/dev/null"failed: Success
szept 16 00:30:11 localhost.localdomain lighttpd[1102]: 2018-09-16 00:30:11: (configfile.c.1289) source: /etc/lighttpd/lighttpd.conf line: 94 pos: 1 parser failed somehow near here: (EOL)
szept 16 00:30:11 localhost.localdomain systemd[1]: lighttpd.service: main process exited, code=exited, status=255/n/a
szept 16 00:30:11 localhost.localdomain systemd[1]: Unit lighttpd.service entered failed state.
szept 16 00:30:11 localhost.localdomain systemd[1]: lighttpd.service failed.

But, the line 94 is the last row of the config file. It is a blank row.
line 92: # Add user chosen options held in external file
line 93: include_shell “cat external.conf 2>/dev/null”


Cannot access Pi-Hole in web browser
#4

This is an error in lighttpd 1.4.50’s config parsing, which can be fixed by running sudo touch /etc/lighttpd/external.conf


#5

Thank you very much. That was so fast help. :grinning:


#6

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