Pihole overwrote freePBX web gui

FreePBX and Pihole should be run on entirely different machines

Why?

Because Pihole assumes complete control over the system (as it should). In fact it runs lighttpd if it can, not nginx and not apache.