mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
php-fpm timeouts adjustment
This commit is contained in:
parent
c7b3a63288
commit
45fc8594d2
@ -3,4 +3,5 @@ variables:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
script:
|
script:
|
||||||
|
- docker pull pandorafms/pandorafms-base:centos8
|
||||||
- docker run --rm -h pandorafms -t -v "$CI_PROJECT_DIR:/tmp/pandorafms" pandorafms/pandorafms-base:centos8 /tmp/pandorafms/tests/test.sh
|
- docker run --rm -h pandorafms -t -v "$CI_PROJECT_DIR:/tmp/pandorafms" pandorafms/pandorafms-base:centos8 /tmp/pandorafms/tests/test.sh
|
||||||
|
@ -70,6 +70,7 @@ RUN dnf install -y vim wget bzip2 curl && \
|
|||||||
perl-IO-Socket-INET6 \
|
perl-IO-Socket-INET6 \
|
||||||
perl-Socket6 \
|
perl-Socket6 \
|
||||||
perl-Sys-Syslog \
|
perl-Sys-Syslog \
|
||||||
|
perl-IO-Socket-SSL \
|
||||||
nmap \
|
nmap \
|
||||||
sudo \
|
sudo \
|
||||||
xprobe2 \
|
xprobe2 \
|
||||||
|
@ -29,6 +29,15 @@ echo "php_value[upload_max_filesize] = 800M" >> /etc/php-fpm.d/www.conf
|
|||||||
echo "php_value[post_max_size] = 800M" >> /etc/php-fpm.d/www.conf
|
echo "php_value[post_max_size] = 800M" >> /etc/php-fpm.d/www.conf
|
||||||
echo "php_value[memory_limit] = -1" >> /etc/php-fpm.d/www.conf
|
echo "php_value[memory_limit] = -1" >> /etc/php-fpm.d/www.conf
|
||||||
|
|
||||||
|
# Customize timeouts.
|
||||||
|
sed -i 's/SetHandler "proxy:unix:\/run\/php-fpm\/www.sock|fcgi:\/\/localhost"/SetHandler "proxy:unix:\/run\/php-fpm\/www.sock\|fcgi:\/\/localhost" timeout 1200/' /etc/httpd/conf.d/php.conf
|
||||||
|
cat<<EO_F >/etc/httpd/conf.d/fcgi.conf
|
||||||
|
FcgidIdleTimeout 1200
|
||||||
|
FcgidProcessLifeTime 1200
|
||||||
|
FcgidConnectTimeout 1200
|
||||||
|
FcgidIOTimeout 1200
|
||||||
|
EO_F
|
||||||
|
|
||||||
mkdir -p /run/php-fpm/ 2>/dev/null
|
mkdir -p /run/php-fpm/ 2>/dev/null
|
||||||
/usr/sbin/php-fpm
|
/usr/sbin/php-fpm
|
||||||
check "Starting PHP-FPM" $?
|
check "Starting PHP-FPM" $?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user