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

Author Topic: phantom directory  (Read 11850 times)

donovan

  • Guest
phantom directory
December 12, 2007, 12:04:00 am
So after working out my database disconnect issue, I attempt to install the component. Having never successfully completed the install I was shocked to see:

Component Install: Another Component is already using directory: "<HOSTIN DOMAIN>/www/<DOMAIN NAME>/components/com_civicrm"

OK, delete the directory and move on...right. What do you do when there is nothing in the /components to match what the error messages says?

speleo

  • Ask me questions
  • ****
  • Posts: 396
  • Karma: 28
  • CiviCRM version: 4.3.1
  • CMS version: J! 2.5,9
  • MySQL version: 5.1
  • PHP version: 5.3.24
Re: phantom directory
December 12, 2007, 12:39:59 am
I've seen this befre with other Joomla components and from memory it was a Joomla issue. Best bet is to search the Joomla forums for some insight.

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: phantom directory
December 12, 2007, 05:56:08 am
I've had that message when I had a faulty extension installation (it crashed during installation and then I went back to try reinstalling), because the installation process sees the directory structure and thinks the extension already exists. Look for com_civicrm in BOTH /components/ AND /administrator/components/ and delete the directories if they exist. Then try reinstalling.

It could also be a caching issue.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

donovan

  • Guest
Re: phantom directory
December 12, 2007, 09:13:42 am
Quote from: lcdweb on December 12, 2007, 05:56:08 am
I've had that message when I had a faulty extension installation (it crashed during installation and then I went back to try reinstalling), because the installation process sees the directory structure and thinks the extension already exists. Look for com_civicrm in BOTH /components/ AND /administrator/components/ and delete the directories if they exist. Then try reinstalling.

It could also be a caching issue.

OK, checked both paths and there is no com_civicrm listed in either. Were would I find the cache and how do I clear it? On another note, wouldn't the software install method use a session id tagged onto the install dir to make each install unique?

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: phantom directory
December 12, 2007, 07:47:35 pm
In Joomla, you can turn off caching through the global config menu. You can also empty your cache through the browser settings (Tools > clear private data -- in Firefox).

No, Joomla doesn't tag the install directory for extensions with a session id. There's no need. You would never need to have an extension installed more than once within a single Joomla installation. And tagging it with a session id would potentially complicate extension upgrades. The installer will get confused if a folder or related files exist for an extension, even if it's only an empty folder. Which is why you needed to check to make sure the com_civicrm directories didn't exist.

Another thought --
Open up your MySQL database and look in jos_components. If there are any records associated with CiviCRM, remove them. Normally, I wouldn't think this would be the problem. But I guess it's possible that the installer could be reading the existence of the component directory from the database rather than the file structure.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Davesp

  • Guest
Re: phantom directory
April 03, 2008, 06:44:29 am
Hi,

I have exactly the same problem on a new test install of joomla using

Quote
PHP built On:       Linux xxxxxx.xxxxx.xx 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686
Database Version:    5.0.41-community
PHP Version:    5.2.2
Web Server:    Apache/1.3.39 (Unix) mod_fastcgi/2.4.2 PHP/5.2.2 mod_ssl/2.8.30 OpenSSL/0.9.7a mod_perl/1.29 FrontPage/5.0.2.2510
WebServer to PHP interface:    apache
Joomla! Version:    Joomla! 1.0.15 Stable [ Daytime ] 22 February 2008 23:00 UTC

I had a failed install of Civiccrm and deleted the civiccrm directory in /components and looked in /administrator/components (nothing) after the second attempt gave me the error message saying there was an instance of this component installed.

edit:

I also get the same error when I press 'install' with just the default value
Quote
'/home/davesp/domains/name.tld/public_html/administrator/components
' in the dialog box.

The error message says;

Quote
Another component is already using directory: "/home/davesp/domains/name.tld/public_html/components/com_civicrm/"

end edit

I've looked through the database table jos_components and there is no sign of the civiccrm. I haven't enabled caching in the Joomla global config so I'm stumped.

I guess there is no way to make this a normal Joomla component?

Is there a way to 'manually' install civiccrm by copying the relevent file into the right directories in the joomla structure? I would really like to make this work.



Many thanks in advance.

Dave - Ireland
« Last Edit: April 03, 2008, 07:43:23 am by Davesp »

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: phantom directory
April 03, 2008, 08:03:23 am
Did you delete /components/com_civicrm and /administrator/components/com_civicrm before reinstalling?

-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Davesp

  • Guest
Re: phantom directory
April 03, 2008, 08:37:54 am
Yes

Quote
...and deleted the civiccrm directory in /components and looked in /administrator/components (nothing)

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: phantom directory
April 03, 2008, 05:49:10 pm
You asked about a manual install --
Here's a quick take. No guarantees or warranties. Personally, I would continue working on the normal install. Go through your files and database one more time and make sure it's clean. Make sure your php settings are adequate (memory_limit and max_execution_time). Then try reinstalling. But if you want to manual install, this is what I think you need to do:

