Home  >  Article  >  Backend Development  >  What should I do if I get an error when uploading a large file in php fastcgi mode?

What should I do if I get an error when uploading a large file in php fastcgi mode?

WBOY
WBOYOriginal
2016-07-25 08:52:29939browse
  1. addhandle fcgid-script .fcgi
  2. fcgidconnecttimeout 20
  3. # to get around upload errors when uploading images increase the maxrequestlen size to 15mb
  4. fcgidmaxrequestlen 15728640
  5. & lt;/ifmodule>
Copy the code

If it is a php+apache windows environment, refer to the following configuration and find it in php.ini upload_max_filesize, and other post_max_size, max_input_time, memory_limit, max_execution_time configuration Modify the upload file size and then restart the apache server.



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