Answer the question
In order to leave comments, you need to log in
Ubuntu - Apache2 | What rights should be on the site folder?
Good afternoon! Tell me, what rights should the site folder have? For example /mysite/www.
I do like this:
chmod -R 755 /mysite/www
chown -R www-data:www-data /mysite/www
Answer the question
In order to leave comments, you need to log in
Usually put the site in / var / www
Folders should have permissions 775 for user www-data and group www-data.
chmod -R 755 /mysite/www
Recursively set the same permissions for folders and files, which is undesirable. sudo find /mysite/www -type d -exec chmod -R 775 {} \;
sudo find /mysite/www -type f -exec chmod -R 664 {} \;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question