Update 'docs/install.txt'
This commit is contained in:
parent
7c5ee54a44
commit
31be127d30
@ -1,51 +1,34 @@
|
|||||||
SYSTEM
|
|
||||||
===========
|
composer create-project drupal/recommended-project:8.9.8 drupal
|
||||||
apt install php-gd php-mbstring php-xml php-curl composer
|
|
||||||
a2enmod rewrite
|
# 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
|
# CREATE DIRECTORIES AND SET UP FILE PERMISSIONS
|
||||||
====
|
|
||||||
#TODO make the vhost
|
|
||||||
#TODO in apache2.conf set Override All on the directory
|
|
||||||
|
|
||||||
|
# start in drupal directory
|
||||||
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
|
|
||||||
mkdir -p config/sync
|
mkdir -p config/sync
|
||||||
mkdir private
|
mkdir private
|
||||||
|
|
||||||
# if web server user =/= deployment user:
|
# if web server user =/= deployment user:
|
||||||
|
# start in drupal directory
|
||||||
sudo chgrp www-data config/sync
|
sudo chgrp www-data config/sync
|
||||||
cd web
|
cd web
|
||||||
|
cp sites/default/default.settings.php sites/default/settings.php
|
||||||
sudo chgrp www-data . -R
|
sudo chgrp www-data . -R
|
||||||
|
mkdir sites/default/files
|
||||||
sudo chmod g+w sites/default/files -R
|
sudo chmod g+w sites/default/files -R
|
||||||
|
chmod g+w sites/default/settings.php
|
||||||
sudo find -type d -exec chmod g+s {} \;
|
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 g-w sites/default/
|
||||||
sudo chmod a-w sites/default/settings.php
|
|
||||||
sudo chmod g-w sites
|
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 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/
|
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
|
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 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 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 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 disable blocks: tools, main navigation, footer menu - /admin/structure/block
|
||||||
# TODO logo & colours - admin/appearance/settings/bartik
|
# TODO logo & colours - admin/appearance/settings/bartik
|
||||||
# TODO disallow registering an account & turn off personal contact forms - /admin/config/people/accounts
|
# 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 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 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
|
Reference in New Issue
Block a user