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) »
  • Joomla/CiviCRM installation on GoDaddy shared hosting
Pages: 1 [2]

Author Topic: Joomla/CiviCRM installation on GoDaddy shared hosting  (Read 17210 times)

jlazerus

  • Guest
Re: Joomla/CiviCRM installation on GoDaddy shared hosting
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.
« Last Edit: September 02, 2008, 05:37:27 pm by jlazerus »

fezzicnex

  • Guest
Re: Joomla/CiviCRM installation on GoDaddy shared hosting
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.

brotherhutch

  • Guest
Re: Joomla/CiviCRM installation on GoDaddy shared hosting
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

hp3kman

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 4
Re: Joomla/CiviCRM installation on GoDaddy shared hosting
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!

fezzicnex

  • Guest
Re: Joomla/CiviCRM installation on GoDaddy shared hosting
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!

polestar

  • I post frequently
  • ***
  • Posts: 162
  • Karma: 11
    • Target Integration
Re: Joomla/CiviCRM installation on GoDaddy shared hosting
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.
CiviCRM - Installation & Support | Virtual Private Servers (VPS) with Joomla/Drupal and CiviCRM | SugarCRM & vTiger CRM Installation and Support
Target Integration | www.targetintegration.com
Subscribe to Knowledgement - Your guide to effective business | http://www.knowledgement.ie

brotherhutch

  • Guest
Re: Joomla/CiviCRM installation on GoDaddy shared hosting
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!

jdiff

  • I’m new here
  • *
  • Posts: 24
  • Karma: 2
Re: Joomla/CiviCRM installation on GoDaddy shared hosting
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?

« Last Edit: October 03, 2008, 07:26:55 pm by jdiff »

brotherhutch

  • Guest
Re: Joomla/CiviCRM installation on GoDaddy shared hosting
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.

jdiff

  • I’m new here
  • *
  • Posts: 24
  • Karma: 2
Re: Joomla/CiviCRM installation on GoDaddy shared hosting
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;
#
                }
#
            }
#
        }
#
 


Bharath

  • Guest
Re: Joomla/CiviCRM installation on GoDaddy shared hosting
October 22, 2008, 01:17:01 am
Quote from: 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.


Can you please elaborate regarding the 6th point, Local files only. Which files are you referring?

jdiff

  • I’m new here
  • *
  • Posts: 24
  • Karma: 2
Re: Joomla/CiviCRM installation on GoDaddy shared hosting
October 23, 2008, 12:56:27 pm
Quote from: Bharath on October 22, 2008, 01:17:01 am
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.

joseramonjr

  • Guest
Re: Joomla/CiviCRM installation on GoDaddy shared hosting
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

EmperorNeo

  • Guest
Re: Joomla/CiviCRM installation on GoDaddy shared hosting
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

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Joomla/CiviCRM installation on GoDaddy shared hosting

This forum was archived on 2017-11-26.