We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Rights for a website (chown)
Rights for a website (chown)
Hello,
If I do a : chown -R admin:admin /home/admin/web/domain.com/public_html I'm redirect automaticaly to the install.php of a Drupal already installed.
So I can only do a : chown -R admin:www-data /home/admin/web/domain.com/public_html and the site is reachable. But if I use a script to recreate my cache (drush hss) the rights become : anothersshuser:www-data
What's the problem ?
Thx
If I do a : chown -R admin:admin /home/admin/web/domain.com/public_html I'm redirect automaticaly to the install.php of a Drupal already installed.
So I can only do a : chown -R admin:www-data /home/admin/web/domain.com/public_html and the site is reachable. But if I use a script to recreate my cache (drush hss) the rights become : anothersshuser:www-data
What's the problem ?
Thx
Last edited by floown on Sun May 28, 2017 6:14 am, edited 3 times in total.
-
- Posts: 139
- Joined: Thu Jan 07, 2016 12:01 am
Re: Rights for a website (chown)
What does this output?
Code: Select all
ls -la /home/admin/web/domain.com/public_html
Re: Rights for a website (chown)
Hello,
I have modify my firt post.
Like you can see, the rights has changed when I make a 'drush hss' command to rebuild the cache for my Drupal 7 site. I want that right stay to admin:www-data
Thx for your help
I have modify my firt post.
Code: Select all
$ ls -la /home/admin/web/mydomain.com/public_html/cache/normal
total 16
drwxrwxrwx 4 admin www-data 4096 May 19 03:35 .
drwxrwxrwx 3 admin www-data 4096 Jan 21 2014 ..
drwxrwxr-x 10 admin www-data 4096 May 28 07:00 www.mydomain.com
$ ls -la /home/admin/web/mydomain.com/public_html/cache/normal/www.mydomain.com
total 796
drwxrwxr-x 10 admin www-data 4096 May 28 07:00 .
drwxrwxrwx 4 admin www-data 4096 May 19 03:35 ..
drwxrwxr-x 2 anothersshuser www-data 4096 May 28 06:35 agence-communication
-rw-rw-r-- 1 anothersshuser www-data 34498 May 28 06:44 agence-communication_.html
-rw-rw-r-- 1 anothersshuser www-data 26455 May 28 06:38 alsace-bas-rhin_.html
-rw-rw-r-- 1 anothersshuser www-data 26684 May 28 06:44 appetit-mise_.html
drwxrwxr-x 2 anothersshuser www-data 4096 May 28 06:38 blog
Thx for your help
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Rights for a website (chown)
user and group of the files are the same as the user.
This is correct:
chown -R admin:admin /home/admin/web/domain.com/public_html
This is correct:
chown -R admin:admin /home/admin/web/domain.com/public_html