I recently installed DokuWiki successfully over at NFS, and I've updated the member wiki with instructions.
https://members.nearlyfreespeech.net/wiki/Applications/DokuWiki
In your particular case, it sounds like you need to change the "inc" and "lib" directories to be owned by the group "web."
Hope this helps!