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?
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.
ls -la /etc/lighttpd
I selected repair because it said I will not loose the configuration on which I spent time.
pls can you check lighttpd config files.
ls -la /etc/lighttpd
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.
lighttpd.txt (3.97 KB)
your web server config was replaced by a PiHole one. You would need to revert this change
cd /etc/lighttpd/
mv lighttpd.conf lighttpd.conf.hole
mv lighttpd.conf.orig lighttpd.conf
systemctl restart lighttpd.service
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?
can you have a look into following directory
ls -la /etc/lighttpd/conf-enabled/
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 .
ok the PiHole config is missing. But this shouldn’t be such an issue. Anyway let’s create it
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
ls -la /var/www/
I had an error during restart of service.
root@DietPi:~# cd /etc/lighttpd/conf-enabled/
root@DietPi:/etc/lighttpd/conf-enabled# ln -s …/conf-available/99-dietpi-pihole .conf 99-dietpi-pihole.conf
root@DietPi:/etc/lighttpd/conf-enabled# systemctl restart lighttpd.service
Job for lighttpd.service failed because the control process exited with error co de.
See “systemctl status lighttpd.service” and “journalctl -xe” for details.
root@DietPi:/etc/lighttpd/conf-enabled# ls -la /var/www/
total 128
drwxr-xr-x 4 root root 4096 Dec 27 14:42 .
drwxr-xr-x 13 root root 4096 Dec 27 15:20 …
-rw-r–r-- 1 root root 37984 Dec 27 14:42 apc.php
drwxrwxr-x 4 www-data www-data 4096 Dec 27 12:58 html
drwxr-xr-x 13 www-data www-data 4096 Dec 27 14:44 nextcloud
-rw-r–r-- 1 root root 67676 Dec 27 14:42 opcache.php
-rw-r–r-- 1 root root 20 Dec 27 14:42 phpinfo.php
root@DietPi:/etc/lighttpd/conf-enabled#
and now, even after reboot, I cant access web interface for PiHole and for NextCloud too, so nothing is working now.
well if your web server is not working, your web apps are not reachable of course. Let’s try to get the web server back before fixing PiHole.
cat /var/log/lighttpd/error.log
This command CAT is not showing anything, so I booted LXDE and access the var/log/lighttpd. But error log is empty file. I cannot attached it because attachment on forum says its too large. its 0KB… ???
well, it doesn’t make sense to attach an empty file
let’s check configuration. This will be a test only
/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
root@DietPi:~# /usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
2020-12-28 21:04:06: (configfile.c.1328) opening configfile /etc/lighttpd/conf-enabled/99-dietpi-pihole.conf failed: No such file or directory
2020-12-28 21:04:06: (configfile.c.1296) source: find /etc/lighttpd/conf-enabled -name ‘*.conf’ -a ! -name ‘letsencrypt.conf’ -printf ‘include “%p”\n’ 2>/dev/null line: 7 pos: 8 parser failed somehow near here: (EOL)
2020-12-28 21:04:06: (configfile.c.1296) source: /etc/lighttpd/lighttpd.conf line: 92 pos: 1 parser failed somehow near here: (EOL)
root@DietPi:~#
your system is quite strange. It’s far away from DietPi standards. Do you install PiHole as well as NextCloud from dietpi-software catalogue?
ls -la /etc/lighttpd/conf-available
ls -la /etc/lighttpd/conf-enabled
I found tutorial for installing PiHole with DietPi but with curl command. curl -sSL https://install.pi-hole.net | bash
Everything after that I installed through dietpi.
drwxr-xr-x 2 root root 4096 Dec 27 14:43 .
drwxr-xr-x 4 root root 4096 Dec 28 00:51 ..
-rw-r--r-- 1 root root 839 Sep 18 12:58 05-auth.conf
-rw-r--r-- 1 root root 91 Sep 27 2019 10-accesslog.conf
-rw-r--r-- 1 root root 396 Sep 27 2019 10-cgi.conf
-rw-r--r-- 1 root root 63 Sep 27 2019 10-dir-listing.conf
-rw-r--r-- 1 root root 36 Sep 27 2019 10-evasive.conf
-rw-r--r-- 1 root root 128 Sep 27 2019 10-evhost.conf
-rw-r--r-- 1 root root 104 Sep 27 2019 10-expire.conf
-rw-r--r-- 1 root root 177 Sep 27 2019 10-fastcgi.conf
-rw-r--r-- 1 root root 42 Sep 27 2019 10-flv-streaming.conf
-rw-r--r-- 1 root root 82 Sep 27 2019 10-no-www.conf
-rw-r--r-- 1 root root 849 Sep 27 2019 10-proxy.conf
-rw-r--r-- 1 root root 176 Sep 27 2019 10-rewrite.conf
-rw-r--r-- 1 root root 253 Sep 27 2019 10-rrdtool.conf
-rw-r--r-- 1 root root 398 Sep 27 2019 10-simple-vhost.conf
-rw-r--r-- 1 root root 449 Sep 27 2019 10-sockproxy.conf
-rw-r--r-- 1 root root 99 Sep 27 2019 10-ssi.conf
-rw-r--r-- 1 root root 203 Sep 18 12:58 10-ssl.conf
-rw-r--r-- 1 root root 460 Sep 27 2019 10-status.conf
-rw-r--r-- 1 root root 450 Sep 27 2019 10-userdir.conf
-rw-r--r-- 1 root root 38 Sep 27 2019 10-usertrack.conf
-rw-r--r-- 1 root root 168 Sep 27 2019 11-extforward.conf
-rw-r--r-- 1 root root 372 Dec 27 14:42 15-fastcgi-php.conf
-rw-r--r-- 1 root root 508 Sep 27 2019 90-debian-doc.conf
-rw-r--r-- 1 root root 188 Dec 27 14:43 99-dietpi-dav_redirect.conf
-rw-r--r-- 1 root root 1203 Dec 27 14:43 99-dietpi-nextcloud.conf
-rw-r--r-- 1 root root 162 Sep 27 2019 99-unconfigured.conf
-rw-r--r-- 1 root root 843 Sep 27 2019 README
drwxr-xr-x 2 root root 4096 Dec 28 20:18 .
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-available/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-available/99-dietpi-nextcloud.conf
lrwxrwxrwx 1 root root 39 Dec 28 20:18 99-dietpi-pihole.conf -> ../conf-available/99-dietpi-pihole.conf
lrwxrwxrwx 1 root root 38 Dec 27 12:57 99-unconfigured.conf -> ../conf-available/99-unconfigured.conf
OK now we know the root cause for all your issues. You should have used dietpi-software to install PiHole. Next time, pls do it that way. that causes less headache.
Let’s try to fix it.
curl -sSfL https://raw.githubusercontent.com/MichaIng/DietPi/master/.conf/dps_93/lighttpd.pihole.conf -o /etc/lighttpd/conf-available/99-dietpi-pihole.conf
cd /var/www
ln -s html/pihole pihole
ln -s html/admin admin
systemctl restart lighttpd.service
if it’s still giving error during web server start, try to test configuration again
/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
Its ok now.
PiHole, NextCloud, UrBackup, MotionEye I can access through IP address.
I am sorry for wasting your time, but I just got THE wrong youtube tutorial video.
So to sum up if I install over official dietpi program all the apps this wont happen.
I am asking so I can make changes for my messed up totorial(for myself).
Really really thank you for helping me, and for not wasting time for reinstallation(it would be my 3rd one).
Yes, pls try using dietpi-software if possible. This will ensure most compatibility between all the apps offered. As well it’s much easier/faster using dietpi-software instead of watching (probably outdated) YouTube tutorial