Hi all.

I have a live 5.18 site that I need to do some development work on (including implementing the latest security update). I had an old version of the site on my old pc but am now on a new machine so I want a new local version of the site that is live (the old one was out of date anyway).

What is the easiest way to accomplish this? I'm trying to avoid too much configuration. I've taken a look at Xampp, Uniform Server. Bitnami actually looks perfect and I've installed the WAMP stack but can't locate a drupal module or stack for 5.18/5.19. I've seen some issues here regarding installing on Vista for Wampserver.

I'm on Windows Vista, 64 bit. Site includes Civicrm on its own database, views, cck, custom theme etc.

Thanks,

Shrill

Comments

optalgin’s picture

I read the whole story and couldn't understand what exactly are you trying to do?
Can you simplify the question?

shrill’s picture

Sorry. Basically, I'm trying to do the opposite of what most people do.

I have a live (production) Drupal 5 site with Civicrm (so it uses a database for Drupal and one for Civicrm). I want to duplicate it on my local Vista 64 machine so that I can do some development.

Thanks,

Shrill

optalgin’s picture

Doing the opposite is the exact same as going from dev to live..
just without the risk :-)

There are 3 simple steps to have your duplicate (dev) site up and running on your PC

  • You need a web-server installed on your PC
    I can recommend XAMPP which is very simple to install
  • You need to copy drupal directory and all its files from your live site to your dev server htdocs directory
  • You need to duplicate the database:
    • export and import it using phpmyadmin (if installed on your live server)
    • Or use backup and migrate module for backup and restore

note: You will need to do some minor configuration tweaks at the end
like update the files and temp directories

Hope this helps

shrill’s picture

If I need to run the site as the root, do I just move it to the root xampp directory?

Thanks again!

Shrill

shrill’s picture

If I need to run the site as the root, do I just move it to the root xampp directory?

Thanks again!

Shrill

optalgin’s picture

Yes, you can..

All xampp files are located under htdocs/xampp
and the index.php under htdocs just redirect to /xampp

you can copy your drupal site under htdocs override the xampp index.php
and still access xampp pages (if you need them) by browsing to localhost/xampp

shrill’s picture

thanks so much!

Shrill

shrill’s picture

Drupal seems to be working okay but I am getting the following errors at http://localhost/users/admin


    * warning: include_once(CRM/Core/Config.php) [function.include-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\sites\all\modules\civicrm\drupal\civicrm.module on line 249.
    * warning: include_once() [function.include]: Failed opening 'CRM/Core/Config.php' for inclusion (include_path='.;/sites/all/modules/civicrm;/sites/all/modules/civicrm\packages;.;C:\xampp\php\pear\') in C:\xampp\htdocs\sites\all\modules\civicrm\drupal\civicrm.module on line 249.

Oops! - The path for including CiviCRM code files is not set properly. Most likely there is an error in the civicrm_root setting in your CiviCRM settings file (sites/default/civicrm.settings.php).

» civicrm_root is currently set to: /sites/all/modules/civicrm.

Please review the Installation Instructions, Installation FAQs, and Trouble-shooting documentation for assistance.

I've tried changing the civicrm_root to all sorts of things (including the setup above) but have had no success. Any direction you can give me (a non-programmer) would be very appreciated.

Thanks again,

Shrill

shrill’s picture

Basically, I'm trying to figure out the path in civicrm_root but I'm confused as to how that works in a local windows installation.

Thanks,

Shrill