Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions docs/administration/installation-by-script.md
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,57 @@ then press `Ctrl + 0` and `Ctrl + X`
sudo ./command.sh restart espocrm
```

## Modify PHP-FPM settings

This can be achieved by mounting the PHP-FPM configuration file and restarting the container.

1\. Login via terminal to your server and open EspoCRM directory `/var/www/espocrm`:

```
cd /var/www/espocrm
```

2\. Create the PHP-FPM configuration file:

```
mkdir -p data/php/fpm; \
nano data/php/fpm/zzz-espocrm.conf
```

with the content:

```
[www]
pm.max_children = 30
```

then press `Ctrl + 0` and `Ctrl + X`

3\. Mount the created PHP-fpm configuration file to the container:

```
sudo nano docker-compose.yml
```

add `./data/php/fpm/zzz-espocrm.conf:/usr/local/etc/php-fpm.d/zzz-espocrm.conf` option for `espocrm` container as displayed below:

```
espocrm:
...
volumes:
- ./data/espocrm:/var/www/html
- ./data/php/fpm/zzz-espocrm.conf:/usr/local/etc/php-fpm.d/zzz-espocrm.conf
...
```

then press `Ctrl + 0` and `Ctrl + X`

4\. Restart the container to apply the changes:

```
sudo ./command.sh restart espocrm
```

## Modify Nginx settings

1\. Login via terminal to your server and open EspoCRM directory `/var/www/espocrm`:
Expand Down