When using Pi-Hole under a custom webserver, such as NGinx or Apache, often the server requires a different user than what Pi-Hole normally installs under. Pi-Hole currently only installs under the LightHTTPd user, but the installer should ask which user the admin wants to install under while having the LightHTTPd user be prefilled as the default option.
This is important because the web interface executes the pihole command under sudo when the admin is using the interface. The web interface appears broken when it fails to execute the commands because the web user the interface runs under has no sudo access (by default).
Related links:
[Blacklist and Whitelist not working - #15](Broken Web Interface Thread on Pi-Hole Forum)
[Custom Sudoers User · Issue #2603 · pi-hole/pi-hole · GitHub](My Bug Report under Github Issues)