1) Download and unpack the install files on your local computer.

2) Run the SQL files on your db. You need to run civicrm.mysql and civicrm_data.mysql (found in /civicrm/sql/).

3) Install the files to your server. See this article (http://wiki.civicrm.org/confluence/display/CRMDOC/Upgrade+Joomla+2.0+Sites+to+2.0.2), and look at "option 2" under step 3. One change: you don't need to delete the administrator/components/com_civicrm/civicrm/civicrm.config.php file. You need to open it, select all the text, delete it, and replace it with:
Code: [Select]
<?php

require_once '/home/USER/public_html/administrator/components/com_civicrm/civicrm.settings.php';

?>
(you need to find the actual location of your files -- I'm just giving you my standard location)

4) You need to recreate your two settings files. I've attached a sample one (stripped of my data) for v2.0. There are five variables that must be completed. There's lots of commenting to help you. One copy of the file goes in /components/com_civicrm/ and one goes in /administrator/components/com_civicrm/. In my installations, the two files are identical except for the CIVICRM_UF_BASEURL variable -- the version in the administrator folder has www.yourdomain.com/administrator/ (the other is just your root domain). You'll need to change the extension to the file I'm uploading (it's uploaded as a txt).

5) You need to add the menu items for CiviCRM so it shows up in the components menu. Here's the dump from one of my installs for the Civi pieces (into jos_components). I've attached the sql file. Also note, this was a dump from Joomla 1.5 -- I don't have the energy to check and see if it's the same for 1.0.


I *think* this covers the steps for a manual install. It's slightly painful, which is why, of course, they built an automated installer. And why I would recommend pushing in that direction first.

-Brian

support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Davesp

  • Guest
Re: phantom directory
April 03, 2008, 11:17:11 pm
Hi Brian,

Thanks for what looks like a very comprehensive reply. I'll report back when I have made some progress.

All the best - Dave

Davesp

  • Guest
Re: phantom directory
April 04, 2008, 12:44:45 pm
Well, I took your advice and persevered. I reinstalled Joomla completely and tried the install again. It worked. I had the increased memory and execution time using .htaccess file in my site root.

the settings are :

Code: [Select]
php_value memory_limit 64M
php_value max_execution_time 600

As always with these things it is impossable to say what worked as I just started from scratch and did a few things a little more carefully!

A couple of minor notes:

I noticed when I compared the files in the local and remote directories that FireFTP reported several mis-matches in file size. (In the tools menu top right, for anyone using FireFTP). Civicrm is a large number of files for sure. I did try the script that would unzip the files online but it didn't work on my server. I did hack together something similar in the days of Mambo but it did require you to upload the unzip functions file as well as the interface file. Still I digress.

The only comment i have is that if Civicrm was available as a tar.bz2 I would have been able to uncompress it online via my server control panel. But then nearly every server interface is different.

I would vote for this though as the uploading of a few thousand files with all the error checking definitely takes longer than uploading one compressed file and then uncompressing it on the server.

Just a comment for us people who don't have root access to our server space.....

Thanks again for your prompt response. I look forward to trying to set the whole thing up now!!!

Dave


lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: phantom directory
April 04, 2008, 01:11:27 pm
I thought in the past that the Joomla install package was available in formats other than .zip. You could always download the zip locally, unpack it, and then pack it to a .tar or .bz2 file. I use 7-zip for that on windows: http://www.7-zip.org/
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Davesp

  • Guest
Re: phantom directory
April 04, 2008, 02:39:38 pm
Ok thanks again Brian.

I do have 7-zip, I didn't see that as an option I had always assumed .tar.bz files were a Linux only thing although  I did know they could be unpacked ok. I'll look into it a bit more. It will make life easier if I have to do another install. Thanks again for your encouragement.

Dave

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: Joomla 1.01 manual install
April 13, 2008, 02:05:08 am
Following the instructions above for manual install has seemed to get me started fine on Joomla 1.0.15 with a few caveats which I thought I would share here.

1. Connection issues - my mysql 5 server runs on a nonstandard port so dbhostname was changed to add port number for civicrm.settings.php. So mine became : 'mydbhostname:3307'

2. Permissions - whatever you need to get your joomla install running civicrm folders required same chmod settings

3. Attached file above ('') for manually inserting jos_components entries (so that Joomla admin picks it up) doesnt work on Joomla 1.0.1x - there is one column entry too many. Attached is txt file of the adjusted sql which worked on Joomla 1.0.1x

Just gotta play now :)

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: phantom directory
April 13, 2008, 02:06:03 am
Maybe these instructions should be a sticky post with a new subject?  ;D

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

This forum was archived on 2017-11-26.