Example of configuration file modification method for Nginx and PHP upload attachment size

Source: Internet
Author: User
This article mainly share with you the Nginx and PHP upload attachment size configuration file Modification Method Example, I hope to help everyone.

There are three configuration files to modify:

Affects the size limit of the upload attachment.

The value of the php.ini of the application server is modified to:

Max_execution_time = 1200post_max_size = 200mbmax_input_time = 1200memory_limit = 512mbupload_max_filesize = 200M

Modify File nginx.conf
Modify the following key to 200m
client_max_body_size 200m;

Modify PHP config file:php-fpm.conf
Php_admin_value[memory_limit] = 512M
value is 512M
Restart nginx and PHP-FPM services.

Related recommendations:

Plupload upload attachment control in IE drag performance is invalid

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.