I use MediaWiki but there is an error. I found it in the files. There is line with this code:
$IP = realpath( '.' );
Note: The running script must have executable permissions on all directories in the hierarchy, otherwise
realpath()will return FALSE.
So your web server should have access also to pre-webroot directories.