• Hi everyone,

    I copied a live blog to my laptop’s apache server using the following method:

    1) Downloaded the complete blog folder from the live server

    2) copied the database from the server

    3) Used sed to replace {www.liveblogname.com} with {localhost} in the resulting .sql dump

    4) Imported the database into my local mysql server

    5) Extracted all blog files into the web root directory

    6) Used the sql settings (database name, user, password) in wp-config to create a new user in phpmyadin and granted ALL privileges to that user on the specified database

    7) Double checked that the folder the blog is now installed in is actually working as the localhost website by placing an index.html page in the blog root directory, which loaded fine.

    8) Double checked the homeurl and siteurl are https://localhost

    I can’t think of anything else to do!! All I get is a blank page when I attempt to visit localhost. It should be loading the blog. Is there something that I could be missing?

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator t-p

    (@t-p)

    8) Double checked the homeurl and siteurl are https://localhost

    Access your WordPress database via phpMyAdmin and also double check the siteurland home values there as well.

    ALWAYS BACKUP FIRST.

    Thread Starter jimmy-the-saint

    (@jimmy-the-saint)

    I should have been more clear. I checked that the siteurl and homeurl values were https://localhost in the database.

    Have you got wordpress in folder of root if so then you should have https://localhost/foldername

    Thread Starter jimmy-the-saint

    (@jimmy-the-saint)

    The site file in sites-enabled is listed as /home/me/sites/sandbox and the files are all in that folder. When I put an index.html file in that folder, and type “localhost” in the url bar, the contents of that file display. Would I still need to change that?

    When I put an index.html file in that folder, and type “localhost” in the url bar, the contents of that file display.

    what folder you adding index.html and what folder has your wordpress folders and files.

    Thread Starter jimmy-the-saint

    (@jimmy-the-saint)

    Both are /home/me/sites/sandbox

    When I remove the index.html file, leaving only the wordpress files, I get a blank page.

    Recheck your database info in wp-config.php

    Thread Starter jimmy-the-saint

    (@jimmy-the-saint)

    They were copy pasted to ensure no mistakes. The database info is legit

    is there any way you can show us a root folder layout of your folders.

    Thread Starter jimmy-the-saint

    (@jimmy-the-saint)

    Since this is just a sanbox, i have it operating out of my home directory.

    It is laid out thusly:

    /home/me/sites/sandbox < Root folder of this site (the only site by the way)

    Its contents are :

    drwxr-xr-x 2 me me 4096 2011-03-31 13:57 audio
    -rw-r–r– 1 me me 5430 2009-10-29 15:21 favicon.ico
    -rw-r–r– 1 me me 397 2011-03-22 22:01 index.php
    -rw-r–r– 1 me me 15606 2011-03-22 22:01 license.txt
    -rw-r–r– 1 me me 0 2011-02-15 14:41 new file
    -rw-r–r– 1 me me 9200 2011-03-22 22:01 readme.html
    -rw-r–r– 1 me me 402 2010-07-13 22:07 search_test.php
    drwxr-xr-x 9 me me 4096 2011-03-31 13:57 sphider
    -rw-r–r– 1 me me 2398 2009-11-11 09:11 wejnswpwhitespacefix.php
    -rw-r–r– 1 me me 4337 2011-03-22 22:01 wp-activate.php
    drwxr-xr-x 10 me me 4096 2011-03-31 13:57 wp-admin
    -rw-r–r– 1 me me 40283 2011-03-22 22:01 wp-app.php
    -rw-r–r– 1 me me 226 2011-03-22 22:01 wp-atom.php
    -rw-r–r– 1 me me 274 2011-03-22 22:01 wp-blog-header.php
    -rw-r–r– 1 me me 3931 2011-03-22 22:01 wp-comments-post.php
    -rw-r–r– 1 me me 244 2011-03-22 22:01 wp-commentsrss2.php
    -rw-r—– 1 me me 2768 2011-04-03 13:47 wp-config.php
    -rw-r–r– 1 me me 3177 2011-03-22 22:01 wp-config-sample.php
    drwxr-xr-x 9 me me 4096 2011-03-31 13:57 wp-content
    -rw-r–r– 1 me me 1255 2011-03-22 22:01 wp-cron.php
    -rw-r–r– 1 me me 246 2011-03-22 22:01 wp-feed.php
    drwxr-xr-x 8 me me 4096 2011-03-31 13:57 wp-includes
    -rw-r–r– 1 me me 1997 2011-03-22 22:01 wp-links-opml.php
    -rw-r–r– 1 me me 2453 2011-03-22 22:01 wp-load.php
    -rw-r–r– 1 me me 27787 2011-03-22 22:01 wp-login.php
    -rw-r–r– 1 me me 7774 2011-03-22 22:01 wp-mail.php
    -rw-r–r– 1 me me 494 2011-03-22 22:01 wp-pass.php
    -rw-r–r– 1 me me 224 2011-03-22 22:01 wp-rdf.php
    -rw-r–r– 1 me me 334 2011-03-22 22:01 wp-register.php
    -rw-r–r– 1 me me 226 2011-03-22 22:01 wp-rss2.php
    -rw-r–r– 1 me me 224 2011-03-22 22:01 wp-rss.php
    -rw-r–r– 1 me me 9655 2011-03-22 22:01 wp-settings.php
    -rw-r–r– 1 me me 18644 2011-03-22 22:01 wp-signup.php
    -rw-r–r– 1 me me 3702 2011-03-22 22:01 wp-trackback.php
    -rw-r–r– 1 me me 3210 2011-03-22 22:01 xmlrpc.php

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Copied Blog to localhost – blank page – can't load anything’ is closed to new replies.