Such a problem, I have on VDS
CMS Joomla
and when I put something through it, then the owner becomes apache
, in the end, when I try to change something via ftp
I fail to do it. I have to go through the ISP
panel and change the rights there.
I read that I need to add my user to the www-data
group, but I don’t know how to do this, but I haven’t yet found any information in Google about this. Help me to understand.
My username is testuser
But the path to the folder with my site /var/www/testuser/data/www/mysite.ru
I have a Centos operating system, ssh access too.
By ssh, I wanted to do this:
Add my user to the group with this command - sudo adduser testuser www-data
After chown testuser:www-data -R /var/www/testuser/data/www/mysite.ru
And lastly - chmod -R 775 /var/www/testuser/data/www/mysite.ru
But all this I could not do, because of the wrong commands.
Friends, tell me what am I doing wrong? Help me to understand.