itemprop="text">
With a fresh Ubuntu LAMP stack, I'm
wondering why Apache serves up a Forbidden: Permission Denied error for my
site.
Apache2 was setup with the default
user/group
www-data
.
It's document
root is /var/www
The
permissions of that folder and its contents are 744
webmaster:www-data
The
webmaster is just a sudo user for maintenance and has been added to the www-data
group.
But by all things, shouldn't this work?
Answer
A directory needs to have the execute permission set as well as the read
permission. So
chmod 755
/var/www
should solve
your problem.
Comments
Post a Comment