Showing PHP code instead of page

Expected Behaviour:
172.0.0.1/admin shows a fully formed and rendered web interface

Actual Behaviour:
Shows PHP/HTML instead

Debug Token: ohhuwvwpxf

Installed on a Zentyal box, webpage of code shows on both WAN and LAN interfaces, although told to use LAN interface in setup (eth1) WAN is eth0

Could you post a screen shot of what you are seeing?

You have Apache 2 bound to port 80, so Lighttpd cannot bind to this port. From your debug log:

*:80 apache2 (IPv4)
*:443 apache2 (IPv4)
*:80 apache2 (IPv4)
*:443 apache2 (IPv4)
*:80 apache2 (IPv4)
*:443 apache2 (IPv4)

*** [ DIAGNOSING ]: Pi-hole processes
...
[✗] lighttpd daemon is failed
1 Like

I'll change the port Pi hole uses and reply back if I have any further issues with this. I didn't realise Apache was installed, but I intend to use it at a later date

I had this problem, as you've stated you'll need to change the lighttpd port. Its etc\lighttpd\lighttpd.conf.

This file will be overwritten when PiHole is upgraded so best make an external.conf file with your edits in.

The setting is server.port = $WhateverPortYouWant

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