1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-11-21 17:11:33 -05:00

Fix permissions

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-06-26 17:27:19 -07:00
parent 3c8d0df520
commit 71eff3c907
Signed by: Tomster
GPG Key ID: 555C902A34EC968F

View File

@ -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
``` ```