修改 wordpress 新建文章默认文件附件大小

1.修改 /etc/php.ini

修改如下参数:

upload_max_filesize=2M

post_max_size=8M

  1. 重启服务

service httpd restart