Support #639
Increase PHP-FPM Max Upload Size
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
- And change the following two parameters:
- 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; }
- And add the following to the server block:
- 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.