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

小云云
Release: 2023-03-20 21:48:01
Original
1541 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!