admin管理员组文章数量:1122846
I have my blog on wordpress, I want it to be moved on self hosted server.
I have exported data from my wordpress blog to XML file, However, When I went to import the data to my self hosted wordpress installation it says file must not be greater than 15MB and my file is of 2257 MB
How do I go to import such a large file?
I have my blog on wordpress.com, I want it to be moved on self hosted server.
I have exported data from my wordpress.com blog to XML file, However, When I went to import the data to my self hosted wordpress installation it says file must not be greater than 15MB and my file is of 2257 MB
How do I go to import such a large file?
Share Improve this question asked Feb 6, 2013 at 6:08 sunlightsunlight 111 bronze badge3 Answers
Reset to default 1you should try splitting the file with this tool. I used it several years ago and hopefully it still works with the current export file format.
After splitting you import each of the generated files.
Have you tried increasing the max upload size of wp??? you can increase it many ways given below are few Adding following code in theme’s functions.php file, you can increase the upload size:
@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );
Create or Edit an existing PHP.INI file
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
htaccess Method
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
Another option is to use wp-cli import instead:
# Import content from a WXR file
$ wp import example.wordpress.2016-06-21.xml --authors=create
By uploading the file and running the import outside of the admin website you're not subject to the web server's file upload limits, or memory and processing time restrictions.
本文标签: Import data from file larger than 15 MB
版权声明:本文标题:Import data from file larger than 15 MB 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736298942a1930336.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论