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) »
  • Confused installation
Pages: [1]

Author Topic: Confused installation  (Read 2669 times)

pdbob

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
Confused installation
December 19, 2010, 08:21:07 pm
This issue is driving me nuts. I have been hacking away at it for hours. I'm trying to install civicrm on a subdomain of a shared server with a separate drupal install and DB.

The install script is looking at two different directories and I don't know where the source of the incorrect url is. You can see below what the issue is.

On the first two lines, it has the path correct, then the last two lines are missing the subdomain folder.

"File permissions

Does the webserver know where files are stored?   OK (/home2/primarydomain/public_html/subdomain/sites/all/modules/civicrm/install/)
does the CiviCRM path contain PATH_SEPARATOR?   OK (/home2/primarydomain/public_html/subdomain/sites/all/modules/civicrm/install/)
CRM folder exists   OK
packages folder exists   OK
templates folder exists   OK
js folder exists   OK
api folder exists   OK
i folder exists   OK
sql folder exists   OK
Is the sites/default/files folder writeable?   *Error The user account used by your web-server - primarydomain - needs to be granted write access to the following directory in order to configure the CiviCRM settings file:
/home2/primarydomain/public_html/sites/default/files
Is the sites/default folder writeable?   *Error The user account used by your web-server - primarydomain - needs to be granted write access to the following directory in order to configure the CiviCRM settings file:
/home2/primarydomain/public_html/sites/default"

Does anyone have any suggestions? I have searched all over for an answer but I'm coming up with nothing.

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: Confused installation
December 20, 2010, 06:47:24 am

check:

install/index.php, line 324

most likely the cmsPath variable has the wrong value

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

lameei

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
Re: Confused installation
March 08, 2011, 04:01:18 am
This is what exactly I'm facing with. is there any solution? should i hack the index.php? I think there should be a better work around for this case?

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: Confused installation
March 08, 2011, 06:27:52 am

this is a bug in the current installer

if you can investigate and file an issue along with a patch that would be great

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

lameei

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
Re: Confused installation
March 09, 2011, 12:05:59 am
Due to lack of knowledge  :-\  I'm not capable of patching the codes.

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: Confused installation
March 09, 2011, 06:48:49 am
Quote from: pdbob on December 19, 2010, 08:21:07 pm
Is the sites/default/files folder writeable?   *Error The user account used by your web-server - primarydomain - needs to be granted write access to the following directory in order to configure the CiviCRM settings file:
/home2/primarydomain/public_html/sites/default/files
Is the sites/default folder writeable?   *Error The user account used by your web-server - primarydomain - needs to be granted write access to the following directory in order to configure the CiviCRM settings file:
/home2/primarydomain/public_html/sites/default"

So, couple of questions based on this error message:

1) Do you know what ID your web server is running with? Try:
Code: [Select]
ps auxand see if you can identify your web server tasks (apache perhaps) and then see what ID is owning the processes

2) At this path: /home2/primarydomain/public_html/sites/default  Issue a:
Code: [Select]
ls -aland paste in the entire line for the "files" directory
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

russneversleeps

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.15
  • MySQL version: 5.5.25
  • PHP version: 5.3.13
Re: Confused installation
March 14, 2011, 01:17:17 pm
There seem to be a few similar errors related to installing CiviCRM in a subdirectory; in particular, when a separate CiviCRM installation also exists in the root directory. I suspect that all of these problems are due to the cmsPath variable getting the wrong value (as lobo suggests above).

In my situation, I am installing Drupal/CiviCRM 3.3.5 into a subdirectory (home/aenweb/www/test/) with an existing Drupal/CiviCRM 3.1.3 installation in the root directory (home/aenweb/www/). The install throws the "Oops! CiviCRM is already installed" error. Looking at the code (line 121 civicrm/install/index.php), this error is triggered when the script detects an existing file at $cmsPath/sites/$siteDir/civicrm.settings.php. So, it appears that the value of cmsPath is not what I expected (/home/aenweb/www/test/).

The $cmsPath variable is set by the cmsRootPath function (line 350 civicrm/CRM/utils/System/Drupal.php). This function searches for the Drupal includes/bootstrap.inc file. In the case where both home/aenweb/www/includes/bootstrap.inc and home/aenweb/www/test/includes/bootstrap.inc exist, the function stops when it detects the former and returns the root directory (home/aenweb/www/) rather than the subdirectory (home/aenweb/www/test/).

I'm not really a programmer, so I'm not sure how to fix this (or if there are potential unintended consequences of changing the function) beyond hard-coding the correct path or bypassing the already installed check in the script.

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: Confused installation
March 14, 2011, 02:17:12 pm

this has been fixed for the 3.4 / 4.0 series. Would be great if you can download the alpha and test it out

thanx

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

russneversleeps

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.15
  • MySQL version: 5.5.25
  • PHP version: 5.3.13
Re: Confused installation
March 14, 2011, 04:16:03 pm
Quote from: Donald Lobo on March 14, 2011, 02:17:12 pm

this has been fixed for the 3.4 / 4.0 series. Would be great if you can download the alpha and test it out

thanx

lobo
Tried out the 3.4alpha -- installed with no problems, and the Resource URLs seem to be getting set properly. :)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Confused installation

This forum was archived on 2017-11-26.