• Hello,

    I am trying to locally host a pre existing wordpress site so I can edit it offline through dreamweaver.

    I have downloaded and installed Xampp and am able to run apache and mysql without issues. I have gone into phpmyadmin and created a database where I imported the website files after FTPing them from the online host.

    When I go into locahost:1234/wbt (wbt is the name of the file, I made the port 1234) I get the website files; error_docs/, httpdocs, httpdocs_live/, and logs/ however when I click on httpdocs the server fails.
    The error message is:

    “This site can’t be reached
    localhost refused to connect.”

    Alternatively, I can go into localhost:1234/wordpress however this directs me to a blank wordpress site that I was forced to make when I downloaded the wordpress program.

    My question is: how can I access the httpdocs file from localhost, do I need to set up Xampp multiple sites? I dont have any desire to run multiple sites but perhaps this blank wordpress site is blocking it? If this is the case, is there any way that I can delete it and sign straight into the pre-existing website and edit it from there.

    Any comments would be appreciated, cheers.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello bertieee,

    Have you change the database and user details in wp-config.php with you local database name and user login details ? If not please update the wp-config.php file and then try.

    Thanks

    Thread Starter bertieee

    (@bertieee)

    Hi Clarion Technologies,

    I have completely restarted everything however I am now encountering a different issue.

    The steps I have taken are:
    I exported the database files from the hosting site and have imported them into phpmyadmin at localhost. I FTP’d the website files and have placed them in the htdocs folder in Xampp. I can turn on Apache and MySQL.
    My wp-config.php database, user and password all match the details in the database. I adjusted the URL of the website in wp-options in the database to the directory in my computer.

    The issue now is that when I go to localhost/mywebsite is that it comes up with all the files of mywebsite (doesn’t put them together to make the website) and underneath is wordpress’s “first things first”…”famous 5minute install”…”updating using the automatic updater”.. etc etc..

    Please help, this is driving me nuts!

    Hi bertieee,

    Try using the default XAMPP database user credentials in your wp-config file. It should then look like this:

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

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

    /** MySQL database password */
    define(‘DB_PASSWORD’, ”);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    Note that the password is empty, just the two single quotes. Give that a go ??

    Cheers!
    Lyle

    Thread Starter bertieee

    (@bertieee)

    Hi Lyle,

    Even with ‘root’ as my DB_USER and no password I am unable to view the website on localhost, only the files inside the directory: C:\xampp\htdocs\wbt when I go to localhost/wbt.

    Thanks for trying but it seems to be a lost cause.

    Regards,
    Bertie.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pre-existing wordpress website local host’ is closed to new replies.