WordPress.org

Ready to get started?Download WordPress

Forums

Test site on pc running windows 7 (6 posts)

  1. ModelPlane1
    Member
    Posted 6 months ago #

    I am trying to set up a copy of a small live site on my pc to use as a test site. I have installed Wamp. I am trying to install the same version of WordPress that is running on the live site which is 3.1.2. However when I run WordPress/wp-admin/install, I get "Error - PHP is not running". How do I check PHP is running or is there something else I haven't done? Thank you

  2. 2ninerniner2
    Member
    Posted 6 months ago #

    Did you start Apache and MySQL from the WAMP control panel? They have to be running.

    Also, you do not want to install WP in WAMP if you are copying a live site to it. You export the live db and import it into a new, empty db that you create in WAMP. Then unzip the WP package in the desired location in the WAMP root (www) and replace the entire wp-contents folder with the same from the live site.

    You will have to edit the wp-options table siteurl and home fields with the local path and then run this script to update any other links:

    http://interconnectit.com/products/search-and-replace-for-wordpress-databases/

    Once that is done, log in and then re-save your permalinks.

  3. ModelPlane1
    Member
    Posted 6 months ago #

    Thanks for that info. I have managed to get as far as unzipping the WP package into the WAMP root successfully.

    Could you please tell me how to take a copy of the wp-contents from the live site. I have looked at CPanel and found wp-contents but cannot make a copy of it.

    Thank you for your help.

  4. 2ninerniner2
    Member
    Posted 6 months ago #

    The way I do it is select the wp-content folder and then choose Compress from the tool bar. Choose ZIP as the compression type, accept the default location and click Compress File(s). Once that is done, select the ZIP file and download. UnZIP in the WAMP web root where the other files and folder are.

    And don't forget to export the database while you are in cPanel. Use phpMyAdmin for that. This is the core of your site; where all the posts, pages, settings are stored. This is why, when copying or moving a site, you do NOT do an install! When you do an install, the installer needs an empty database. Installs are for "fresh" sites only.

  5. ModelPlane1
    Member
    Posted 6 months ago #

    I have managed to create the site and login but my dashboard gives me the error message "
    Warning: Creating default object from empty value in C:\wamp\www\wordpress\wp-admin\includes\theme.php on line 23

    Call Stack

    #

    Time

    Memory

    Function

    Location

    1 0.0007 274328 {main}( ) ..\index.php:0
    2 0.2584 18241728 wp_dashboard( ) ..\index.php:63
    3 0.2584 18242312 do_meta_boxes( ) ..\dashboard.php:206
    4 0.2586 18244816 call_user_func ( ) ..\template.php:963
    5 0.2586 18244848 wp_dashboard_right_now( ) ..\template.php:963
    6 0.2629 18255608 current_theme_info( ) ..\dashboard.php:372".

    I have the theme (Twenty Ten with 3 widgets) in my wordpress folder. Have I got a problem with my theme? Or what else might it be?

    Thank you

  6. 2ninerniner2
    Member
    Posted 6 months ago #

    the live site which is 3.1.2.

    I missed this part.

    My suggestion then would be to just start again (now that you have the db export) but copy the entire site to the WAMP location. Sounds as though you have a 3.8.1 install on WAMP but a 3.1.2 db and wp-contents.

    Same method, just Compress the entire site this time; everything else the same.

Reply

You must log in to post.

About this Topic