大家平时在使用WordPress建站的时候不知道会不会遇到这么一个问题,就是当你想上传一个文件到你网站上面的时候,你却发现网站提示最大上传文件大小只有2M。

那这个最大上传文件大小能否修改呢?答案显然是可以的。
因为本博客使用的是Tlike虚拟主机,以Tlike虚拟主机为例,我们要先进入cPanel控制面板,然后在软件对话框里单击选择多PHP INI编辑器工具,进入多PHP INI编辑器页面。

在多PHP INI编辑器页面里,单击配置PHP INI基本设置下的下拉框,然后选择你自己的域名。

这个时候我们就可以修改自己WordPress网站的上传大小了,修改完毕之后记得点击页面左下角的应用按钮,才能使配置生效。

这个时候我们再回到自己的WordPress网站后台,查看发现刚才的设置已经生效了,搞定~

网友评论