Apache won't follow symlinks | 403 permission denied

By xngo on February 24, 2019

# 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

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.