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) »
  • drupal 7/ civicrm 4.0.5 in a sites directory
Pages: [1]

Author Topic: drupal 7/ civicrm 4.0.5 in a sites directory  (Read 1039 times)

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
drupal 7/ civicrm 4.0.5 in a sites directory
August 22, 2011, 11:09:28 am
doesn't work very easily ...

1. The initial requirements was insisting on sites/default, so I allowed it to install it there, even though I wanted it in sites/<mydomain> and that's where drupal was installed.
2. After the initial success, there were some errors (probably not interesting, related to the fact that Drupal thought it was installed in sites/<mydomain>)
3. I moved the civicrm settings file that it had generated and the various dirs in files/civicrm over to my sites/<mydomain> directory.
4. I had to do a full drupal cache clear before civicrm showed up in the menu system.
5. I had to adjust the various path/url settings it had generated for me.

I assume that not so many people do sites installs? Are you no longer supporting this?

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
Re: drupal 7/ civicrm 4.0.5 in a sites directory
August 24, 2011, 05:20:22 am
I just had occasion to do this again with the same problem so I've done some more investigation.

1. It's the same server/setup that has been happily installing civicrm in sites/<domain> directories for some time now, so I'm pretty sure it's not a user error ...

2. actually, it's now happenned on two separate servers (of different distros), both of which had been happily doing so, so I'm also pretty sure it's not server-specific.

3. I looked at the install/index.php code and it doesn't look like anything has changed there, where it claims:

Code: [Select]
//CRM-6840 -don't force to install in sites/all/modules/

4. I assume the error is somewhere in the getSiteDir function/behaviour, I'll keep poking. I do notice that that function requires a second argument "str" that is never used, which is a little flag but probably irrelevant.

Clues welcomed ...

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
Re: drupal 7/ civicrm 4.0.5 in a sites directory
August 24, 2011, 05:33:13 am
Okay, figured it out ...

My site domain that I was installing to had a '-' in it.

Line 906 of install/index.php is

Code: [Select]
"([a-zA-Z0-9_.]+)" .

and should be

Code: [Select]
"([\-a-zA-Z0-9_.]+)" .
I guess there aren't many domains with a dash in them out there for this to have taken so long to be noticed!

The crazy thing here for me was that my first two 4.0 installs were both to domains that had a dash in them....
« Last Edit: August 24, 2011, 05:35:11 am by adixon »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: drupal 7/ civicrm 4.0.5 in a sites directory
August 24, 2011, 06:59:11 am

hey alan:

can u please file an issue and attach your patch.

Thanx for doing the work and figuring out the issue

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
Re: drupal 7/ civicrm 4.0.5 in a sites directory
September 06, 2011, 09:51:01 am
done here:

http://issues.civicrm.org/jira/browse/CRM-8815

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • drupal 7/ civicrm 4.0.5 in a sites directory

This forum was archived on 2017-11-26.