【xampp篇】wordpress搬家,All-in-One WP Migration导入提示文件大小限制怎么办?

909次阅读
没有评论

共计 1363 个字符,预计需要花费 4 分钟才能阅读完成。

xampp怎么导入数据库?

xampp修改服务器文件大小限制:

wordpress搬家,All-in-One WP Migration导出的备份文件一般都很大,远远超出服务器默认的大小。那导入提示文件大小限制怎么办?增加最大上传文件大小 ,如下图,本来限制20M,40M,修改成了256M。

【xampp篇】wordpress搬家,All-in-One WP Migration导入提示文件大小限制怎么办?

我服务器端用的是宝塔面板,自己本地搭建环境的时候用的是XAMPP,方法如下:

点击XAMPP Control Panel面板上的config  , PHP(php.ini),

 

【xampp篇】wordpress搬家,All-in-One WP Migration导入提示文件大小限制怎么办?

如果是这个插件的文件限制问题的话,搜索“post_max_size=”,后面的数字修改成想要的大小即可。

 

【xampp篇】wordpress搬家,All-in-One WP Migration导入提示文件大小限制怎么办?

修改完记得关闭,重启Apache:

【xampp篇】wordpress搬家,All-in-One WP Migration导入提示文件大小限制怎么办?【xampp篇】wordpress搬家,All-in-One WP Migration导入提示文件大小限制怎么办?

 


附上插件官方解决方案:

There are 4 ways that you can choose to increase the maximum upload file size in WordPress.

1. Use our plugin (easy)

https://import.wp-migration.com

2. Contact hosting provider (medium)

Reach over to the customer support of your hosting provider and ask them to increase these limits for you
If you are still unable to import your file, the easiest way to figure out the problem is to request error logs from your hosting provider for your website. Examine the logs around the time when you tried to import the backup.
You will see what limit you have encountered and increasing it will solve the issue.

3. Do it yourself (hard)

Edit .htaccess file

php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value memory_limit 256M
php_value max_execution_time 300
php_value max_input_time 300
or

Edit wp-config.php file

@ini_set( 'upload_max_filesize' , '128M' );
@ini_set( 'post_max_size', '128M');
@ini_set( 'memory_limit', '256M' );
@ini_set( 'max_execution_time', '300' );
@ini_set( 'max_input_time', '300' );

upload_max_filesize – set this to a value > than your backup
post_max_size – set this to a value > than your backup
memory_limit – set this to a value > than your backup
max_execution_time – set this to 0 (infinite)

 

正文完
 
jiffish
版权声明:本站原创文章,由 jiffish 2023-03-01发表,共计1363字。
转载说明:
【转载】本站原创内容除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【展示】本站内容仅供查询之用,网站页面为程序根据网络信息自动生成,站点不存储任何实质资料文件。
【投诉】欢迎留言投诉反馈各类问题,我们会积极、认真、严肃对待。留言评论或者反馈邮件:support@gelimao.com
找不到电子书?想要学习怎么寻找电子书?联系站长
评论(没有评论)
验证码