Answer the question
In order to leave comments, you need to log in
What rights should be set on /var/www after installing Apache2 locally!?
Hello!
It's enough?
Thank you. sudo chown -R $USER:$USER /var/www
Answer the question
In order to leave comments, you need to log in
By default already adequate rights. The installers of most cms will tell you what rights they lack. On Debian-like distributions:
sudo chown -R www-data:www-data /var/www
Depending on whose name the process is launched.
Usually from www-data
Then the user still needs to be additionally in the www-data group
But personally, I usually run Apache on behalf of the user - then you can not change anything at all)
Changes in Apache configs.
1. Add USER to the www-data group
2. sudo chmod -R 775 /var/www 3. sudo
chown
-R www-data:www-data /var/www
the first two lines.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question