• Resolved ajeya

    (@ajeya)


    I have installed LAMP server and wordpress on my debian 7 machine.
    I have downloaded the wordpress.zip given at www.ads-software.com. Extracted it.
    I have located /etc/apache2/sites-available
    There I see a “default” file.
    I have changed the Directory path to the wordpress folder (extracted earlier).

    I have created username password.
    I have added database, username and password in mysql.
    I have given the values at the prompt at wordpress wp-admin
    After setting everything I type https://localhost at the browser address. I get a screen similar to the web version at wordpress.com.

    Now i see the “dashboard> tools> Import” option

    I am having a free wordpress blog https://ajeya.wordpress.com/
    I would like a local copy of it in my PC.
    I can get the export from web-log in xml format from “dashboard > tools> export “ajeya.wordpress.com

    In https://localhost , there is option to import. I click that and I am asked for FTP username and password.

    I understand that If I have a domain host , the host will provide me with the same. In my case it the wordpress.com domain ( a free site).
    Where do I get the FTP information for my blog at ajeya.wordpress.com

    How to get this information ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The FTP credentials being requested are those for your localhosted site, and you probably don’t run an FTP daemon. This requirement can be evaded by adding this to your wp-config.php file.

    //on localhost replace FTP updates
    define('FS_METHOD', 'direct');

    Does this fix your problem ?

    Thank you for starting your own thread on this issue.

    Thread Starter ajeya

    (@ajeya)

    added the above mentioned line. in wp-config.php

    now. I tried Dashboard> Tools >Import

    The page asks me to select importer . I choose “WordPress”
    and click “Install Now”

    I get the following on my screen:

    Installing Plugin: WordPress Importer 0.6.1

    Downloading install package from https://downloads.www.ads-software.com/plugin/wordpress-importer.0.6.1.zip…

    Unpacking the package…

    Could not create directory.

    What is wrong ?

    What is wrong ?

    Your file / directory ownership and / or permissions need adjustment, change the permissions in your wp-content/plugins directory to 777 so that that the web server can create your new directory.

    If this doesn’t work, then enable debugging by finding the WP_DEBUG line in your wp-config.php, comment it out and add:

    error_reporting(E_ALL); ini_set('display_errors', 1);
        define( 'WP_DEBUG', true);

    Then see what the extra errors are either onscreen or in your errors log file.

    Thread Starter ajeya

    (@ajeya)

    Did
    chmod -r 777 ./wp-content

    Checked the importer again.
    It works!

    That made life easy. Many thanks to RossMitchell

    If it is appropriate, could you mark this thread as resolved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error 21. Trying to import wordpress blog to localhost with LAMP server.’ is closed to new replies.