tutorial [Info] Pihole-lighttpd issue with debian buster

Recommended Posts

Yesterday i did install Armbian_5.86_Aml-s905_Debian_buster_default_5.1.0_20190514.img from @balbes150
on my Sunvell T95KPro (S912).


While installing Pihole the Installation does break when trying to start lighttpd.

After checking with journalctl -u lighttpd  it turns out that the file /usr/share/lighttpd/create-mime.assign.pl 

is missing, because in the newer lighttpd-version of debian buster the file has be renamed

to /usr/share/lighttpd/create-mime.conf.pl 

(see also https://discourse.pi-hole.net/t/lighttpd-does-not-start/6207/11 )


Pihole doesnt know/use the new name with debian buster, so it fails to start the lighttpd :(


So I did find 2 ways to resolve the problem.


First (quick and dirty?) way:

cp /usr/share/lighttpd/create-mime.conf.pl /usr/share/lighttpd/create-mime.assign.pl 

the second way (found it at https://forum.kuketz-blog.de/viewtopic.php?t=3067 ) is to edit /etc/lighttpd/lighttpd.conf 

and search for the 2 following lines and comment them out (found the 2nd one at the end of the file):

#include_shell "/usr/share/lighttpd/create-mime.assign.pl"
#include_shell "cat external.conf 2>/dev/null"

and add the follwoing line to the file:

include_shell "/usr/share/lighttpd/create-mime.conf.pl"

After saving the file you should be able to restart lighttpd via

sudo /etc/init.d/lighttpd restart
sudo service lighttpd restart

sudo service lighttpd stop
sudo service lighttpd start


BUT second way does not work good with updating or repair-install of pihole, because I think this will set the config-file to the old state :(

(also for server.error-handler-404)

So maybe the first way will work better while pihole doenst know the new file-name - or you also can do both ways :)


BTW: If you are experience a 404 Bad Request while  only using the IP for getting to the Pihole-Webpage (and the redirect should ask you if you want to use the /admin page - but it doenst)

then try the follwing small resolution - edit a line in the file /etc/lighttpd/lighttpd.conf

server.error-handler-404    = "pihole/index.php"

server.error-handler-404    = "/pihole/index.php"




Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.