mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
test timeout adjustment
This commit is contained in:
parent
45fc8594d2
commit
2f34c49a69
@ -29,13 +29,79 @@ 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.
|
# Customize php handling.
|
||||||
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/php.conf
|
||||||
cat<<EO_F >/etc/httpd/conf.d/fcgi.conf
|
#
|
||||||
FcgidIdleTimeout 1200
|
# The following lines prevent .user.ini files from being viewed by Web clients.
|
||||||
FcgidProcessLifeTime 1200
|
#
|
||||||
FcgidConnectTimeout 1200
|
<Files ".user.ini">
|
||||||
FcgidIOTimeout 1200
|
<IfModule mod_authz_core.c>
|
||||||
|
Require all denied
|
||||||
|
</IfModule>
|
||||||
|
<IfModule !mod_authz_core.c>
|
||||||
|
Order allow,deny
|
||||||
|
Deny from all
|
||||||
|
Satisfy All
|
||||||
|
</IfModule>
|
||||||
|
</Files>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Allow php to handle Multiviews
|
||||||
|
#
|
||||||
|
AddType text/html .php
|
||||||
|
|
||||||
|
#
|
||||||
|
# Add index.php to the list of files that will be served as directory
|
||||||
|
# indexes.
|
||||||
|
#
|
||||||
|
DirectoryIndex index.php
|
||||||
|
|
||||||
|
# mod_php options
|
||||||
|
<IfModule mod_php.c>
|
||||||
|
#
|
||||||
|
# Cause the PHP interpreter to handle files with a .php extension.
|
||||||
|
#
|
||||||
|
<FilesMatch \.(php|phar)$>
|
||||||
|
SetHandler application/x-httpd-php
|
||||||
|
</FilesMatch>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Uncomment the following lines to allow PHP to pretty-print .phps
|
||||||
|
# files as PHP source code:
|
||||||
|
#
|
||||||
|
#<FilesMatch \.phps$>
|
||||||
|
# SetHandler application/x-httpd-php-source
|
||||||
|
#</FilesMatch>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Apache specific PHP configuration options
|
||||||
|
# those can be override in each configured vhost
|
||||||
|
#
|
||||||
|
php_value session.save_handler "files"
|
||||||
|
php_value session.save_path "/var/lib/php/session"
|
||||||
|
php_value soap.wsdl_cache_dir "/var/lib/php/wsdlcache"
|
||||||
|
|
||||||
|
#php_value opcache.file_cache "/var/lib/php/opcache"
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
# Redirect to local php-fpm if mod_php (5 or 7) is not available
|
||||||
|
<IfModule !mod_php5.c>
|
||||||
|
<IfModule !mod_php7.c>
|
||||||
|
<IfModule !mod_php.c>
|
||||||
|
# Enable http authorization headers
|
||||||
|
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
|
||||||
|
<Proxy "unix:/run/php-fpm/www.sock|fcgi://localhost">
|
||||||
|
ProxySet timeout=1200
|
||||||
|
</Proxy>
|
||||||
|
|
||||||
|
<FilesMatch \.(php|phar)$>
|
||||||
|
SetHandler "proxy:fcgi://localhost"
|
||||||
|
</FilesMatch>
|
||||||
|
|
||||||
|
</IfModule>
|
||||||
|
</IfModule>
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
EO_F
|
EO_F
|
||||||
|
|
||||||
mkdir -p /run/php-fpm/ 2>/dev/null
|
mkdir -p /run/php-fpm/ 2>/dev/null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user