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 6.4, CiviCRM 2.1b4 Drubuntu install location
Pages: [1]

Author Topic: Drupal 6.4, CiviCRM 2.1b4 Drubuntu install location  (Read 1970 times)

fen

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 13
    • CivicActions
  • CiviCRM version: 3.3-4.3
  • CMS version: Drupal 6/7
  • MySQL version: 5.1/5.5
  • PHP version: 5.3/5.4
Drupal 6.4, CiviCRM 2.1b4 Drubuntu install location
September 17, 2008, 01:34:10 pm
I just tried installing Drupal 6 and CiviCRM v2.1 on my home Ubuntu server so that I might be able to do some testing and answer http://forum.civicrm.org/index.php/topic,4822.0.html but I ran into trouble.

I use a slightly modified Drubuntu http://groups.drupal.org/node/6266 setup, the primary modification being that I have a separate sites directory that I link to

Basic directory structure:
Code: [Select]
/home/fen/workspace/drupal/6 -> 6.4             // the Apache docroot
/home/fen/workspace/drupal/6.4                  // the Drupal 6.4 install
/home/fen/workspace/drupal/6.4/sites -> home/fen/workspace/sites
/home/fen/workspace/sites/default -> drupal.6
/home/fen/workspace/sites/drupal.6              // the virtual host
/home/fen/workspace/sites/drupal.6/settings.php // the Drupal settings file
/home/fen/workspace/sites/drupal.6/modules/civicrm -> /home/fen/workspace/civicrm/v21
/home/fen/workspace/civicrm/v21 -> v2.1-beta4
/home/fen/workspace/civicrm/v2.1-beta4          // which is the CiviCRM v2.1 install

Code: [Select]
/etc/apache2/sites-enabled/drupal.6 contains:
Code: [Select]
<VirtualHost *>
        ServerName 6
        ServerAlias *.6
        DocumentRoot /home/fen/workspace/drupal/6
</VirtualHost>

/etc/apache2/sites-enabled/000-default contains:
Code: [Select]
NameVirtualHost *
ServerName localhost

<Directory /home/fen/workspace>
        AddHandler fcgid-script .php
        FCGIWrapper /usr/lib/cgi-bin/php5 .php
        Options ExecCGI FollowSymLinks MultiViews Indexes
        AllowOverride All
        Order allow,deny
        Allow from all
</Directory>

Finally, /etc/hosts contains the line:
Code: [Select]
127.0.0.1 localhost drupal.6
Drupal 6.4 installed correctly (and I have many Drupal 5 sites that use a similar structure).

With this setup, the 'install/index.php path would be a but different.  Going to:

  http://drupal.6/sites/drupal.6/modules/civicrm/install/index.php

yields:
Quote
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 Installation Guide for more information.

This is a pain as I like to keep all my CiviCRM releases under /home/fen/workspace/civicrm and link to the one I want to use from the sites/PROJECT/modules/ directory.  This allows multisites to each use different versions of CiviCRM. 

So I figured maybe "sites/all/" is hardwired somehow, so I put CiviCRM directly into "sites/all/modules/" to yield this directory structure (same as before except the last line replaces the previous last three lines):
Code: [Select]
/home/fen/workspace/drupal/6 -> 6.4             // the Apache docroot
/home/fen/workspace/drupal/6.4                  // the Drupal 6.4 install
/home/fen/workspace/drupal/6.4/sites -> home/fen/workspace/sites
/home/fen/workspace/sites/default -> drupal.6
/home/fen/workspace/sites/drupal.6              // the virtual host
/home/fen/workspace/sites/drupal.6/settings.php // the Drupal settings file
/home/fen/workspace/sites/all/modules/civicrm   // which is the CiviCRM v2.1 install

Now going to:

  http://drupal.6/sites/all/modules/civicrm/install/index.php

yields:
Quote
Oops! Incorrect Drupal Version
This version of CiviCRM can only be used with Drupal 6.x. Please ensure that '/home/fen/workspace/modules/system/system.module' exists if you are running Drupal 6.0 and over. Refer to the online Installation Guide for information about installing CiviCRM.

Note that this error is referring to /home/fen/workspace/modules/system/system.module when the file is actually found under the Apache docroot, e.g.,  /home/fen/workspace/drupal/6/modules/system/system.module

There's nothing in the error_log.  This is the only clue I have.  Any ideas?

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 6.4, CiviCRM 2.1b4 Drubuntu install location
September 17, 2008, 02:07:06 pm

1. I think we make a few assumptions on directory structure etc in the installer. We assume that drupal is located a few levels above civicrm, and try to get the version info from the system.module (which it cannot find). We've just added some multi-site support where civicrm can be located in sites/DOMAIN/modules/

2. I suspect your version is more the edge case, so you might be better off doing a manual install

alternatively you can submit a patch and generalize the install script

lobo

p.s> would be great if you could head over to the imap2soap forum and help a few users out
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Drupal 6.4, CiviCRM 2.1b4 Drubuntu install location

This forum was archived on 2017-11-26.