mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-22 01:21:33 -05:00
Fix permissions
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
3c8d0df520
commit
71eff3c907
@ -46,6 +46,7 @@ As the drupal user, run:
|
|||||||
```
|
```
|
||||||
cd /srv/drupal
|
cd /srv/drupal
|
||||||
composer create-project drupal/recommended-project drupal.yourdomain.tld
|
composer create-project drupal/recommended-project drupal.yourdomain.tld
|
||||||
|
cp /srv/drupal/drupal.yourdomain.tld/web/sites/default/default.settings.php /srv/drupal/drupal.yourdomain.tld/web/sites/default/settings.php
|
||||||
```
|
```
|
||||||
|
|
||||||
Exit the drupal user:
|
Exit the drupal user:
|
||||||
@ -121,17 +122,17 @@ exit
|
|||||||
|
|
||||||
## Install drupal
|
## Install drupal
|
||||||
|
|
||||||
As root, run:
|
|
||||||
|
|
||||||
```
|
|
||||||
cp /srv/drupal/drupal.yourdomain.tld/web/sites/default/default.settings.php /srv/drupal/drupal.yourdomain.tld/web/sites/default/settings.php
|
|
||||||
```
|
|
||||||
|
|
||||||
Go to drupal.yourdomain.tld and follow the prompts.
|
Go to drupal.yourdomain.tld and follow the prompts.
|
||||||
|
|
||||||
When you are done, run:
|
Switch to the `drupal` user:
|
||||||
|
|
||||||
```
|
```
|
||||||
chmod 444 /srv/drupal/drupal.yourdomain.tld/web/sites/default/settings.php
|
sudo su - drupal
|
||||||
chattr +i /srv/drupal/drupal.yourdomain.tld/web/sites/default/settings.php
|
```
|
||||||
|
|
||||||
|
As the drupal user, run:
|
||||||
|
|
||||||
|
```
|
||||||
|
chmod 400 /srv/drupal/drupal.yourdomain.tld/web/sites/default/settings.php
|
||||||
|
setfacl -m u:nginx:r /srv/drupal/drupal.yourdomain.tld/web/sites/default/settings.php
|
||||||
```
|
```
|
Loading…
Reference in New Issue
Block a user