WordPress解决上传文件大小限制问题

在nginx的配置文件里http下面加入一句:client_max_body_size 64M;
例如我的配置文件路径为: /etc/nginx/nginx.conf
php.ini
upload_max_filesize = 128M
post_max_size = 128M
memory_limit 256M
max_execution_time 300
max_input_time 300
然后重启php和nginx:
service php-fpm restart
service nginx reload

(0)
PipitaPipita
上一篇 2019-12-26
下一篇 2020-02-24

相关文章