Lighttpd Debian Stretch upgrade to Debian Buster Error: create-mime.assign.pl

09 Sep 2020

I encountered a problem with my Lighttpd configuration when upgrading from Debian Stretch (9) to Debian Buster (10). Lighttpd failed to boot and in the error logs I saw the following error:

(configfile.c.1461) command "/usr/share/lighttpd/create-mime.assign.pl" exited non-zero: 127

To fixed this error, find the following line in /etc/lighttpd/lighttpd.conf:

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

Replace that line with:

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

And then run

systemctl restart lighttpd

Lighttpd should now be working! It looks like the script location was renamed between versions.