sudo chown -R admin_user:www-data /path/to/drupal
sudo chown -R orchid:www-data /var/www/lol_system
sudo find /path/to/drupal -type d -exec chmod g+s {} \;
sudo find /var/www/lol_system -type d -exec chmod g+s {} \;
sudo find /path/to/drupal -type d -exec chmod 775 {} \;
sudo find /var/www/lol_system -type d -exec chmod 775 {} \;
sudo find /path/to/drupal -type f -exec chmod 664 {} \;
sudo find /var/www/lol_system -type f -exec chmod 664 {} \;
sudo chmod -R 775 /path/to/drupal/sites/default/files
sudo chown -R www-data:www-data /path/to/drupal/sites/default/files
Update ~/.bashrc :
umask 002
cactus@2600:/var/www/lol_system/cms/web/sites/default$ cp default.services.yml services.yml
cactus@2600:/var/www/lol_system/cms/web/sites/default$ cp default.settings.php settings.php
-rw-r--r-- 1 cactus www-data 10656 Jan 20 12:48 services.yml
-rw-r--r-- 1 cactus www-data 36406 Jan 20 12:56 settings.php
Add Trusted Host to the settings.php$settings['trusted_host_patterns'] = [
'^gluebox\.com$',
'happyplant\.lol$'
];