use realpath on docroot in case it is a symbolic link