Apache does show raw files instead of Pi-hole's web interface

I've installed it but it's giving me raw code instead of the webpage. How do I fix this?

This usually happens when there is another web server (apache, nginx, etc) on the server without the correct configuration for PHP.

You need to disable the other web server or fix the PHP configuration.

the pi-hole is running through apache2 but i can't remember how i countered it last time.

Pi-hole only have configuration for lighttpd web server.

If you don't want to disable Apache, that's fine.
You can use any web server to run Pi-hole, but you will need to adjust your Apache configuration to use PHP with this web site.

Where do i look for that info?

In this case, each user has it's own Apache config, usually including other websites.

The use of a different web server is considered an advanced (and custom) configuration.

If you don't know how to configure Apache, why do you want to use it? Is there a specific reason?

I found out that my PHP got uninstalled and therefore apache2 won't be able to show PHP so it instead showed the code.

Thank you anyways

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