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 »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Oops! Please Correct Your Install Location
Pages: [1] 2

Author Topic: Oops! Please Correct Your Install Location  (Read 10938 times)

warrendistler

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
Oops! Please Correct Your Install Location
March 16, 2009, 06:36:36 am
I am trying to install CiviCRM into a localhost WAMP server on my laptop. I've installed Drupal 6 and have CiviCRM 2.2.1. I have drupal running in the root and not in a directory named Drupal. When I copied my CiviCRM files to the drupal/sites/all/ there wasn't a directory called Modules. I made that directory and placed my CiviCRM files into that directory. When I attempt to install I get the error:

Oops! Please Correct Your Install Location

I am just a beginner at this PHP stuff, so please help if you can.

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Oops! Please Correct Your Install Location
March 16, 2009, 07:42:52 am
Quote
Oops! Please Correct Your Install Location

What url you had tried to visit when you got this message ?

Expected format is - http://<your_drupal_home>/sites/all/modules/civicrm/install/index.php

( In case you don't know, install doc is here - http://wiki.civicrm.org/confluence/display/CRMDOC/Drupal+Installation+Guide )
« Last Edit: March 16, 2009, 09:21:19 am by Donald Lobo »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

warrendistler

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
Re: Oops! Please Correct Your Install Location
March 16, 2009, 08:50:21 am
I was going to

http://localhost/sites/all/modules/civicrm/install/

and get the following error

Oops! Please Correct Your Install Location
Please untar (uncompress) your downloaded copy of CiviCRM in the sites\all\modules directory below your Drupal root directory. Refer to the online http://wiki.civicrm.org/confluence/display/CRMDOC/Installation+and+Upgrades for more information.

If you want to setup / install a Standalone CiviCRM version (i.e. not a Drupal or Joomla module), click here.


Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Oops! Please Correct Your Install Location
March 17, 2009, 05:04:57 am
Quote
http://localhost/sites/all/modules/civicrm/install/

hmm, no idea why its not working in your case. Someone with installation experience on WAMP could help you out. OR you can debug installation script (civicrm/install/index.php) to figure out where/why its failing.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

warrendistler

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
Re: Oops! Please Correct Your Install Location
March 17, 2009, 12:03:16 pm
I fixed it. All I needed to do was to put my Drupal install inside a directory "drupal" that corrected all the paths and everything installed just fine.

rflemin

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 2
    • DCRCA (DC Recovery Community Alliance)
  • CiviCRM version: 3.3
  • CMS version: Drupal 6.26
  • MySQL version: 5.1.26
  • PHP version: 5.2.6
Re: Oops! Please Correct Your Install Location
March 25, 2009, 08:14:03 am
I'm having the same problem (and I'm losing enough hair on my own without tearing it out over this).
Please tell me what you mean by "I put my Drupal install inside a Drupal directory...". Do you mean you set up a Site named Drupal or a directory under htdocs? It would help if you could give the full path from the domain name (in my case, "localhost"). If this works, it will make my day. Right now, if I have a CiviCRM folder in either the Sites/All or Sites/Default directories I get the White Screen of Death if I even try to go to Administer/Modules/list. Thanks for lowering my blood pressure.

FemkeG

  • Guest
Re: Oops! Please Correct Your Install Location
April 01, 2009, 02:01:04 am
I'm having the same problem. I tried to install civicrm 2.2.1 local on a xampp 1.7.0 & drupal 6.10 install. But when I tried to open the install page it gave me an error.
Quote
Oops! Please Correct Your Install Location
Even when I put my drupal installation inside a directory named drupal, it didn't work.
Is there anyone who has a little more experience who can help us out?


[edit] Weird thing is that the 2.1.6 version works without a problem?
« Last Edit: April 01, 2009, 08:09:55 am by FemkeG »

burdesr

  • Guest
Re: Oops! Please Correct Your Install Location
April 05, 2009, 02:46:31 pm
I'm using xampp on win xp pro had the same problems of the error page showing even though the un-tarred files were in the correct location. To work around it I commented out the conditional check in the install/index.php to show the error page - I only have a single site installation so this worked fine and allowed me to proceed with the auto install.

