Skip to content

Instantly share code, notes, and snippets.

@jbpapp
Last active July 25, 2016 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbpapp/a1a2378c6f19c6399888 to your computer and use it in GitHub Desktop.
Save jbpapp/a1a2378c6f19c6399888 to your computer and use it in GitHub Desktop.
Nginx & PHP5-FPM settings
===================================
/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