Setting $wgCreateWikiDatabase and $wgCreateWikiCacheDirectory = $wgCacheDirectory; works for me. Didn't. Sorry.