Problem:
[2015/02/27 00:23:41] minidlna.c:955: error: Unable to set db_path [/var/cache/minidlna] ownership to 1000: Operation not permitted
[2015/02/27 00:23:41] minidlna.c:960: fatal: Failed to switch to uid '1000'. [Operation not permitted] EXITING.
[2015/02/27 00:27:25] minidlna.c:452: warn: Unable to change pidfile ownership
[2015/02/27 00:27:25] minidlna.c:960: fatal: Failed to switch to uid '1000'. [Operation not permitted] EXITING.
Solution:
$ chown -R myuser /var/cache/minidlna
$ chgrp -R myuser /var/cache/minidlna
$ vi /etc/default/minidlna
add line: USER="myuser"
$ vi /etc/minidlna.conf
change line: user=minidlna for user=myuser
add line: media_dir=/home/myuser/media/