D
D
Deepin_OS2019-02-14 20:33:26
Apache HTTP Server
Deepin_OS, 2019-02-14 20:33:26

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

4 answer(s)
D
dmitryzakharov, 2019-02-14
@dmitryzakharov

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

R
Roman, 2019-02-15
@procode

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.

A
Anton, 2019-02-15
@karminski

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.

K
Kamil, 2019-09-26
@Lakika

chown -R www-data /var/www
chmod -R 755 /var/www

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question