• Resolved poolstudentjohn

    (@poolstudentjohn)


    I’m trying to import the data from my production blog into a new test environment. The production blog in at 2.6.3 and the test is at 2.7.1.

    The export went seamlessly, but the import fails with the following message:

    The uploaded file exceeds the upload_max_filesize directive in php.ini.

    I’ve changed the value to 16M with not change in results, I also changed:

    post_max_size = 16M

    This didn’t help either.

    The php.ini is in public_html, and there are no other php.ini files I could find.

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter poolstudentjohn

    (@poolstudentjohn)

    I figured it out. I had to make a change in cPanel on my host to make the php.ini file in public_html be applied to all directories below it. I could had different php.inis by putting them where I want, but in my case, one is good enough.

    try adding these 3 lines to your .htaccess
    `
    php_value upload_max_filesize 8M
    php_value post_max_size 16M
    php_value memory_limit 24M

    change values appropriately

    if that doesn’t work, you will need to split your file into smaller chunks – just do it at an appropriate place – not in the middle of the output.
    edit –
    well…never mind then :>)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Can’t Import’ is closed to new replies.