When importing wordpress to wordpress database, there are several problems I encountered.

  1. Unable to create directory “uploads”
  2. If your xml file is big, it forces you to download the admin.php after pressing the “Upload file and import” button.


  1. change mode of your upload directory to writable (chmod 777 uploads)
  2. edit the apache php.ini file to increase the file upload limits
    1. vi /etc/php5/apache2/php.ini
    2. change “memory_limit” from 8M to 20M, or more
    3. change “upload_max_filesize” from 5M to 20M, or more
    4. restart your apache server: /etc/init.d/apache restart

After all these modifications, you should be able to import your wordpress xml file. Good luck!