Pihole install to wrong folder

The issue I am facing: Pihole installs to /var/www/html, but my web bages are in /home/www, as I have had them about 20y. Installation program does not ask anything. In /var/www/html/admin Pihole does not work. If I copy the directory to /home/www, net browser does not find anything to do, no index.php

Details about my system: "Ubuntu 24.04.3 LTS", Home server, not visible to WAN.

What I have changed since installing Pi-hole: tried to make the system work. Removed everything connected to Pi-hole and reinstalled some times. Restarted Apache2, checked all Apache2 and php settings. Restarted the server. Copied /var/www/html/admin to /home/www. Checked the admin directory and files there: no index.php. Cloned the repository, edited Pi-hole/automated install/basic-install.sh and changed the ‘webroot’. Installed. Still no index-php or anything like that. I only get listing of the files, when I go to that directory with a netbrowser.

Running ‘pihole -r gives:

[✓] Resetting repository within /etc/.pihole...
Unable to reset /var/www/html/admin, exiting installer

The admin folder only contains some *.lp files which start with ‘<?’.

Pi-hole doesn't have PHP pages.

Apache can't execute Pi-hole web pages.

Pi-hole pages are written using a different programming language (Lua).
You need to use the internal web server.

Is there some way to install an older version, which works ?

I have now spent about four hours trying to find whats wrong and now you tell me, that I should use some kind of internal web server, but don’t tell how, what, where.

Even if you write it with some fancy programming language, you should also think how to use the program. Now it is just useless.

It’s not useless, perhaps different from what you had previously.

Pi-hole v6 includes an internal web server. You can still use Apache/lighttpd for other sites as needed, and use whatever directory you used before. When Pi-hole is installed on such a system with another web server, you set it up using a different port from Apache/lighttpd assuming that is still needed for other sites.

My system has a few other sites using lighttpd, and Pi-hole v6. Works just fine. For me, Pi-hole is using port 8080, and lighttpd port 80. All works, and plays nicely together.

Pretty sure this is all covered in the documentation.

The old installation suggested upgrade. "Klick here".
After some hours I managed to make my other web pages work again..

The installation program did not install anything extra nor tell, that I should install something nor change some settings.
This comment "You need to use the internal web server." does not help in any way.

I find no reason for the move to a new programming language.

Live long and prosper
Pasi

If Apache cant handle Pi-Hole GUI, and we need to use the internal web server, PLEASE tell us how to make something work so that we get the GUI running !

Fter last night four hour and today three hours I at last got the GUI up and running.

There was an error in one of the configuration files

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