realpath the file and die if !exist or !$docRoot