Project

General

Profile

Support #639

Increase PHP-FPM Max Upload Size

Added by Daniel Curtis over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Server
Target version:
Start date:
08/12/2015
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

Description

This is a guide on increasing the upload size for PHP-FPM on an Nginx web server.

  • First edit the php config file:
    vi /usr/local/etc/php.ini
    
    • And change the following two parameters:
      upload_max_filesize = 100M
      post_max_size = 100M
      max_input_time = 600
      
  • Then edit the nginx website config:
    vi /usr/local/etc/nginx/conf.d/www.example.com.conf
    
    • And add the following to the server block:
      server {
        client_max_body_size 100m;
        client_body_timeout 600;
      }
      
  • NOTE: When I installed ownCloud the upload limit was overridden by a config file in the ownCloud path. To fix this I edited the config file in the ownCloud directory:
    vi /usr/local/www/owncloud/.user.ini
    
    • And removed the upload_max_filesize and post_max_size values.

Resources

#1

Updated by Daniel Curtis over 8 years ago

  • Description updated (diff)
  • Status changed from New to Resolved
  • % Done changed from 0 to 100
#2

Updated by Daniel Curtis over 8 years ago

  • Description updated (diff)
#3

Updated by Daniel Curtis over 8 years ago

  • Description updated (diff)
#4

Updated by Daniel Curtis over 8 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF