CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Windows and IIS installations »
  • CiviCRM root not found after migration to WAMP server
Pages: [1]

Author Topic: CiviCRM root not found after migration to WAMP server  (Read 8637 times)

seaweasel

  • Guest
CiviCRM root not found after migration to WAMP server
January 09, 2008, 06:12:35 am
I've just migrated Drupal and CiviCRM from my development server (MacOSX 10.5) to a Windows 2003 Server running Apache/MySQL/PHP and I'm having some trouble getting it up and running. Drupal seems to be fine, however I'm getting this error up on the home page:

Code: [Select]
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: C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sites\default\sites\all\modules\civicrm\.

The site can be accessed at http://194.83.69.200

I've changed the file paths to use backslashes as recommended by another forum post (including two trailing) but it still doesn't seem to work. Could the spaces be the problem?

I also noticed on this post that there were a couple of patches for 1.8 regarding windows, but I wasn't sure if they still applied to 1.9 (which is what I'm using). The patches in question are http://issues.civicrm.org/jira/browse/CRM-2247 and http://issues.civicrm.org/jira/browse/CRM-2248.

I'd like to get this problem fixed ASAP so any suggestions would be greatly appreciated.
« Last Edit: January 09, 2008, 06:28:20 am by seaweasel »

JoopSJ

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 2
Re: CiviCRM root not found after migration to WAMP server
January 09, 2008, 11:55:27 am
I 'm not new to Drupal but new CIVICRM,
so my reply is only worthed 2 cents:

I think:
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sites\default\sites\all\modules\civicrm\

Should be:
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sites\all\modules\civicrm\

Because sites\all\modules is the dir where all the contributed modules are stored.

The settings file for civicrm  civicrm.settings.php should be in
sites\default
(Drupal settings.php file is there too)

Good luck
Clivesj
(Another guy at the verge of a nervous breakdown because not being able to get CIVICRM to like Windows)

JoopSJ

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 2
Re: CiviCRM root not found after migration to WAMP server
January 09, 2008, 12:31:04 pm
Hello seaweasel,
I like to point to the second error:
warning: include_once() [function.include]: Failed opening 'CRM/Core/Config.php' for inclusion (include_path='.;C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sites\default\sites\all\modules\civicrm\;C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sites\default\sites\all\modules\civicrm\\packages;.;C:\php5\pear') in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sites\all\modules\civicrm\drupal\civicrm.module on line 242.

There is a double slash in your path, which I think shouldn't be there.
It seems you are dealing with the same issues i am:

http://forum.civicrm.org/index.php/topic,1955.msg8468.html#msg8468

goodluck

seaweasel

  • Guest
Re: CiviCRM root not found after migration to WAMP server
January 11, 2008, 05:25:19 am
Thanks clive, the problem is now fixed, I think it was just down to that error in the path you picked up on. However I did leaver the double backslashes in, this was recommended by the user I mentioned in my initial post. If you're still having problems and only have a single trailing backslash for the filepaths, it's something you might want to try.

flyfox2100

  • Guest
Re: CiviCRM root not found after migration to WAMP server
March 24, 2010, 06:50:35 am
 :) the web server path is a big problem for php

joshalot

  • Guest
Re: CiviCRM root not found after migration to WAMP server
April 29, 2010, 03:17:51 pm
Yes, on windows you should use double slashes.  c:\\program files\\blah\\blah
a single \ is an escape character which turns the next chars into a special character.
\\ overrides that.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Windows and IIS installations »
  • CiviCRM root not found after migration to WAMP server

This forum was archived on 2017-11-26.