Added php-FPM pool for backend services
This commit is contained in:
19
CMS/Backend/Fpm-Pool.conf-unconfigured
Normal file
19
CMS/Backend/Fpm-Pool.conf-unconfigured
Normal 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
7
CMS/Backend/conf.sh
Normal 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
|
||||||
@@ -25,7 +25,7 @@ location = /backend/netdata {
|
|||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
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;
|
fastcgi_index index.php;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ PKGI="${PKGM} install -y --no-install-recommends"
|
|||||||
|
|
||||||
if [ $TestMode = 1 ]; then
|
if [ $TestMode = 1 ]; then
|
||||||
domain=ict-dagbesteding.nl
|
domain=ict-dagbesteding.nl
|
||||||
|
sitename=ict_DB_nl
|
||||||
email=b.prieshof@ictmaatwerk.com
|
email=b.prieshof@ictmaatwerk.com
|
||||||
password=MeiFerrieSekureTESTp@ssw0rd4213
|
password=MeiFerrieSekureTESTp@ssw0rd4213
|
||||||
hostname=vdh001.nxdi.nl
|
hostname=vdh001.nxdi.nl
|
||||||
@@ -564,4 +565,4 @@ systemctl reload sshd postfix postfix@-
|
|||||||
# Done #
|
# Done #
|
||||||
##-------##
|
##-------##
|
||||||
|
|
||||||
msg " Done installing!"
|
msg " Done installing!"
|
||||||
|
|||||||
Reference in New Issue
Block a user