Home >Backend Development >PHP Tutorial >Example of configuration file modification method for nginx and php upload attachment size
This article mainly shares with you examples of how to modify the configuration file size of nginx and php upload attachments. I hope it can help you.
There are three configuration files to modify:
The size limit that affects uploaded attachments.
The value of php.ini of the application server is modified to:
max_execution_time = 1200 post_max_size = 200MB max_input_time = 1200 memory_limit = 512MB upload_max_filesize = 200M
Modify the file nginx.conf
Modify the following items to 200m
client_max_body_size 200m;
Modify the PHP configuration file: php-fpm.conf
php_admin_value[memory_limit] = 512M
The value is 512M
Restart nginx and php-fpm services.
Related recommendations:
plupload control to upload attachments has invalid drag performance in IE
The above is the detailed content of Example of configuration file modification method for nginx and php upload attachment size. For more information, please follow other related articles on the PHP Chinese website!