Let me know if you need more details on which lines I' edited out.

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Oops! Please Correct Your Install Location
April 08, 2009, 12:37:30 pm
I have the same problem with Wampserver on Windows Vista. I have also commented out the check in the index.php file, must be something wrong with the preg???
My URL is localhost/drupaleh/sites/all/modules/civicrm/install/index.php....possibly a directory separator extra required?

Erik
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

burdesr

  • Guest
Re: Oops! Please Correct Your Install Location
April 08, 2009, 02:01:11 pm
Erik - your location looks fine to me. Try editing out these lines in your /sites/all/modules/civicrm/install/index.php

Edit out lines 54 to 63. As follows...

if ( $installType == 'drupal' ) {
    // do not check 'sites/all/modules' only since it could be a multi-site
    // install. Rather check for existance of sites & modules in the url
    //if ( ! preg_match( "/" . preg_quote('sites' . DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR) .
                  //     "([a-zA-Z0-9_.]+)" .
                  //     preg_quote(DIRECTORY_SEPARATOR . 'modules', DIRECTORY_SEPARATOR) . "/",
                  //     $_SERVER['SCRIPT_FILENAME'] ) ) {
       // $errorTitle = "Oops! Please Correct Your Install Location";
      //  $errorMsg = "Please untar (uncompress) your downloaded copy of CiviCRM in the <strong>" . implode(DIRECTORY_SEPARATOR, array('sites', 'all', 'modules')) . "</strong> directory below your Drupal root directory. Refer to the online " . $docLink . " for more information.<p>If you want to setup / install a <strong>Standalone CiviCRM</strong> version (i.e. not a Drupal or Joomla module), <a href=\"?mode=standalone\">click here</a>.</p>";
     //   errorDisplayPage( $errorTitle, $errorMsg );
   // }
}

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Oops! Please Correct Your Install Location
April 08, 2009, 06:11:10 pm
Could any of you report - how does $_SERVER['SCRIPT_FILENAME'] look like on your setup, so that we could fix it in civicrm code-base itself ?

All you need to do is - print_r($_SERVER); And report the output.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

burdesr

  • Guest
Re: Oops! Please Correct Your Install Location
April 08, 2009, 06:33:21 pm
Hi using SCRIPT_FILENAME i get C:/xampp/htdocs/powercookies.com/sites/all/modules/civicrm/install/rb1.php

With rb1.php being the file name I used to put the script call. The location of where the file is living in the server and the filename response are the same.

Hope this is what you are after..

Rich

Tekas

  • Guest
Re: Oops! Please Correct Your Install Location
May 07, 2009, 01:54:00 am
Hi
I just had the same problem on a WAMP installation, and instead of commenting the code in index.php between lines 54 to 63, I resolved it by changing the DIRECTORY_SEPARATOR by '/'.
In fact on Windows it is '\' so the condition (to be in a directory named "sites" or "modules") was not checked.
Maybe a correction to do in the file index.php for Windows?

alwin4711

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
Re: Oops! Please Correct Your Install Location
May 16, 2009, 11:54:16 am
Hi,


Quote from: Tekas on May 07, 2009, 01:54:00 am
Hi
I just had the same problem on a WAMP installation, and instead of commenting the code in index.php between lines 54 to 63, I resolved it by changing the DIRECTORY_SEPARATOR by '/'.
In fact on Windows it is '\' so the condition (to be in a directory named "sites" or "modules") was not checked.
Maybe a correction to do in the file index.php for Windows?


what is the right place to change the DIRECTORY_SEPARATOR ?


Tekas

  • Guest
Re: Oops! Please Correct Your Install Location
July 13, 2009, 02:55:02 am
You may change the DIRECTORY_SEPARATOR only for this case, so for example at the beginning of the ../civicrm/install/index.php file.

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Oops! Please Correct Your Install Location

This forum was archived on 2017-11-26.