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) »
  • how to find the database for civicrm
Pages: [1] 2

Author Topic: how to find the database for civicrm  (Read 5271 times)

roaming

  • Guest
how to find the database for civicrm
September 06, 2007, 06:20:15 pm
I uploaded civicrm (untarred) on Godaddy, my host site.  I created a database on Godaddy for civicrm.
When I follow the instructions for install (on the civicrm wiki), it leads me to a "page not found" on my site.
Civicrm is showing up on my site, still disabled (does that mean it's already installed?).  According to the wiki, I should do the install before enabling the module, but I can't find the path for the install as explained.  If I enable civicrm on my site, is there a setting to direct it to the database I created for it on my hosting provider?   

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: how to find the database for civicrm
September 06, 2007, 08:07:20 pm

Can you be a bit more specific. This will give us more information to help you out with

1. What instructions did u follow (the url please)

2. Any specific reason you did not use the installer?

3. Where did u untar the module? directory location

Yes, you can manually edit the settings file but you first need to create it

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

roaming

  • Guest
Re: how to find the database for civicrm
September 07, 2007, 12:07:09 am
I looked at the instructions at:
http://wiki.civicrm.org/confluence/display/CRMDOC/Automated+Installer+for+Drupal
but had to modify because some of the instructions  didn't seem to apply to the way Drupal is set-up for me.
I have the Drupal 5.2 original files on my computer (Mac) in the applications folder, and have uploaded them all (by FTP) into a Godaddy folder.  I'm also using a database for Drupal created on the Godaddy site that uses a different hostname than "localhost".  Godaddy has its own hostnames for its databases.
I first created an additional database on Godaddy, to be used only for civicrm (also with the Godaddy host name instead of "localhost").
Then I downloaded civicrm from the civicrm wiki URL to my computer, into "applications/drupal/drupal-5.2/modules" folder.  I untarred it there.  This is where I didn't know what to do next because my Drupal files are in a totally different location than indicated in the instructions.  When I installed Drupal, I only FTPed everything to Godaddy and the install was automated.  All I had to do is direct Drupal to its database.  So I assumed that the process might be identical with civicrm.
 So I uploaded the untarred civicrm to the "drupal/modules" folder where all my other modules are stored at Godaddy.  The civicrm module is showing up in my site, but I can't figure out if it went through the install process using the Drupal database (in which case I would like to switch it to its own database), or if the whole process was flawed.

roaming

  • Guest
Re: how to find the database for civicrm
September 08, 2007, 09:38:04 am
I looked over all the forums I know of, and can't find an answer.
I tried to enable it to see what happens, and am getting the following message:
Parse error: parse error, unexpected ',', expecting '(' in /home/content/r/o/a/roaming/html/modules/civicrm/drupal/civicrm.module on line 477
Next, I tried to disable it and the disable won't work.  No matter what I do I get the above message and it goes back to enabled.
I'm going to have to delete the module from my host provider's site.
Too bad; it seemed like a great module that would do a lot of things I need.

roaming

  • Guest
Re: how to find the database for civicrm
September 08, 2007, 10:46:10 am
FYI, deleting civicrm from my hosting provider's files solved the problem and my site is back functioning.
If anyone knows how to load civicrm to a standard hosting provider, please let me know.
Keep in mind that I'm not a coder, but I took cut-and-paste 101 in college, so this I can do.
Or changing text in a line is also feasible.  I need to learn php!
Thanks!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: how to find the database for civicrm
September 10, 2007, 10:10:01 am
The DB name 'localhost' in the Automated Installation instructions is used as an example. The installer will allow you to enter the actual DB names assigned to your Drupal and CiviCRM DB's.

If your GoDaddy site is running on php5 - you should be able to use the automated installer as documented. If you're not sure what php version you have - search on this forum for some related discussions. Hope that helps.
Protect your investment in CiviCRM by  becoming a Member!

roaming

  • Guest
Re: how to find the database for civicrm
September 11, 2007, 03:39:43 pm
Dave, thanks for your reply.
The php version is 5.

I've been going through the wiki for install and the civicrm files (plus browsing through a php book to get some terminology), and some things are starting to make sense, but there are a few basics that I still can't figure out.

1 - Is the "civicrm.setting.php.sample" the right file where changes have to be made, and is it the only file?

2 - It seems like all changes that have to be made occur in the "define" lines.
(Yes, that's the extent of my basics...).  Is that correct?

3 - In the Settings file, in the File System Paths section:

 * IMPORTANT: The COMPILEDIR directory must exist,
 * and your web server must have read/write access to these directories.

Does that simply mean that the file must be FTPed as a read/write file?  If so, do I need to locate that file and change anything, or is read/write the default?

4 - In the last line of the "CiviCRM Database Settings" section:

define( 'CIVICRM_MYSQL_PATH', '/usr/bin/' );

I don't see what "/usr/bin/" refers to.

Thanks!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: how to find the database for civicrm
September 11, 2007, 04:34:44 pm
Since your host uses PHP5 - you should be able to use the Automated Installer which will create and put the correct settings in your civicrm.settings.php file etc.

Quote from: roaming on September 07, 2007, 12:07:09 am
So I uploaded the untarred civicrm to the "drupal/modules" folder where all my other modules are stored at Godaddy...

This should be fine. Now you just need to continue by "Running the Installer". Based on the above info, you would run it from your browser at:
http://<your_drupal_home>/modules/civicrm/drupal/install/index.php
Protect your investment in CiviCRM by  becoming a Member!

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: how to find the database for civicrm
September 11, 2007, 05:05:36 pm

a small correction to dave's reply

You need to move your civicrm location from drupal/modules to drupal/sites/all/modules/ and then run:

http://<your_drupal_home>/sites/all/modules/civicrm/drupal/install/index.php

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

roaming

  • Guest
Re: how to find the database for civicrm
September 11, 2007, 07:27:34 pm
Lobo,

When I uploaded Drupal 5.2, all the files inside Drupal installed directly at the core.
There is no Drupal folder, and no "/sites/all/..." files.
The modules folder appears directly at the core of my server folder.

The way I've done it up to now with the other modules I installed, was to upload them directly to the modules folder and it worked fine.
Would that be a problem with civicrm? 

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: how to find the database for civicrm
September 11, 2007, 07:40:03 pm

check the sites/all/README.txt

Code: [Select]
// $Id: README.txt,v 1.3 2006/12/23 15:35:51 dries Exp $

This directory should be used to place downloaded and custom modules
and themes which are common to all sites. This will allow you to
more easily update Drupal core files. These modules and themes should
be placed in subdirectories called modules and themes as follows:

  sites/all/modules
  sites/all/themes

the installer checks that civicrm is in that directory before doing the install.

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

roaming

  • Guest
Re: how to find the database for civicrm
September 11, 2007, 08:10:04 pm
It seems like I have a problem...

I actually didn't decide to install the files the way they are installed.
What I uploaded was a "Drupal/Drupal-5.2" folder and it automatically installed this way.
As I have only one Drupal site, it wasn't a problem up to now.

Should I create "drupal", "sites" and "all" folders and reorganize my files in my server?
But then Drupal might not find its path anymore (and maybe all my modules, themes, etc...).

Or is there a way I could change some civicrm lines to load it directly to the modules folder.
The "drupal/sites/all" path seems to be pretty engrained in the files, though.

What would be the least painful? 

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: how to find the database for civicrm
September 11, 2007, 10:09:37 pm

The installer requires you to have civicrm under sites/all/modules. Its your call if you want to use the installer or not.

you might want to consider hiring someone from http://civicrm.org/professional/ to help you out

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

roaming

  • Guest
Re: how to find the database for civicrm
September 12, 2007, 05:46:50 am
Thanks!

Richard

roaming

  • Guest
Re: how to find the database for civicrm
September 14, 2007, 11:09:14 am
I have some answers which maybe can be helpful.
For this original post, the solution was actually simple.

I finally realized that, although all my modules are at the core of my host server (at the same level as "sites/all"), the civicrm module doesn't need to be with these modules.  So I created a civicrm folder in "sites/all" and uploaded civicrm in that folder.
In the install, everything checked out "ok" (database was found and everything else was alright), except for the php version.
The warning was that the version of php on the server was 4.3.11, so I wasn't able to install civicrm.

I called godaddy tech support, and they confirmed that their servers support php5.
However, because some applications cannot run on php5, it's set up so that files with a php extension run on php4 and files with a php5 extension use php5.

I do have their Hosting 2.0 package which enables me to use php5.  But she ran some tests and told me that because all my files have a php extension, they automatically run on php4.

So the only way to install right now seems to be a manual install with php4.
Being that 1.8 is the last version to support php4, I assume that the next version will have php5 extensions, and the installer should run smoothly.

Is that correct?

Richard

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • how to find the database for civicrm

This forum was archived on 2017-11-26.