ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

New Installation and DB Restoration

April 22, 2008 2:11am

Subscribe [3]
  • #1 / Apr 22, 2008 2:11am

    rtkenmore

    7 posts

    I’ve got an old site that was actually deleted from my web server.  My DB for EE however was left in tact and still functional.

    What is the best way to recreate the site without issues?  I’m not sure what the last install of EE was on the site but I know it was prior to 1.6.  It could quite possibly be a version prior to 1.5 even.

    The DB does have the templates saved in it so all the templates are in place in the DB but I’m concerned about installing a fresh copy of EE and then importing or restoring the existing DB and something breaking in the mean time.

    Thanks for the help/suggestions.

    Robert

  • #2 / Apr 22, 2008 2:54am

    George Ornbo

    272 posts

    First I would back up your database. Take a copy and save it somewhere safe.

    You will need a copy of the config file from the old site. If you don’t have it I hope the support crew can make some suggestions!

    Download the latest build. Copy your config.php file over. and Enter your database connection details into config.php. Make sure file permissions are set as per the upgrade instructions

    Then run /system/update.php.

    This will look at the version number in config.php and run updates on your database and files if necessary. Once upgraded you should be good to go, although you won’t have any CSS or images.

  • #3 / Apr 22, 2008 3:13am

    Ingmar

    29245 posts

    rtkenmore, as George said, you will have to manually recreate both path.php (in your root directory) as well as config.php (in your system directory), then upload a copy of EE and run update.php.

    In the wiki you can find sample versions of both files. Does that help?

  • #4 / Apr 22, 2008 9:39am

    rtkenmore

    7 posts

    Ok, thatall seems to make sense but the only problem is that there are no files left on the server from the old site.  I don’t have a config.php file to copy everything from as George suggest and therefore I don’t know what version number the site was running.

    If I install a fresh copy of EE…  Can I then alter the config.php file that is created with the information for the existing copy of the database?  Or will that break stuff?

  • #5 / Apr 22, 2008 10:01am

    Robin Sowell

    13255 posts

    Hm- no files at all?  Well- could step through the updates and compare the db changes made to what’s in your current db.  1.5.0 added exp_member_search - so if that table exists, we know you’re 1.5.0+.  Does it?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases