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 »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • DB.php, problem during installation
Pages: [1]

Author Topic: DB.php, problem during installation  (Read 3943 times)

Jurtan

  • Guest
DB.php, problem during installation
September 17, 2009, 11:05:15 am
Hello everybody !

well, here`s my Story until now:
i tried to install civicrm on my hosts space, a internal server error (Error 500) encounters. I can`t watch any server logs or increase the execution time because of my hosts configuration.

So i decidet to set up a System, similar to my hosts, install it there and copy the files and dump & copy the db.

The bad thing is, Civicrm Encounters an Error during the installtion on my new System (almost blank Joomla installation), which makes my plan impossible.
The Error says:

Code: [Select]
Warning: require_once(DB.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/web0/html/fs08/administrator/components/com_civicrm/configure.php on line 118

Fatal error: require_once() [function.require]: Failed opening required 'DB.php' (include_path='.') in /var/www/web0/html/fs08/administrator/components/com_civicrm/configure.php on line 118

for your information, configure.php says:
Code: [Select]
114:function civicrm_source( $fileName, $lineMode = false ) {
115:
116:    $dsn = CIVICRM_DSN;
117:
118:    require_once 'DB.php';
119:
120:    $db  =& DB::connect( $dsn );



strange thing is, i didn`t find a DB.php file...
The installtion creates the (as i think) necessary folders and files for civicrm, but no database Tables.

Has anyone an idea what this could be ?

Greetings to all civicrm`ers !


Jurtan

  • Guest
Re: DB.php, problem during installation
September 18, 2009, 02:58:02 am
can anyone tell me where the db.php file should be located ?

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: DB.php, problem during installation
September 18, 2009, 03:48:35 am
db.php can't be located because include path is not set (from the error you pasted).

One reason for include path not being set could be that civicrm settings file be missing (due to not enough permissions).
On "Help >> System info >>  Directory Permissions" screen, make sure the directories listed are writable. And then try re-installing and check.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Jurtan

  • Guest
Re: DB.php, problem during installation
September 21, 2009, 06:48:44 am
i set all directories 777, the error didn`t change. :(
is it possible to set the include path manually ? where should DB.php be ?
Thanks for your help !

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: DB.php, problem during installation
September 21, 2009, 11:19:25 am
Could you verify if civicrm settings file is being created. If not you might want to investigate there.

How did you do the re-install ?

FYI, the DB.php file can be located as "civicrm/packages/DB.php".
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Jurtan

  • Guest
Re: DB.php, problem during installation
September 22, 2009, 03:57:51 am
i just set up a complete clean new Joomla setup on my server, did a new install, the Problem is the same.
the config File was created, here is line 147 to 157.
Code: [Select]
$include_path = '.'        . PATH_SEPARATOR .
                $civicrm_root . PATH_SEPARATOR .
                $civicrm_root . DIRECTORY_SEPARATOR . 'packages' . PATH_SEPARATOR .
                get_include_path( );
set_include_path( $include_path );

if ( function_exists( 'variable_get' ) && variable_get('clean_url', '0') != '0' ) {
    define( 'CIVICRM_CLEANURL', 1 );
} else {
    define( 'CIVICRM_CLEANURL', 0 );
}

Thank you very much for your answers !
with best regards,
Jurtan

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: DB.php, problem during installation
September 23, 2009, 07:37:18 am
Whats the value of $civicrm_root ? Not sure why would it be wrong (or not present). Can you check your apache/php logs and see if there is any clue.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

ibrent

  • Guest
Re: DB.php, problem during installation
September 23, 2009, 02:05:40 pm
I found similar problem. On a fresh Joomla 1.5.14 install, I get the following errors:

Warning: fopen(/var/www/vhosts/3by400.com/subdomains/civicrm/httpdocs/administrator/components/com_civicrm/civicrm/templates/CRM/common/civicrm.settings.php.tpl) [function.fopen]: failed to open stream: No such file or directory in /var/www/vhosts/3by400.com/subdomains/civicrm/httpdocs/libraries/joomla/filesystem/file.php on line 240

Warning: fopen(/var/www/vhosts/3by400.com/subdomains/civicrm/httpdocs/administrator/components/com_civicrm/civicrm/templates/CRM/common/civicrm.settings.php.tpl) [function.fopen]: failed to open stream: No such file or directory in /var/www/vhosts/3by400.com/subdomains/civicrm/httpdocs/libraries/joomla/filesystem/file.php on line 240

Warning: require_once(DB.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/vhosts/3by400.com/subdomains/civicrm/httpdocs/administrator/components/com_civicrm/configure.php on line 118

Fatal error: require_once() [function.require]: Failed opening required 'DB.php' (include_path='.:/usr/share/pear') in /var/www/vhosts/3by400.com/subdomains/civicrm/httpdocs/administrator/components/com_civicrm/configure.php on line 118

after the partially failed install, going to the component yields:
Warning: require_once(PEAR.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/vhosts/3by400.com/subdomains/civicrm/httpdocs/administrator/components/com_civicrm/admin.civicrm.php on line 15

Fatal error: require_once() [function.require]: Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear') in /var/www/vhosts/3by400.com/subdomains/civicrm/httpdocs/administrator/components/com_civicrm/admin.civicrm.php on line 15

trying to find DB.php from the document root:
# find . -name DB.php
./libraries/pattemplate/patTemplate/Reader/DB.php

similarly for PEAR:
# find . -name PEAR.php
./includes/PEAR/PEAR.php
./libraries/pear/PEAR.php

no noticeable messages in the error log.

I have 4+ year experience with Joomla, 20+years as Unix sysadmin, so I'll help whereever I can.

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: DB.php, problem during installation
September 23, 2009, 02:46:34 pm

how did u xfer the files to the server? Also are u using the regular install or the alt package?

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

ibrent

  • Guest
Re: DB.php, problem during installation
September 27, 2009, 05:18:10 am
I was using the regular package, (9920909 2009-09-23 14:47 civicrm-3.0.beta4-joomla.zip)
unzipped into the joomla tmp directory, installed from there via the normal joomla installer.

brent

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: DB.php, problem during installation
September 27, 2009, 07:38:59 am

1. seems like the unzip is failing silently or not throwing a fatal error

2. can you try using the alt package

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • DB.php, problem during installation

This forum was archived on 2017-11-26.