Add '2.drupal.md'
This commit is contained in:
parent
232d6df2ee
commit
9b5c6e6ba6
31
2.drupal.md
Normal file
31
2.drupal.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# Install
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cd /var/www/html/
|
||||||
|
composer create-project drupal/recommended-project:^9 drupal4
|
||||||
|
cd drupal4
|
||||||
|
```
|
||||||
|
|
||||||
|
# Configure
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sed -i "s/^ # RewriteBase \/drupal/RewriteBase \/drupal4/" web/.htaccess
|
||||||
|
cp web/sites/default/default.settings.php web/sites/default/settings.php
|
||||||
|
echo "\$settings['trusted_host_patterns'] = ['^192.168.56.101\$'];" >> web/sites/default/settings.php
|
||||||
|
```
|
||||||
|
|
||||||
|
# Filesystem
|
||||||
|
|
||||||
|
```sh
|
||||||
|
chmod 777 web/sites/default/settings.php
|
||||||
|
mkdir -m 777 web/sites/default/files
|
||||||
|
mkdir -m 777 web/sites/default/files/translations
|
||||||
|
chown apache:apache -R *
|
||||||
|
chown apache:apache web/.*
|
||||||
|
```
|
||||||
|
|
||||||
|
# Use
|
||||||
|
|
||||||
|
Go to drupal installer at `http://192.168.56.101/drupal4`
|
||||||
|
|
||||||
|
After the installation restore the settings perms `chmod 644 drupal4/web/sites/default/settings.php`
|
||||||
Loading…
x
Reference in New Issue
Block a user