Answer the question
In order to leave comments, you need to log in
How to stop fighting with folder owner in ubuntu?
I work with wordpress, here I am writing in the terminal
sudo chown -R www-data /var/www/wordpress
sudo chown -R igor /var/www/wordpress
Answer the question
In order to leave comments, you need to log in
There is an option to run the web server on my own behalf, I also do this, since you can often see 700 file permissions.
In the file /etc/apache2/envvars
Substitute yourself in APACHE_RUN_USER and APACHE_RUN_GROUP
But at the same time you need to understand what kind of code you are running, because you yourself understand.
And so add yourself to the group, and in the source code change the rights when creating files / folders from 700 to 770.
Run Apache or whatever you have as a web server from under the same igor, give all files permissions 755 user igor group www-data and that's it. Or after each edit, do crown -R www-data:www-data /var/www/wordpress, wagon options.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question