1.设置Apache文件大小上传限制
http.conf文件(apache/config目录下)添加如下设置(1G=1024*1024*1024):
FcgidMaxRequestLen 5368709120
LimitRequestBody 5368709120
2.设置php.ini文件,修改如下:
upload_max_filesize=10240M
post_max_size = 10240M
max_execution_time=0 //这个值为0表示执行没有时间限制,等同于程序中加入ini_set('max_execution_time', '0')
max_input_time=3000
3.重启apache
参考链接:https://my.oschina.net/junn/blog/147931,https://blog.csdn.net/u014103733/article/details/54755802,https://www.jb51.net/article/27721.htm