mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-25 02:31:34 -05:00
Add missing instructions
This commit is contained in:
parent
f8ffc68422
commit
2439a4b7e2
@ -14,7 +14,7 @@ sudo dnf install -y composer
|
|||||||
## Install other necessary packages
|
## Install other necessary packages
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo dnf install -y php-gd php-opcache php-pdo unzip
|
sudo dnf install -y php-gd php-mysqlnd php-opcache php-pdo unzip
|
||||||
```
|
```
|
||||||
|
|
||||||
## Setup Directory Structure
|
## Setup Directory Structure
|
||||||
@ -34,6 +34,8 @@ sudo setfacl -m u:nginx:rwx /srv/drupal
|
|||||||
|
|
||||||
# Setup SELinux context
|
# Setup SELinux context
|
||||||
sudo semanage fcontext -a -t httpd_sys_content_t "$(realpath /srv/drupal)(/.*)?"
|
sudo semanage fcontext -a -t httpd_sys_content_t "$(realpath /srv/drupal)(/.*)?"
|
||||||
|
sudo semanage fcontext -a -t httpd_sys_rw_content_t "$(realpath /srv/drupal)(/.*)/web/sites(/.*)/files(/.*)?"
|
||||||
|
sudo semanage fcontext -a -t httpd_sys_rw_content_t "$(realpath /srv/drupal)(/.*)/web/sites(/.*)/settings.php"
|
||||||
sudo restorecon -Rv /srv/drupal
|
sudo restorecon -Rv /srv/drupal
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -53,7 +55,7 @@ umask 022
|
|||||||
|
|
||||||
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
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user