nextcloud PiHole web admin pages - conflict Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
selih34
Posts: 18
Joined: Sun Dec 20, 2020 4:43 pm

nextcloud PiHole web admin pages - conflict

Post by selih34 »

I have installed in this order PiHole, Nextcloud (talk),Motion eye, UrBackup, No-IP, this services are running :
redis-server
mariadb
php7.3-fpm
lighttpd
coturn
urbackupsrv
motioneye
noip2
cron
dropbear
pihole-FTL
dietpi-ramlog
dietpi-preboot
dietpi-boot
dietpi-postboot
dietpi-wifi-monitor inactive (dead).

After installing Nextcloud(talk), I couldn't access PiHole admin page, so I run this command pihole-r , and I gain access to PiHole, but I cant open nextcloud.
All other web pages for MotionEYE and UrBackup are functioning ok.

How I can resolve this conflict?

and how I can change port for nextcloud?
User avatar
Joulinar
Posts: 3234
Joined: Sat Nov 16, 2019 12:49 am

Re: nextcloud PiHole web admin pages - conflict

Post by Joulinar »

Hi,

many thanks for your message. Do you know what option you have selected while running pihole -r. Was it Repair or Reconfigure. Because Reconfigure will replace DietPi lighttpd configuration with a PiHole specific one, not fitting into DietPi environment. Pls can you have a look.

Code: Select all

ls -la /etc/lighttpd
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
selih34
Posts: 18
Joined: Sun Dec 20, 2020 4:43 pm

Re: nextcloud PiHole web admin pages - conflict

Post by selih34 »

I selected repair because it said I will not loose the configuration on which I spent time.
User avatar
Joulinar
Posts: 3234
Joined: Sat Nov 16, 2019 12:49 am

Re: nextcloud PiHole web admin pages - conflict

Post by Joulinar »

pls can you check lighttpd config files.

Code: Select all

ls -la /etc/lighttpd
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
selih34
Posts: 18
Joined: Sun Dec 20, 2020 4:43 pm

Re: nextcloud PiHole web admin pages - conflict

Post by selih34 »

command gives:
total 24
drwxr-xr-x 4 root root 4096 Dec 27 16:11 .
drwxr-xr-x 90 root root 4096 Dec 27 20:05 ..
drwxr-xr-x 2 root root 4096 Dec 27 14:43 conf-available
drwxr-xr-x 2 root root 4096 Dec 27 14:43 conf-enabled
-rw-r--r-- 1 root root 0 Dec 27 16:11 external.conf
-rw-r--r-- 1 root root 4066 Dec 27 16:11 lighttpd.conf
-rw-r--r-- 1 root root 4048 Dec 27 14:43 lighttpd.conf.orig

I have attached the file. External.conf file is empty.
Attachments
lighttpd.txt
(3.97 KiB) Downloaded 3 times
User avatar
Joulinar
Posts: 3234
Joined: Sat Nov 16, 2019 12:49 am

Re: nextcloud PiHole web admin pages - conflict

Post by Joulinar »

your web server config was replaced by a PiHole one. You would need to revert this change

Code: Select all

cd /etc/lighttpd/
mv lighttpd.conf lighttpd.conf.hole
mv lighttpd.conf.orig lighttpd.conf
systemctl restart lighttpd.service
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
selih34
Posts: 18
Joined: Sun Dec 20, 2020 4:43 pm

Re: nextcloud PiHole web admin pages - conflict

Post by selih34 »

Ok I can access NEXTCLOUD web interface, but my PiHole web interface is not working. In services it says pihole-FTL active.
Whats next solution?
User avatar
Joulinar
Posts: 3234
Joined: Sat Nov 16, 2019 12:49 am

Re: nextcloud PiHole web admin pages - conflict

Post by Joulinar »

can you have a look into following directory

Code: Select all

ls -la /etc/lighttpd/conf-enabled/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
selih34
Posts: 18
Joined: Sun Dec 20, 2020 4:43 pm

Re: nextcloud PiHole web admin pages - conflict

Post by selih34 »

total 8
drwxr-xr-x 2 root root 4096 Dec 27 14:43 .
drwxr-xr-x 4 root root 4096 Dec 28 00:51 ..
lrwxrwxrwx 1 root root 33 Dec 27 12:58 10-fastcgi.conf -> ../conf-available/10 -fastcgi.conf
lrwxrwxrwx 1 root root 33 Dec 27 14:43 10-rewrite.conf -> ../conf-available/10 -rewrite.conf
lrwxrwxrwx 1 root root 37 Dec 27 12:58 15-fastcgi-php.conf -> ../conf-availabl e/15-fastcgi-php.conf
lrwxrwxrwx 1 root root 45 Dec 27 14:43 99-dietpi-dav_redirect.conf -> ../conf- available/99-dietpi-dav_redirect.conf
lrwxrwxrwx 1 root root 42 Dec 27 14:43 99-dietpi-nextcloud.conf -> ../conf-ava ilable/99-dietpi-nextcloud.conf
lrwxrwxrwx 1 root root 38 Dec 27 12:57 99-unconfigured.conf -> ../conf-availab le/99-unconfigured.conf


Thank you for your help, but I have to sleep now. I will be back in 14h :).
User avatar
Joulinar
Posts: 3234
Joined: Sat Nov 16, 2019 12:49 am

Re: nextcloud PiHole web admin pages - conflict

Post by Joulinar »

ok the PiHole config is missing. But this shouldn't be such an issue. Anyway let's create it

Code: Select all

cd /etc/lighttpd/conf-enabled/
ln -s ../conf-available/99-dietpi-pihole.conf 99-dietpi-pihole.conf
systemctl restart lighttpd.service
I guess it will not fix it. Let's check web server root directory as well. Probably you are missing the PiHole folders linked correctly

Code: Select all

ls -la /var/www/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply