Answer the question
In order to leave comments, you need to log in
How to solve the problem with adding a user to the www-data group?
I'm on ubuntu, installed apache2, php. So far, everything seemed to be working, but when I decided to work with files, it turned out that the server had no rights to the files.
For a long time I studied articles on the Internet, tried many options, but nothing came of it.
Let me explain: I want to add my user to the www-data group in order to access the site. The folder /var/www is recursively owned by www-data
drwxrwx--- 6 www-data www-data 4096 Jan 28 21:42 www/
grep www-data /etc/group
www-data:x:33:serii
groups
serii adm cdrom sudo dip plugdev lpadmin sambashare
Answer the question
In order to leave comments, you need to log in
Make it easier.
Start Apache on your behalf.
In console:
Change variables:
export APACHE_RUN_USER=login
export APACHE_RUN_GROUP=login
sudo chmod 775 -R /path/to/project
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question