无法上传,提示这个。
- 修改nginx的配置文件
client_max_body_size 50M;
client_header_timeout 3600s;
client_body_timeout 3600s;
fastcgi_connect_timeout 3600s;
fastcgi_send_timeout 3600s;
fastcgi_read_timeout 3600s;
其他webserver相应修改类似限制;如apache需要修改LimitRequestBody
修改完成重启nginx生效: service nginx reload
- 修改php配置文件php.ini;
post_max_size = 500M;
upload_max_filesize = 500M;
memory_limit = 500M;
max_execution_time = 3600;
max_input_time = 3600;
对应 php-fpm.conf也需要修改
request_terminate_timeout 3600