Cover Art for MPD, cant get symbolic link for lighttpd to work

I would like to use MPD and Dietpi with cover art. My client app is soundirok and I tried to follow their advise by installing lighttpd from your software-config. So, I folowed their description

  • I installed lighttpd with your dietpi-software option (not directly like in the how to for archphile described)
  • nano /etc/lighttpd/lighttpd.conf

server.port = 8081

#server.errorlog = “/var/log/lighttpd/error.log”

  • try to Setup a symlink to my music collection in the document root of lighttpd:

sudo ln -s /mnt/samba /srv/http/samba

----> I get the error message: “ln: failed to create symbolic link ‘/srv/http/samba’: No such file or directory”

I am a newbie, but cd /mnt/samba shows me all my music on the nas, the directory is there.I have read somewhere it might be missing permission (dont know if that is the issue here), but that is over my head.

I guess as MPD and cover art is a standard topic, and lighttpd a proven good solution to offer those jpg (I made it work like described in the soundirok link above for archphile, but could not get it to work for dietpi), I guess many have already solved it, please educate me what do I wrong ?

Ok, I realized there is a different syntax between Archphile and Dietpi, tried to apply Denian syntax, but still not working…

so has anyone got a webserver working to give cover art to remote client app like mpad or soundirok in general ?


I guess your issue is the web server root directory because you tried to create a link inside /srv/http/. But on DietPi the lighttpd web server root is /var/www/ as you can see on config file

root@DietPi4:/var/www# cat /etc/lighttpd/lighttpd.conf |grep server.document-root
server.document-root        = "/var/www"

therefore you link needs to created like this

ln -s /mnt/samba /var/www/samba

This will create the link inside web server root directory