From 36245ac312e361aa96d86ea6b6c6d76978494a0e Mon Sep 17 00:00:00 2001 From: Heinti <106119626+Heinti@users.noreply.github.com> Date: Tue, 3 Mar 2026 17:29:11 +0200 Subject: [PATCH 1/2] Update installation-by-script.md Added option to update php-fpm file for docker installation. `pm.max_children = 30` - taken as an example. --- docs/administration/installation-by-script.md | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/docs/administration/installation-by-script.md b/docs/administration/installation-by-script.md index a1cfcce1f..93f235aa7 100644 --- a/docs/administration/installation-by-script.md +++ b/docs/administration/installation-by-script.md @@ -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 configuration file: + +``` +mkdir -p data/php; \ +nano data/php/zzz-custom.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/zzz-custom.conf:/usr/local/etc/php/conf.d/zzz-custom.conf` option for `espocrm` container as displayed below: + +``` +espocrm: + ... + volumes: + - ./data/espocrm:/var/www/html + - ./data/php/zzz-custom.conf:/usr/local/etc/php/conf.d/zzz-custom.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`: From 255515b62aab28fc920c794019ff0dd8719d2692 Mon Sep 17 00:00:00 2001 From: Heinti <106119626+Heinti@users.noreply.github.com> Date: Wed, 4 Mar 2026 16:37:03 +0200 Subject: [PATCH 2/2] Update installation-by-script.md Changes have been made according to the following steps: 1. Rename the `PHP-fpm` to `PHP-FPM`. 2. Put the configuration file to the `data/php/fpm/zzz-espocrm.conf` folder. 3. Rename the `zzz-custom.conf` to `zzz-espocrm.conf`. 4. Changed file location to `/usr/local/etc/php-fpm.d/` --- docs/administration/installation-by-script.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/administration/installation-by-script.md b/docs/administration/installation-by-script.md index 93f235aa7..97cc65db0 100644 --- a/docs/administration/installation-by-script.md +++ b/docs/administration/installation-by-script.md @@ -533,9 +533,9 @@ then press `Ctrl + 0` and `Ctrl + X` sudo ./command.sh restart espocrm ``` -## Modify PHP-fpm settings +## Modify PHP-FPM settings -This can be achieved by mounting the PHP-fpm configuration file and restarting the container. +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`: @@ -543,11 +543,11 @@ This can be achieved by mounting the PHP-fpm configuration file and restarting t cd /var/www/espocrm ``` -2\. Create the PHP configuration file: +2\. Create the PHP-FPM configuration file: ``` -mkdir -p data/php; \ -nano data/php/zzz-custom.conf +mkdir -p data/php/fpm; \ +nano data/php/fpm/zzz-espocrm.conf ``` with the content: @@ -565,14 +565,14 @@ then press `Ctrl + 0` and `Ctrl + X` sudo nano docker-compose.yml ``` -add `./data/php/zzz-custom.conf:/usr/local/etc/php/conf.d/zzz-custom.conf` option for `espocrm` container as displayed below: +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/zzz-custom.conf:/usr/local/etc/php/conf.d/zzz-custom.conf + - ./data/php/fpm/zzz-espocrm.conf:/usr/local/etc/php-fpm.d/zzz-espocrm.conf ... ```