• 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

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    Thread Starter ModelPlane1

    (@modelplane1)

    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.

    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.

    Thread Starter ModelPlane1

    (@modelplane1)

    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

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Test site on pc running windows 7’ is closed to new replies.