pihole and admin folder twice in var-directory

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
wmcig
Posts: 39
Joined: Wed Aug 25, 2021 12:17 pm

pihole and admin folder twice in var-directory

Post by wmcig »

Hi,

in the directory "/var/www" I saw the admin and pihole folders twice. Once in the root of "www" and also in the "html" subdirectory. Why?

And what should I note if I wanna install other software, like a website or cms? Maybe if they have also a folder which is called "admin"?
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: pihole and admin folder twice in var-directory

Post by Joulinar »

Hi

basically folder admin + pihole are just symbolic links into folder /var/www/html. There are not duplicates. This is needed due to the way PiHole works.

if you require an additional web server application, you would create them into a separat sub folder like /var/www/app1 or /var/www/app2. On your browser you could simply open these web sides using http://your.ip/app1 or http://your.ip/app2
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
wmcig
Posts: 39
Joined: Wed Aug 25, 2021 12:17 pm

Re: pihole and admin folder twice in var-directory

Post by wmcig »

Joulinar wrote: Fri Oct 29, 2021 2:03 pm Hi

basically folder admin + pihole are just symbolic links into folder /var/www/html. There are not duplicates. This is needed due to the way PiHole works.

if you require an additional web server application, you would create them into a separat sub folder like /var/www/app1 or /var/www/app2. On your browser you could simply open these web sides using http://your.ip/app1 or http://your.ip/app2
Cool.

Should I use lighttpd or nginx?
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: pihole and admin folder twice in var-directory

Post by Joulinar »

you are already using PiHole? If yes, you already have a web server installed.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply