CiviCRM Community Forums (archive)

Old sections (read-only, deprecated) => Installing CiviCRM => Support => Joomla! Installations => Topic started by: hp3kman on August 19, 2008, 06:31:47 pm

Title: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: hp3kman on August 19, 2008, 06:31:47 pm
NOTE: This procedure works ONLY for versions of Joomla! 1.0.x and civiCRM < 2.1. DO NOT USE for Joomla! 1.0.15/CiviCRM 2.1 installs!

Hope this helps someone out...this took me many hours of research on the forums (thanks to all those posters!) to get down to this...and it works every time for me!

I've posted this elsewhere, but thought a specific post was in order with a searchable subject line.

Here's what works the best for me...

1) Unzip the files locally; you should have a com_civicrm directory with files and another directory called civicrm below that.

2) Create a directory under ~/administrator/components called com_civicrm

3) Transfer the civicrm directory from your local drive to the ~/administrator/components/com_civicrm directory you just created.

4) Create a directory under ~/administrator/components/com_installer/component called com_civicrm

5) Transfer the local files only to the ~/administrator/components/com_installer/component/com_civicrm directory you just created

6) Edit the civicrm.xml file that's in the ~/administrator/components/com_installer/component/com_civicrm directory; delete all references to any files under the civicrm directory:

For example, in the .xml file you will see thousands of references under the <administration> section <files> tag to files like:

    <files>
      <filename>admin.civicrm.php</filename>
      <filename>toolbar.civicrm.php</filename>
      <filename>install.civicrm.php</filename>
      <filename>uninstall.civicrm.php</filename>
      <filename>configure.php</filename>
      <filename>civicrm/agpl-3.0.txt</filename>
-------------------etc------------------------------
      <filename>civicrm/extern/stubs.php</filename>
    </files>

delete all files between the <files> tags that have a path that begins with the civicrm/ directory (the ones like in red  above). The reason we delete these references is that the install doesn't need to know where to put these files since we've already moved them where they belong (under the ~/administrator/components/com_civicrm/civicrm directory) by uploading that directory in step 3. Having the install process move these files is part of what causes the memory and timeout issues.

You should be left with something like this in the <administrator> part of the .xml file:

    <files>
      <filename>admin.civicrm.php</filename>
      <filename>toolbar.civicrm.php</filename>
      <filename>install.civicrm.php</filename>
      <filename>uninstall.civicrm.php</filename>
      <filename>configure.php</filename>
    <files>

7) Install from directory using the full path, something like:
/home/content/html/administrator/components/com_installer/component/com_civicrm. Actually, most of this path should already be displayed and you'll just need to enter the '/com_civicrm' part at the end...

Voila! You're in...Let me know if you have any problems...you MAY have to edit some settings in your .php file, but this gets you around the timeout and memory problems.
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: businessbroker on August 20, 2008, 02:21:37 am
if this go, coul be very useful to ad as alternative manual setup in installation manual of civicrm , what you think about it?
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: hp3kman on August 20, 2008, 06:11:41 am
That would be up to the dev team...if enough people say this works, I'm all for it...I know how frustrating it can be to get this installed.

I don't think being specific to GoDaddy is enough to qualify for a space in the main documentation, but if these are problems encountered by a lot of shared hosting clients, then yes, it should be noted...

thanks for your input!
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: malloy0 on August 21, 2008, 05:05:00 am
From hp2kman's info and instructions for a GoDaddy install I rearranhed the "steps" below based on how I tried to get an install to work.

Also I provided some other information to add and / or claify some the steps, sadly though stil NO INSTALL.

1) Unzip the files locally; you should have a com_civicrm directory with files and another directory called civicrm below that.

----------------------------------------------------------------------------------------------
2) Create a directory under ~/administrator/components called com_civicrm
3) Transfer the civicrm directory to the ~/administrator/components/com_civicrm directory you just created.

----------------------------------------------------------------------------------------------
4) Create a directory under ~/administrator/components/com_installer/component called com_civicrm
5) Transfer the files only to the ~/administrator/components/com_installer/component/com_civicrm directory you just created

----------------------------------------------------------------------------------------------
6) Edit the civicrm.xml file; delete all references to any files under the civicrm directory

I did a file & replace FROM

<filename>civicrm/CRM/Contribute/Form/Task/Export.php</filename>

TO

<filename>/CRM/Contribute/Form/Task/Export.php</filename>

----------------------------------------------------------------------------------------------
7) Install from directory using the path ~/administrator/components/com_installer/component/com_civicrm

----------------------------------------------------------------------------------------------
8) Modify .*.php and / or .htaccess file to avoid memory and time out issues
Unfortunately, I got the same "Internal Server Error" as previously, that is WITHOUT using this approach.

I do NOT have a php.ini file, but did attempt to change .htaccess file in my root directory by adding this text

<IfModule mod_php5.c>
php_value max_execution_time 60
php_value upload_max_filesize 25M
php_value post_max_size 25M
php_value memory_limit 64M
php_value register_globals off
</IfModule>

----------------------------------------------------------------------------------------------
Bottomline, NO LUCK with the install to Joomla 1.0.15 php5/x MySQL 5x.

----------------------------------------------------------------------------------------------
I am more than open to further help on this. After looking at the DEMO, this component is perfect for us, but does no good without being able to get it installed.

Help??

Mike

Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: hp3kman on August 22, 2008, 06:56:08 pm
Mike --

Sorry to hear it didn't work...

You did make a mistake in step number 6, though...In the XML file delete all lines that begin w/ civicrm, like this:

<filename>civicrm/CRM/Contribute/Form/Task/Export.php</filename>

delete that and any files w/ that path...(there are thousands)

By doing what you did, you've likely messed up your ~/administrator/components/com_civicrm directory w/ some or all of the files/directories that actually belong under ~/administrator/components/com_civicrm/civicrm (depending on how far the install went). Check your ~/administrator/components/com_civicrm directory to see that there is only the /civicrm directory under it (and all the associated directories/files under that).

I've modified my original post to clarify this point.

That should solve your problem...

Lemme know!
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: hp3kman on August 22, 2008, 07:03:44 pm
Mike --

Also...DO NOT put those lines in your .htaccess file...GoDaddy told me that will crash your site (I learned that the hard way...).

If you don't have a php5.ini file, create one and upload it (add this to a file in notepad, save it as php5.ini and upload it to your account):

register_globals = off
allow_url_fopen = off

expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

post_max_size = 32M
file_uploads = On
max_execution_time = 100
memory_limit = 64M
file_uploads = On
upload_max_filesize = 24M

Then, look at your phpinfo.php file, or go to Administrator and look at your system settings; you should see the new memory and execution time there before proceeding.

Good luck...it's worth the trouble, once you see this in action! This is just the first hurdle...but you'll learn a LOT in the process!
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: polestar on August 24, 2008, 08:04:40 am
Hi,

I tried installing this method but because the com_civicrm directory is already there I am getting error "Another Component is already using directory".

Any help??

Thanks
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: hp3kman on August 24, 2008, 09:43:50 am
Yes...this usually happens because:

1) You are upgrading...if you are, let me know and I'll guide you.
2) You are doing a new install, but previous attempts failed and you want to start over.

If this is NOT an upgrade:

First, look under your components to see if Joomla! thinks it is installed (as is often the case when the installation bombs); if it does, you will see a component entry for CiviCRM. Uninstall it. This takes it out of Joomla!'s DB _component table and should delete the ~/components/com_civicrm and ~/administrator/components/com_civicrm directories if they exist.

Then, look at your directories via FTP and see if you have a ~/components/com_civicrm directory. This error message means that there is already a directory called ~/components/com_civicrm and/or an ~/administrator/components/com_civicrm directory; which means Joomla! thinks the component is installed. By uninstalling (as noted above) you should not have that problem, but to be on the safe side I would check to make sure it's gone; if not, you need to delete it. You should also delete the ~/media/civicrm directory, if present. NOTE: If the ~/administrator/components/com_civicrm/civicrm directory is still there, you can leave it there and do all other steps. If it is gone (because of the uninstall), you will need to start over from step 2.

 The only directories you should have now are:

~/administrator/components/com_civicrm
~/administrator/components/com_civicrm/civicrm (with all the files under it)
~/administrator/components/com_installer/component/com_civicrm (with the install/config files under it)

There should be nothing related to civicrm under ~/components/ or ~/media.

You should have already moved the /civicrm directory to ~/administrator/components/com_civicrm; I'm assuming that you've also modified the .xml to reflect that you've manually moved the /civicrm directory where it belongs as explained in my original post, above.

Finally, look at your database to make sure that no civicrm tables are there; if there are, DROP all of them (you will need to do this several times, due to the key structure).

You are now ready to reinstall, making sure you've done each step in order. I've enhanced my original post to clarify some issues people have had...refer there, if necessary, for all the steps in order for a clean install.
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: polestar on August 24, 2008, 01:27:14 pm
Help me please. Here is my .xml file.

The problem is that if I copy the civicrm folder in /administrator/components/com_civicrm folder than the folder already exists when I am doing the actual installation.

The file below doesn't have the lines from the folder civicrm. there is only one line starting from <folder> and i remove that when I do the installation.

Its a new installation not an upgrade.

I have also seen situations where the installation was telling me to download index.php (No clue why)

In other cases when I try and do a clean standard install (without using your method). I get the error of directories being present after around 1 min.

Any suggestions?

PHP Version: 5
CiviCRM Version: 2.1alpha5
Joomla Version: 1.5.6

Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<install type="component" version="2.1">
  <name>CiviCRM</name>
  <creationDate>04/01/2008</creationDate>
  <copyright>(C) CiviCRM LLC</copyright>
  <author>CiviCRM LLC</author>
  <authorEmail>info@civicrm.org</authorEmail>
  <authorUrl>civicrm.org</authorUrl>
  <version>2.1</version>
  <description>CiviCRM</description>
  <files>
      <filename>civicrm.php</filename>
      <filename>civicrm.html.php</filename>
  </files>
  <params>
    <param name="task" type="list" default="civicrm/profile" label="Choose CiviCRM task">
       <option value="civicrm/user">Contact Dashboard</option>
       <option value="civicrm/profile">Profile Search and Listings</option>
       <option value="civicrm/profile/create">Profile Create</option>
       <option value="civicrm/profile/edit">Profile Edit</option>
       <option value="civicrm/profile/view">Profile View</option>
       <option value="civicrm/contribute/transact">Online Contribution</option>
       <option value="civicrm/event/info">Event Info Page</option>
       <option value="civicrm/event/register">Online Event Registration</option>
    </param>
    <param name="id"    type="text" size="5" label="Contribution or Event id" description="The ID number of your Contribution or Event as defined when the Contribution or Event was created. Leave blank if not relevant"/>
    <param name="gid"   type="text" size="5" label="Profile id" description="The ID of your Profile as defined when the profile was created. Leave blank if not relevant"/>
    <param name="reset" type="text" size="5" default="1" label="Reset" description="Keep this set to 1. This is needed for the form to work properly." />
  </params>
  <install>
    <queries>
    </queries>
  </install>
  <uninstall>
      <queries>
      </queries>
  </uninstall>
  <installfile>install.civicrm.php</installfile>
  <uninstallfile>uninstall.civicrm.php</uninstallfile>
  <administration>
    <menu task="civicrm/dashboard&amp;reset=1">CiviCRM</menu>
                <submenu>
                        <menu task="civicrm/dashboard&amp;reset=1">CiviCRM Home</menu>
                        <menu task="civicrm/contact/search&amp;reset=1">Find Contacts</menu>
                        <menu task="civicrm/group&amp;reset=1">Manage Groups</menu>
                        <menu task="civicrm/import&amp;reset=1">Import Contacts</menu>
                        <menu task="civicrm/contribute&amp;reset=1">CiviContribute</menu>
                        <menu task="civicrm/pledge&amp;reset=1">CiviPledge</menu>
                        <menu task="civicrm/member&amp;reset=1">CiviMember</menu>
                        <menu task="civicrm/event&amp;reset=1">CiviEvent</menu>
                        <menu task="civicrm/admin&amp;reset=1">Administer CiviCRM</menu>
                </submenu>
    <files folder="admin">
      <filename>admin.civicrm.php</filename>
      <filename>toolbar.civicrm.php</filename>
      <filename>install.civicrm.php</filename>
      <filename>uninstall.civicrm.php</filename>
      <filename>configure.php</filename>
      <folder>civicrm</folder>
    </files>
  </administration>
</install>
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: hp3kman on August 24, 2008, 03:40:05 pm
DISREGARD this post...the install procedure for Joomla! 1.5/civiCRM is radically different from previous versions...
Ah...haven't done the Joomla! 1.5/CiviCRM 2.1 install (yet!)...probably later this week.

Hmmm...My assumption is that the .xml reader/installer has been upgraded in 1.5; in prior versions, it didn't check the ~/administrator/components directory to see if the directory for the component you were/are installing already existed, it only checked ~/components. Not a bad change, really...keeps both component directories in synch.

Additionally, it looks to me like civiCRM has changed the structure of their ~/administrator/components/com_civicrm directory by putting the files and civicrm directory in a separate admin folder...now, it appears that the structure of the ~/administrator/components/com_civicrm directory (which used to have just a directory, civicrm, and some files under it), is now to be ~administrator/components/com_civicrm/admin/civicrm; the config files and civicrm directory appear to be under the admin directory now.

I haven't looked into it deeply, but it seems to me that, rather than just list files with the directory indicated, the .xml explicitly names/creates/moves the folders as well (i.e. moves it from the installer location w/o having to list all the files separately...).

It's really just a semantic difference, though...and should only require a slight adjustment.

I would try this (NOT TESTED, but it can't hurt!):

1) Completely uninstall (then remove directories and db tables as before, if necessary) from any prior installation attempts.

2) Create the directory ~/administrator/components/com_installer/component/com_civicrm directory.

3) From your unzipped local files, upload the following files/directory to the ~/administrator/components/com_installer/component/com_civicrm directory you just created.

Directory: admin (along w/ the files , but NOT the civicrm directory)
Files: civicrm.html.php, civicrm.php, civicrm.xml

Your directory structure should look like this:

~/administrator/components/com_installer/component/com_civicrm/admin/admin.civicrm.php
~/administrator/components/com_installer/component/com_civicrm/admin/configure.php
~/administrator/components/com_installer/component/com_civicrm/admin/install.civicrm.php
~/administrator/components/com_installer/component/com_civicrm/admin/toolbar.civicrm.php
~/administrator/components/com_installer/component/com_civicrm/admin/uninstall.civicrm.php
~/administrator/components/com_installer/component/com_civicrm/civicrm.html.php
~/administrator/components/com_installer/component/com_civicrm/civicrm.php
~/administrator/components/com_installer/component/com_civicrm/civicrm.xml

4) remove the line in the .xml file that reads:

<folder>civicrm</folder>

5) Install from directory as before...that should take care of Joomla! recognizing the program, but you still now need to do the next step before you access civiCRM

6) Upload the civicrm directory to ~/administrator/components/com_civicrm/admin

Unless civiCRM has drastically changed how the program gets configured, this should work...it would be a pity if it doesn't, because I'll never be able to upgrade/install the new version...

Sorry to make you a guinea pig for this, but you'll help a lot of people if you can verify this...I'll have to amend my previous instructions for GoDaddy installs to reflect which Joomla!/civiCRM version you are trying to do...

If you're still getting the errors of directories being present (which they shouldn't be...), it may be a cache issue.

Hope this helps! Please let me know...if this works, my karma should go thru the roof; if it doesn't, PM me, and we'll arrange to talk.


Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: polestar on August 24, 2008, 11:28:35 pm
Thanks man.

but the problem now is that it tries to do configuration using a file in the civicrm folder. Configure.php

any further thoughts? I haven't looked at the other post yet if there is something useful in it.
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: hp3kman on August 25, 2008, 06:14:22 am
Hmmm...the configure.php script is in the admin folder...do you possibly mean the civicrm.config file that's supposed to be in the civicrm folder??? Or is it maybe trying to move the configure.php file to the <non-existent> civicrm folder...

Things have really changed in these new versions...

OK, well, there's usually more ways than one to skin a cat...the install is obviously interested in many files in the civicrm folder that I wasn't taking into account...in previous versions, since we could upload civicrm separately, and the Joomla installer didn't do the directory check, things were easier.

Now, of course, none of the .sql files are there, and many others, I'm sure. What we need to do is figure out the bare minimum number of files we can get away with for an install...I'm thinking we'll need to create a modified package of files and folders necessary to get beyond the install phase, and then manually upload the majority later...

For starters, of course, we'll need the SQL folder...then I would assume the install folder and, problably the Joomla folder. There are several install routines, and it's difficult to know which ones are used at which point in the process...

Before we go any further, let me do a test install on one of my GoDaddy accounts...I'll get back to you soon!
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: polestar on August 31, 2008, 07:42:38 am
Here you go guys!!!

I was able to install it one server (lunarpages shared hosting) and not another (godaddy shared hosting) even after different options, ways to install and everything. So the option I opted was to migrate the installation from lunarpages to godaddy and here you go. its working now.

It is Joomla Version 1.5.6 & CiviCRM version 2.0 will try to migrate to 2.1 and/or install 2.1 on Joomla on lunarpages server and let you know my experience.

Thanks everyone and specially hp3kman.
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: jlazerus on September 02, 2008, 08:54:10 am
Hello. I followed your directions above and am getting the following error when trying to navigate to the Civicrm menus in the joomla administrator.

Cannot execute CREATE TABLE civicrm_currency ( id int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Currency Id', name varchar(64) COMMENT 'Currency Name', symbol varchar(8) COMMENT 'Currency Symbol', numeric_code varchar(3) COMMENT 'Numeric currency code', full_name varchar(64) COMMENT 'Full currency name' , PRIMARY KEY ( id ) ) ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci: DB Error: syntax error
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: hp3kman on September 02, 2008, 04:56:24 pm
Hmmm...were all the tables created correctly???

I've only gotten this to work w/ joomla <1.5 and CiviCRM <= 2.0.5
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: jlazerus on September 02, 2008, 05:15:11 pm
I'm not sure if they did. I 'm using Joomla 1.0.15 but crm 2.0.6. I couldn't figure out any other way to install this. Oh, and to note, I am using shared hosting with godaddy. I was able to cut and paste the create table syntax into sql and it was successfully able to create a table.
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: fezzicnex on September 02, 2008, 07:51:35 pm
i hope hp3kman comes back from his testing with some good news cause i still cant get this darn thing to cooperate. you have been the most help so far.
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: brotherhutch on September 11, 2008, 08:53:00 pm
Has anyone made any headway on this installation yet?  According to my phpinfo, all of the requirements for Max Execution Time and Memory Limit have been met, so the php5.ini file seems to be doing its job; however, running the installation still gives me a blank screen on the first attempt (after a clean joomla install) and the directory already in use errors others have reported on any additional attempts (after deleting both of the partially installed com_civicrm dirs).  If anyone has any new info or insights, please post.

-cheers
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: hp3kman on September 12, 2008, 03:18:39 pm
Still working on it, guys...had to go live w/ event registrations, so I've been quite busy, but need to get back to it...there is new functionality in the latest version that I need, so I have to get this accomplished!

I've been bombing out every which way I try to install...I need to follow the install trail to find the bare minimum files I'll need to get it to install, then manually move the remainder of the files later.

I haven't given up!
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: fezzicnex on September 19, 2008, 08:40:26 pm
excellent strategy, we all pray you can figure it out.
bless you if you can get this to work!
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: polestar on September 22, 2008, 04:42:58 am
I went the dirty way to install version 2.0 on Joomla 1.5.7

Because I use two different hosting companies Lunarpages and GoDaddy and the installation was fine on Lunarpages I went and copied the whole installation directory of Joomla from Lunarpage to GoDaddy. Also, I copied the MySQL database as well and after the changes to the configuration files, everything worked fine.
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: brotherhutch on September 27, 2008, 02:08:31 pm
Hmmm... interesting.  I wonder what would be involved in doing a complete install on a localhost (XAMPP or something), and then copying it over to Godaddy as you have done from Lunarpages. What sort of configuration changes did you have to make in your situation?  Would the changes be similar if trying this from a localhost, do you think?  Thanks for your input polestar!
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: jdiff on October 03, 2008, 07:25:05 pm
Trying to follow this on another shared hosting environment, installing 2.1 stable on Joomla 1.5.7.

I increased all my limits in .htaccess and ran Install from Directory.
After a few minutes, I got this error:
Component Install: DB function failed with error number 2006
MySQL server has gone away SQL=INSERT INTO jos_components VALUES( 0, 'CiviCRM', 'option=com_civicrm', 0, 0, 'option=com_civicrm', 'CiviCRM', 'com_civicrm', 0, 'js/ThemeOffice/component.png', 0, 'task=civicrm/profile\nreset=1\n', 1 )
SQL =
INSERT INTO jos_components VALUES( 0, 'CiviCRM', 'option=com_civicrm', 0, 0, 'option=com_civicrm', 'CiviCRM', 'com_civicrm', 0, 'js/ThemeOffice/component.png', 0, 'task=civicrm/profile\nreset=1\n', 1 )

Note my .htaccess includes:
php_value memory_limit 256M
php_value max_execution_time 600
php_value mysql.connect_timeout 600
php_value max_input_time 600



So I came here and found this thread and figured I'd give it a try.

Here's what I did:

Uploaded admin/civicrm directory to /administrator/components/com_civicrm

Deleted line <folder>civicrm</folder> from civicrm.xml

Tried to Install from Directory under Joomla.

Got error message "Component Install: Another Component is already using directory"


Then tried renaming the /administrator/components/com_civicrm/admin/civicrm to civicrm2 temporarily.

Tried again Install from Directory.

Got a bunch of mkdir errors and similar in configure.php.

Now there's a civicrm directory with 6 php files in it, and a civicrm2 directory that I put there.  There is a CiviCRM menu under Joomla's Components menu which gets removed when I uninstall the component.

It seems all we need to do is hack Joomla's directory check routine to prevent it from checking if the directory exists.  Then we should be able to install using this method, and once we're installed we can undo the directory check hack.  But I'm not knowledgeable to be able to do that.  Any ideas?

Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: brotherhutch on October 12, 2008, 01:19:15 pm
I'm afraid I gave up trying to do a direct install.  I shall leave that to the experts.  Instead, I went the long way and installed joomla/civiCRM on a localhost and then transferred everything to godaddy shared hosting.  I exported my database from my localhost and imported it into my godaddy database, updated the joomla config with the godaddy paths, followed the "moving an existing [civiCRM] installation to a new server location" instructions (located here: http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location ) and all appears well so far.  It's the long way, but it appears to work.
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: jdiff on October 20, 2008, 10:05:49 am
Just wanted to post this here, in case there are Joomla experts that can help.  I'll try to bumble my way through this later this week.

It seems that Joomla's component.php is the file that controls the component install process.

Here is a link to the commented source:
http://api.joomla.org/svn/__filesource/fsource_Joomla-Framework_Installer_joomlainstalleradapterscomponent.php.html

Looks like we should be able to comment out all of this section to avoid the directory-exist check.  (We'll lose the ability for the uninstall to delete the directory, but that's not a big deal.)

Code: [Select]
#
#
        /**
#
         * ---------------------------------------------------------------------------------------------
#
         * Filesystem Processing Section
#
         * ---------------------------------------------------------------------------------------------
#
         */
#
 
#
        /*
#
         * If the component site or admin directory already exists, then we will assume that the component is already
#
         * installed or another component is using that directory.
#
         */
#
        $exists    = false;
#
        if ( file_exists($this->parent->getPath('extension_site')) && !$this->parent->getOverwrite()) {
#
            $exists    = true;
#
            JError::raiseWarning(1, JText::_('Component').' '.JText::_('Install').': '.JText::_('Another component is already using directory').': "'.$this->parent->getPath('extension_site').'"');
#
        }
#
        if ( file_exists($this->parent->getPath('extension_administrator')) && !$this->parent->getOverwrite()) {
#
            $exists    = true;
#
            JError::raiseWarning(1, JText::_('Component').' '.JText::_('Install').': '.JText::_('Another component is already using directory').': "'.$this->parent->getPath('extension_administrator').'"');
#
        }
#
        if ( $exists )
#
        {
#
            return false;
#
        }
#
 
#
        // If the component directory does not exist, lets create it
#
        $created = false;
#
        if (!file_exists($this->parent->getPath('extension_site'))) {
#
            if (!$created = JFolder::create($this->parent->getPath('extension_site'))) {
#
                JError::raiseWarning(1, JText::_('Component').' '.JText::_('Install').': '.JText::_('Failed to create directory').': "'.$this->parent->getPath('extension_site').'"');
#
                return false;
#
            }
#
        }
#
 
#
        /*
#
         * Since we created the component directory and will want to remove it if we have to roll back
#
         * the installation, lets add it to the installation step stack
#
         */
#
        if ($created) {
#
            $this->parent->pushStep(array ('type' => 'folder', 'path' => $this->parent->getPath('extension_site')));
#
        }
#
 
#
        // If the component admin directory does not exist, lets create it
#
        $created = false;
#
        if (!file_exists($this->parent->getPath('extension_administrator'))) {
#
            if (!$created = JFolder::create($this->parent->getPath('extension_administrator'))) {
#
                JError::raiseWarning(1, JText::_('Component').' '.JText::_('Install').': '.JText::_('Failed to create directory').': "'.$this->parent->getPath('extension_administrator').'"');
#
                // Install failed, rollback any changes
#
                $this->parent->abort();
#
                return false;
#
            }
#
        }
#
 
#
        /*
#
         * Since we created the component admin directory and we will want to remove it if we have to roll
#
         * back the installation, lets add it to the installation step stack
#
         */
#
        if ($created) {
#
            $this->parent->pushStep(array ('type' => 'folder', 'path' => $this->parent->getPath('extension_administrator')));
#
        }
#
 
#
        // Find files to copy
#
        foreach ($this->manifest->children() as $child)
#
        {
#
            if (is_a($child, 'JSimpleXMLElement') && $child->name() == 'files') {
#
                if ($this->parent->parseFiles($child) === false) {
#
                    // Install failed, rollback any changes
#
                    $this->parent->abort();
#
                    return false;
#
                }
#
            }
#
        }
#
 
#
        foreach ($this->adminElement->children() as $child)
#
        {
#
            if (is_a($child, 'JSimpleXMLElement') && $child->name() == 'files') {
#
                if ($this->parent->parseFiles($child, 1) === false) {
#
                    // Install failed, rollback any changes
#
                    $this->parent->abort();
#
                    return false;
#
                }
#
            }
#
        }
#
 

Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: Bharath on October 22, 2008, 01:17:01 am
NOTE: This procedure works ONLY for versions of Joomla! 1.0.x and civiCRM < 2.1. DO NOT USE for Joomla! 1.0.15/CiviCRM 2.1 installs!

Hope this helps someone out...this took me many hours of research on the forums (thanks to all those posters!) to get down to this...and it works every time for me!

I've posted this elsewhere, but thought a specific post was in order with a searchable subject line.

Here's what works the best for me...

1) Unzip the files locally; you should have a com_civicrm directory with files and another directory called civicrm below that.

2) Create a directory under ~/administrator/components called com_civicrm

3) Transfer the civicrm directory from your local drive to the ~/administrator/components/com_civicrm directory you just created.

4) Create a directory under ~/administrator/components/com_installer/component called com_civicrm

5) Transfer the local files only to the ~/administrator/components/com_installer/component/com_civicrm directory you just created

6) Edit the civicrm.xml file that's in the ~/administrator/components/com_installer/component/com_civicrm directory; delete all references to any files under the civicrm directory:

For example, in the .xml file you will see thousands of references under the <administration> section <files> tag to files like:

    <files>
      <filename>admin.civicrm.php</filename>
      <filename>toolbar.civicrm.php</filename>
      <filename>install.civicrm.php</filename>
      <filename>uninstall.civicrm.php</filename>
      <filename>configure.php</filename>
      <filename>civicrm/agpl-3.0.txt</filename>
-------------------etc------------------------------
      <filename>civicrm/extern/stubs.php</filename>
    </files>

delete all files between the <files> tags that have a path that begins with the civicrm/ directory (the ones like in red  above). The reason we delete these references is that the install doesn't need to know where to put these files since we've already moved them where they belong (under the ~/administrator/components/com_civicrm/civicrm directory) by uploading that directory in step 3. Having the install process move these files is part of what causes the memory and timeout issues.

You should be left with something like this in the <administrator> part of the .xml file:

    <files>
      <filename>admin.civicrm.php</filename>
      <filename>toolbar.civicrm.php</filename>
      <filename>install.civicrm.php</filename>
      <filename>uninstall.civicrm.php</filename>
      <filename>configure.php</filename>
    <files>

7) Install from directory using the full path, something like:
/home/content/html/administrator/components/com_installer/component/com_civicrm. Actually, most of this path should already be displayed and you'll just need to enter the '/com_civicrm' part at the end...

Voila! You're in...Let me know if you have any problems...you MAY have to edit some settings in your .php file, but this gets you around the timeout and memory problems.


Can you please elaborate regarding the 6th point, Local files only. Which files are you referring?
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: jdiff on October 23, 2008, 12:56:27 pm
Can you please elaborate regarding the 6th point, Local files only. Which files are you referring?

All the files in your local com_civicrm directory (but not the civicrm directory that you transferred earlier).

Note that this DOES NOT work on Joomla 1.5.x.
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: joseramonjr on November 25, 2008, 08:51:28 am
I am having the same problem, that is: installation and the time out issue.

Has any one heard more news on properly installing civicrm on godaddy?

Thanks
Title: Re: Joomla/CiviCRM installation on GoDaddy shared hosting
Post by: EmperorNeo on December 11, 2008, 11:24:29 am
I to am using Joomla v1.5.8 with CiviCRM 2.01 on GoDaddy.com shared hosting (nightmare) and i'm having all the problems that everyone else is having.  I created a "Php5.ini" file and added the following code as suggested:

register_globals = off
allow_url_fopen = off

expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

post_max_size = 32M
file_uploads = On
max_execution_time = 100
memory_limit = 64M
file_uploads = On
upload_max_filesize = 24M

Note: changing or adding a .htaccess file is not an option with godaddy.com shared hosting.

I have my "com_civicrm" folder uploaded into my /administrator/components/com_installer folder and have synchronized it to make sure all files were accurately passed to the server.

Upon "install from a directory" it starts working for a minute or two then gives a blank screen. This is so frustrating because i am so desperate to have this extension working. There has to be a way to get it working.  If anyone at all has any suggestions or comments or a prayer PLEASE lets keep this thread going. 

If i find someone to resolve this problem for me outside of this forum i will post all my notes here so that the next person will have an easier time dealing with this situation than I/we did.

Thanks