Last active
July 25, 2016 18:57
-
-
Save jbpapp/a1a2378c6f19c6399888 to your computer and use it in GitHub Desktop.
Nginx & PHP5-FPM settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=================================== | |
/etc/php5/fpm/pool.d/www.conf | |
=================================== | |
[...] | |
request_terminate_timeout = 300 | |
[...] | |
php_admin_value[post_max_size] = 100M | |
php_admin_value[upload_max_filesize] = 100M | |
php_admin_value[max_execution_time] = 300 | |
=================================== | |
virtualhosts | |
=================================== | |
[...] | |
location ~ \.php$ { | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
#fastcgi_pass unix:/var/run/php5-fpm.sock; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
include fastcgi_params; | |
fastcgi_buffers 8 16k; | |
fastcgi_buffer_size 32k; | |
fastcgi_connect_timeout 300; | |
fastcgi_send_timeout 300; | |
fastcgi_read_timeout 300; | |
} | |
[...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment