# Test whether apache has access to directory. sudo -u www-data ls /root/my/website # Not safe but you can fine tune access restriction later chmod 755 /root/ chmod 755 /root/my chmod 755 /root/my/website Apache About the author Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.