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) »
  • Difficulty installing CiviCRM 3.3.5 under Joomla 1.5
Pages: [1]

Author Topic: Difficulty installing CiviCRM 3.3.5 under Joomla 1.5  (Read 2488 times)

digitalzen

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 0
Difficulty installing CiviCRM 3.3.5 under Joomla 1.5
March 13, 2011, 10:52:29 pm
Hello,

I've been pounding my head all day against this install, and have finally thrown up my hands and decided to ask for help. When I attempt to install CiviCRM, I immediately get the following, on a blank page (not a standard Joomla error install page):

Warning: fopen(/home/(account)/public_html/administrator/components/com_civicrm/civicrm/templates/CRM/common/civicrm.settings.php.tpl) [function.fopen]: failed to open stream: No such file or directory in /home/(account)/public_html/libraries/joomla/filesystem/file.php  on line 246

Warning: fopen(/home/(account)/public_html/administrator/components/com_civicrm/civicrm/templates/CRM/common/civicrm.settings.php.tpl) [function.fopen]: failed to open stream: No such file or directory in /home/(account)/public_html/libraries/joomla/filesystem/file.php on line 246
Cannot open CIVICRM_DSN: DB Error: not found

I've roamed through the forums, trying every solution I could find, including uploading to /tmp and installing from there, and modifying civicrm.settings.php (which, by the way, is initially written as a 0kb empty file). I've also turned off php error reporting, just to see if I could force my way past it (desperation!)

I've also tried installing CiviCRM 4.0 alpha2 under Joomla 1.6, but get the same errors.

It appears to me, something is causing the CiviCRM self-install routine to fail, and my best guess is that it can't connect to the MySQL database. Beyond that, I've got nothing.

What's particularly strange is that I have no problem doing an identical install on my localhost, where I built the test site. I toyed with the idea of just moving the com_civicrm folders under /components and /administrator/components manually from my localhost to the server, but I can think of several reasons why that wouldn't work, beginning with the fact that the civicrm tables don't exist in my database.

This is completely maddening. Anybody have any idea?  ???

Thanks!
Chris
« Last Edit: March 13, 2011, 10:55:03 pm by digitalzen »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Difficulty installing CiviCRM 3.3.5 under Joomla 1.5
March 14, 2011, 05:44:53 am
Perhaps that file is missing. This file that is:

Code: [Select]
/home/(account)/public_html/administrator/components/com_civicrm/civicrm/templates/CRM/common/civicrm.settings.php.tpl
Aside from that, it could be a configuration issue with your host, with file permissions.

Although you can copy your local install to your online site. See here: http://wiki.civicrm.org/confluence/display/CRMDOC33/Moving+an+Existing+Installation+to+a+New+Server+or+Location for how. It's not so hard really.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

digitalzen

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 0
Re: Difficulty installing CiviCRM 3.3.5 under Joomla 1.5 - RESOLVED
March 14, 2011, 08:32:08 am
Slapping forehead!

I feel so stupid. Here's the problem: I'm working on a site in a pre-launch state, so everything I'm doing is by server name, rather than by domain. The domain is currently pointed to a different, live site, and will be until the new Joomla site is built out and ready to go live.

However, the Joomla install is all set up to receive the domain, and all the paths are set up accordingly. So of course it would be clobbering my CiviCRM install!

I just confirmed this by installing CiviCRM on another account with the same host, where the domain is already pointed.

So all I need to do is hold off on the CiviCRM piece until I've redirected the domain. I'm confident everything will run smooth as silk then.

Hershel, I appreciate your reply. I've definitely noted that moving a CiviCRM install from one place to another is not as impossible as I had imagined, although it still looks rather daunting. I'll be the first to admit that I'm still very intimidated by MySQL.

Thanks!
Chris

digitalzen

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 0
Re: Difficulty installing CiviCRM 3.3.5 under Joomla 1.5 UPDATE
April 25, 2011, 09:41:54 am
Actually, my assumption about domains was incorrect. As it turns out, I followed Hershel's advice, more or less, and got it sorted out.

Here's what happened:

I went live with the site (moved the domain over), and discovered that I was still unable to install CiviCRM.

I started poking around in phpMyAdmin and comparing to a site with a working install of CiviCRM, and noticed that on the working site, my database had the default Joomla name ([account]_jos1), while the site I couldn't install to had a custom database name ([account]_[customname]). I suspect this is what was causing the problem, but am not certain.

Anyhow, I set up a quick Joomla site on my localhost, installed CiviCRM, and exported the civicrm_ tables to a gzipped SQL file.
I then imported the civicrm_ tables to the database on my livesite; they were empty of data, of course, but had the structure I needed.
After that, I uploaded /administrator/components/com_civicrm and /components/com_civicrm via FTP to the appropriate locations on the live site.
Lastly, I went back to the Joomla installer, ran it using install from directory (/tmp/com_civicrm/), which was still there from my prior attempts to install, and BA-BING!!!! Success!

Now, if one of the many CiviCRM experts here would like to try to offer insight into what I might have done wrong in the first place, I'm certainly curious, and it could be helpful to other users who run into similar issues.

Cheers!
Chris

lildiapercake123

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
    • Perfect Baby Gift : Diaper Cakes
  • CiviCRM version: 3.4
  • CMS version: joomla
  • MySQL version: 4.1
  • PHP version: 5.3
Re: Difficulty installing CiviCRM 3.3.5 under Joomla 1.5
April 26, 2011, 10:51:15 pm
Hello-

I have a couple of questions.

I am trying to install Civicrm with joomla,

1. Do I need to install civicrm component AND the actual program?

2. I am trying to install the component and I get this error:

Upload new component - Error
Installation file not found

Thanks

Diaper Cakes are nice Baby Gifts; The perfect Baby gift is a Diaper Cake

lildiapercake123

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
    • Perfect Baby Gift : Diaper Cakes
  • CiviCRM version: 3.4
  • CMS version: joomla
  • MySQL version: 4.1
  • PHP version: 5.3
Re: Difficulty installing CiviCRM 3.3.5 under Joomla 1.5
April 26, 2011, 10:53:43 pm
btw,

I uploaded the component to the com_civicrm folder - the instalation guide on the website says:

/administrator/components/com_installer/component/com_civicrm

I can't see "com_installer/component"
Diaper Cakes are nice Baby Gifts; The perfect Baby gift is a Diaper Cake

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Difficulty installing CiviCRM 3.3.5 under Joomla 1.5

This forum was archived on 2017-11-26.