Update 'docs/install.txt'

This commit is contained in:
naomi 2020-11-19 18:38:41 +01:00
parent 7c5ee54a44
commit 31be127d30
1 changed files with 32 additions and 37 deletions

View File

@ -1,51 +1,34 @@
SYSTEM
===========
apt install php-gd php-mbstring php-xml php-curl composer
a2enmod rewrite
composer create-project drupal/recommended-project:8.9.8 drupal
# ADD THIS TO drupal/composer.json IN THE REPOSITORIES SECTION
,{
"type": "vcs",
"url": "https://git.autonomic.zone/autonomic-cooperative/opencase.git"
}
# INSTALL MODULES VIA COMPOSER (this will add them to composer.json, which is better than using a premade one, because this way the versions will all sort themselves out)
composer require drupal/admin_toolbar drupal/security_review drupal/smtp drupal/opencase drupal/superfish
SITE
====
#TODO make the vhost
#TODO in apache2.conf set Override All on the directory
# CREATE DIRECTORIES AND SET UP FILE PERMISSIONS
DRUPAL
======
composer create-project drupal/recommended-project drupal
#TODO place composer.json in the drupal directory that should have appeared
composer install
mysql -uroot -p
drop database ...;
create database ...;
cd drupal
# start in drupal directory
mkdir -p config/sync
mkdir private
# if web server user =/= deployment user:
# start in drupal directory
sudo chgrp www-data config/sync
cd web
cp sites/default/default.settings.php sites/default/settings.php
sudo chgrp www-data . -R
mkdir sites/default/files
sudo chmod g+w sites/default/files -R
chmod g+w sites/default/settings.php
sudo find -type d -exec chmod g+s {} \;
# TODO run the installer
drush pm-uninstall search
drush en superfish admin_toolbar smtp superfish security_review opencase -y
# if web server user =/= deployment user:
sudo chmod g-w sites/default/
sudo chmod a-w sites/default/settings.php
sudo chmod g-w sites
sudo chmod g-w sites ./sites/example.settings.local.php ./sites/development.services.yml ./sites/example.sites.php ./sites/default/default.services.yml ./sites/default/default.settings.php ./autoload.php
sudo chmod g-w -R modules/
@ -59,14 +42,26 @@ drush en superfish admin_toolbar smtp superfish security_review opencase -y
sudo chmod g+w,o-r,o-x private
# INSTALL THE SITE
- Create a database
- Go to the url and run the installer
# make settings file unwriteable now that it has been generated
sudo chmod a-w sites/default/settings.php
# ENABLE all the above modules
drush en admin_toolbar security_review smtp opencase -y
# TODO set $trusted_host_patterns (in settings.php)
# TODO private files (/home/foo/drupal/private) (in settings.php)
# TODO private files (in settings.php)
# TODO Set all the HTML roles to admin only - /admin/config/content/formats
# TODO run security review (make eveything untrusted except CRM Admin and Admin) - /admin/config/security-review
# TODO homepage -> /opencase/all-cases, 403 - /user/login - /admin/config/system/site-information
# TODO homepage -> /opencase/whatever-the-chosen-homepage, 403 - /user/login - /admin/config/system/site-information
# TODO disable blocks: tools, main navigation, footer menu - /admin/structure/block
# TODO logo & colours - admin/appearance/settings/bartik
# TODO disallow registering an account & turn off personal contact forms - /admin/config/people/accounts
# TODO add linked actor field to form display and display display - top of both
# TODO change which contact form is the default - /admin/structure/contact
# TODO change "short" date formate to d/m/Y - /admin/config/regional/date-time
# TODO change "short" date formate to d/m/Y - /admin/config/regional/date-time