Import-Export WordPress Data and Maximum Upload Size

A couple of month ago, there is an ‘accident’ at the provider, data in several blogs, especially my English blog was erased. I need to recover its blog content from the backup server even the available backup was couple months before the accident. It’s better than nothing.

To export-import post on WordPress, the fastest way is using the menu on WordPress Admin | Tools | Export from the old blog then you import it again through WordPress Admin | Tools | Import, but this method didn’t work as expected as the default setting on my hosting will only allow uploading 2 MB file.

If you face the same issue, there are some tips you can learn to overcome it, those are:

    1. Ask the hosting management to raise the maximal limit to upload file. Fortunately I have access to admin hosting (because the setup is in Excellent cloud), so I can directly set trough PHP Configuration menu.
    2. Use Advance Export-Import plugin
    3. Edit .htaccess file in the root folder, for example add an item like this:
#set max upload file size
php_value upload_max_filesize 50M#set max post size
php_value post_max_size 50M

By the way, when I checked the third method, it always fails, even worst the internal server error occurred after doing this method. Maybe there is a module protection loaded by Apache.

In my case, I choose the first method, because it’s simpler and I have full access to the server.

Leave a Reply