WordPress.org

Ready to get started?Download WordPress

Forums

Oops! This link appears to be broken. (7 posts)

  1. eagerwatcher
    Member
    Posted 1 year ago #

    Any idea on why this isn't working.

    Thanks in advance,

    Jane

    localhost/misconce/wp-login.php = takes me to the login for my online site.

    http://localhost/misconce/ = Oops! This link appears to be broken.

    the wp-config.php is here:

    C:\xampp\htdocs\misconce

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'misconce');

    /** MySQL database username */
    define('DB_USER', 'root');

    /** MySQL database password */
    define('DB_PASSWORD', '');

    /** MySQL hostname */
    define('DB_HOST', 'localhost');

    -------

    http://localhost/xampp/ = opens xampp

    Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole by setting a password for user 'root'.

    -----

    http://localhost/phpmyadmin/index.php?db=misconce&token=f4a62de949fbf3b938e3cf6d093c8491

    site url = http://localhost/misconce

    home = http://localhost/misconce

  2. Abhishek Ghosh
    Member
    Posted 1 year ago #

    localhost/misconce/wp-login.php = takes me to the login for my online site.

    That is normal. Because in database the website's url is of live website. You have two issues. First is taking a pure mirror copy of live website to localhost :

    What you will do is :

    1. Install the same version WordPress of that live site on XAMPP. Its a fresh installation.
    2. Download wp-content and wp-uploads folder from live website. Delete the point (1)'s those two folders and replace them with your these downloaded folder.
    3. Login to your live website's PHPMyAdmin and take back of the needed database tables. Method is same as I described here before - http://wordpress.org/support/topic/migration-to-plesk-gone-wrong?replies=2#post-3506688
    4. So you are replacing your localhost's few tables with Live website's one.
    5. Login and set the permalink as you need. Permalink actually does not matter.

    Your second issue is with MySQL database username-password in XAMPP. Create a new database with unique username and password from XAMPP's PHPMyAdmin. There is no need to Edit the wp-config separately, simply put the uncompressed new WordPress in a new folder like :

    C:\xampp\htdocs\misconce1

    When you will point towards C:\xampp\htdocs\misconce in browser, automatically a wp-config file will be created.

  3. eagerwatcher
    Member
    Posted 1 year ago #

    Thank you very much!

    I will work through the above a little later on today.

    Jane

  4. eagerwatcher
    Member
    Posted 1 year ago #

    It's almost working!

    http://i47.tinypic.com/2mi1aq1.jpg

    I forgot to add a password when I created the new database misconce1; so how do I that?

    Seems like I need it for ...

    /** MySQL database username */
    define('DB_USER', 'root');

    /** MySQL database password */
    define('DB_PASSWORD', '');

    /** MySQL hostname */
    define('DB_HOST', 'localhost');

    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');

    Will I use the username 'root' to enter the WP site?

    BTW I did check on the Internet to see how to do this but only found how to do it for the whole mysql datatbase and not for separate databases. But maybe that's how it works?

    Thanks,

    Jane

  5. eagerwatcher
    Member
    Posted 1 year ago #

    In case the above is not clear enough ..

    I can get to the WP login page without any problems and I can get to the database, no problem.

    But if I try using

    /** MySQL database username */
    define('DB_USER', 'magic');

    /** MySQL database password */
    define('DB_PASSWORD', 'xxx');

    and then enter http://localhost/misconce1/wp-login.php

    then I get: Error establishing a database connection

    ​but if I use root and no password then I get taken to the WP login page but I don't know what to enter there.

    thanks,

  6. eagerwatcher
    Member
    Posted 1 year ago #

    As there are no replies here and I progressed with this, but now have a very specific problem I will start a new post.

    http://wordpress.org/support/topic/plugin-preventing-local-install?replies=1#post-4108522

    Jane

  7. Abhishek Ghosh
    Member
    Posted 1 year ago #

    As there are no replies here and I progressed with this, but now have a very specific problem I will start a new post.

    No problem.

Topic Closed

This topic has been closed to new replies.

About this Topic