NginX php-fpm upload max file size

$ sudo nano /etc/php5/fpm/php.ini

upload_max_filesize = 300M
post_max_size = 300M
$ sudo nano /etc/nginx/sites-available/default


        server_name 127.0.0.1;

        client_body_in_file_only clean;
        client_body_buffer_size 32K;
        client_max_body_size 300M;
        sendfile on;
        send_timeout 300s;
$ service php7.0-fpm reload
$ service nginx reload

or
$ sudo /etc/init.d/php7.0-fpm restart
$ sudo /etc/init.d/nginx restart

Screenshot at 2017-03-30 12-08-44

Advertisements

About NanoSoftTech

NanoSoftTech
This entry was posted in Debian, Linux Mint. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s