Added php-FPM pool for backend services

This commit is contained in:
2020-07-17 14:18:23 +02:00
parent cb8b0fc014
commit 66de5c677e
4 changed files with 29 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
[Backend]
user = Backend
group = Backend
listen = /var/run/php/phpPHPver-fpm-Backend.sock
listen.owner = www-data
listen.group = www-data
php_admin_value[disable_functions] = exec,passthru,shell_exec,system
php_admin_value[cgi.fix_pathinfo] = 0
php_admin_value[max_input_vars] = 10000
php_admin_value[upload_max_filesize] = 128M
php_admin_value[post_max_size] = 64m
php_admin_flag[allow_url_fopen] = off
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
chdir = /

7
CMS/Backend/conf.sh Normal file
View File

@@ -0,0 +1,7 @@
#Backend PHP Pool
wget -q -t7 "$repo"/raw/branch/"$branch"/CMS/Backend/Fpm-Pool.conf-unconfigured -O /etc/php/"$phpver"/fpm/pool.d/Backend.conf
sed -i 's/PHPver/'$phpver'/' /etc/php/"$phpver"/fpm/pool.d/Backend.conf
groupadd Backend
useradd -g Backend Backend
chown Backend:Backend -R /usr/share/phpmyadmin
chown Backend:Backend -R /var/lib/phpmyadmin/tmp

View File

@@ -25,7 +25,7 @@ location = /backend/netdata {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/phpPHPver-fpm.sock;
fastcgi_pass unix:/var/run/php/phpPHPver-fpm-Backend.sock;
fastcgi_index index.php;
}
}

View File

@@ -39,6 +39,7 @@ PKGI="${PKGM} install -y --no-install-recommends"
if [ $TestMode = 1 ]; then
domain=ict-dagbesteding.nl
sitename=ict_DB_nl
email=b.prieshof@ictmaatwerk.com
password=MeiFerrieSekureTESTp@ssw0rd4213
hostname=vdh001.nxdi.nl