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

Re: nextcloud PiHole web admin pages - conflict

Post by selih34 »

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.
User avatar
Joulinar
Posts: 3131
Joined: Sat Nov 16, 2019 12:49 am

Re: nextcloud PiHole web admin pages - conflict

Post by Joulinar »

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.

Code: Select all

cat /var/log/lighttpd/error.log
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 »

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... ???????
User avatar
Joulinar
Posts: 3131
Joined: Sat Nov 16, 2019 12:49 am

Re: nextcloud PiHole web admin pages - conflict

Post by Joulinar »

well, it doesn't make sense to attach an empty file ;)

let's check configuration. This will be a test only

Code: Select all

/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
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 »

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:~#
User avatar
Joulinar
Posts: 3131
Joined: Sat Nov 16, 2019 12:49 am

Re: nextcloud PiHole web admin pages - conflict

Post by Joulinar »

your system is quite strange. It's far away from DietPi standards. Do you install PiHole as well as NextCloud from dietpi-software catalogue?

Code: Select all

ls -la /etc/lighttpd/conf-available
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 »

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.

Code: Select all

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
User avatar
Joulinar
Posts: 3131
Joined: Sat Nov 16, 2019 12:49 am

Re: nextcloud PiHole web admin pages - conflict

Post by Joulinar »

selih34 wrote: Mon Dec 28, 2020 9:19 pm I found tutorial for installing PiHole with DietPi but with curl command. curl -sSL https://install.pi-hole.net | bash
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.

Code: Select all

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

Code: Select all

/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
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 »

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).
User avatar
Joulinar
Posts: 3131
Joined: Sat Nov 16, 2019 12:49 am

Re: nextcloud PiHole web admin pages - conflict

Post by Joulinar »

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 ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply