Home  >  Article  >  Backend Development  >  Example of configuration file modification method for nginx and php upload attachment size

Example of configuration file modification method for nginx and php upload attachment size

小云云
小云云Original
2018-03-08 11:46:061553browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn