• Hello, I have one big XML file with wordpress format. Size is 70mb. Total items is about 45k posts.

    When I’m trying to import this xml as one file or as a few little files (10 mb each) wordpress uploaded only 15k for 30 minutes and then uploading very slow. I wait 1 hour to upload 20k posts but then it was more slowly.

    I’ve changed config to next:

    php.ini:
    memory_limit = 4048M
    post_max_size = 200M
    upload_max_filesize = 200M
    max_execution_time = 60000

    .htaccess:
    php_value memory_limit 4048M
    php_value post_max_size 200M
    php_value upload_max_filesize 200M

    wp-config.php
    define(‘WP_MEMORY_LIMIT’, ‘4048M’);
    define(‘WP_MAX_MEMORY_LIMIT’, ‘4048M’);

    But nothing changes.

    Can you help me what is method to upload big xml files? I mean not only 70mb maybe and bigger.

    What I need to do? Order at freelancer converter from XML to Mysql format?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • .C

    (@lemonthirst)

    Hi Rick,

    you can use https://ro.wordpress.org/plugins/wp-all-import/

    Regarding the time it takes i had something similar (70K of posts) to import and it took a few hours for the import to end.

    Regards

    Hi Rick,

    The issue is with any good provider, it’s normal, you can’t direcly import a 70mb file at once (unless you have a dedicated server but even, server should be setup to prevent huge file sizes from WP import).

    << nginx and apache expert

    So, if you want to do that kind of big import, you could use ftp or ssh, and upload them to a new directory you create like:

    wp-content/personalfiles/

    And upload all that there, you will need to call them by direct link after.

    As a side note, changing php.ini or nginx config files is not good security wise, because it could open for then 200 mb uploads if a guy finds a hole, or trying it, for your user name on server – if server is very weak the whole upload can wrecks server.

    Hope it helps,

    I am trying to upload a XML file of a backup of my entire site that I made before moving hosts. But I am not sure how. I have Filezilla downloaded and am connected.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Upload/Import Big XML files’ is closed to new replies.