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) »
  • Hacking install for shared server?
Pages: [1]

Author Topic: Hacking install for shared server?  (Read 5407 times)

conductorchris

  • I post frequently
  • ***
  • Posts: 167
  • Karma: 9
    • Vermont Rail Action Network
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.2.7
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Hacking install for shared server?
December 17, 2008, 03:40:38 am
Still struggling to get civiCRM installed on a Joomla setup on a ThinkHost shared server.

Thinkhost has the following limits, which civiCRM bumps against:

* Any process that requires more than 0.50 MB of memory space, more than 0.10 CPU seconds or uses more than 0.10% of any available system resources at any time or otherwise threatens the stability of the server.

The thing that really seems to use the most resources in the install is writing files from the install directory to .../administrator/components/com_civicrm/civicrm/

I tried removing many files that I judged to be less critical to the install and then FTPing them in place afterward, but that didn't work.  I got it to tell me it had installed successfully, but then I couldn't make it connect to the database and I think it thought there were files missing, like maybe they hadn't been put in a config or settings table?

Now I'm wondering if I can hack the install file and do the file writing in a separate step (or steps).  Perhaps just halt the installation at the appropriate place, FTP everything up manually, and then resume (maybe turning the rest of the installation file into a separate script to run after the files are in place?

I am a fair bit past my expertise level here.

First question is, am I thinking down the right track?  If I don't have the skills to make this hack, I've got someone who knows php (though not civiCRM) who might help me.

Second question is, where exactly is the spot to make the cut?  It looks like the file civicrm.php in the install folder is the one that controls the file writing.  Is this a simple matter, or . . .

If we get this figured out, we might have the basis for creating a more feasible way to install on shared servers that would benefit many.
Thanks to those who help create and enhance civiCRM!

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: Hacking install for shared server?
December 17, 2008, 05:39:06 am
I think the steps needed are as follows:

1. Find the minimal number of files needed for civicrm and the installer to run. This is a trial and error process, u keep adding files one by one till you get no more errors. You php savvy friend might be able to help you here

2. Once you know the above, write a new civicrm.xml file with just the minimal set

3. Once the minimal set is installed, then upload/ftp the rest. There will be permission issues here based on your hosting setup (since the web server creates the top level directories etc)

4. CiviCRM does require more than 0.5M of memory (more like 64M). Some operations (including search and import) are also likely to take more than 0.1 CPU seconds. Might want to consider paying a bit more and getting a more powerful hosting plan.

good luck, let us know how things go with this approach

lobo
« Last Edit: December 17, 2008, 05:41:58 am by Donald 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

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: Hacking install for shared server?
December 17, 2008, 07:29:07 am
Did the original install attempt timeout? Blank screen? Errors?

I have one site that is running Civi on Thinkhost servers. It's sluggish, but I don't recall having issues with the installation or operation.

Do a search of the forum for "manual installation" -- I sketched out the details of how to walk through that a while back. May be useful.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

conductorchris

  • I post frequently
  • ***
  • Posts: 167
  • Karma: 9
    • Vermont Rail Action Network
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.2.7
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: Hacking install for shared server?
December 17, 2008, 04:40:05 pm
Thanks Lobo,
I was off testifying before the legislature today.  Now back to IT work . . .

lcdweb, My original install attempts (multiple) all involved timeouts until I got something installed by following something like Lobo suggested (but skipped the xml file) which led to database errors.  I've got all those files up (in renamed directories), so all I have to do is fix the details according to Lobo's plan and perhaps that will clear up.

This instillation problem in ThinkHost started with 2.1.2  It must be just that much bigger than 2.0.

I found your post on manual installation (I think it was yours), but it was for Joomla 1.0 and specifically said it wouldn't work for Joomla 1.5.  Never the less I tried it anyway.  And it didn't work, but it gave me the idea for going down the path Lobo suggested, of FTPing the files up separately - but AFTER installing everything else.
Thanks to those who help create and enhance civiCRM!

conductorchris

  • I post frequently
  • ***
  • Posts: 167
  • Karma: 9
    • Vermont Rail Action Network
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.2.7
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: Hacking install for shared server?
December 18, 2008, 11:37:07 am
Hmmm.  It seems I had followed Lobo's instructions exactly on my earlier attempt.  I didn't need to write a new xml file, as I uploaded everything the xml file mentioned, simply removing some of the items from within the civicrm folder.  The install worked but then hung on the database upgrade script.

Thanks to those who help create and enhance civiCRM!

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Hacking install for shared server?
December 18, 2008, 07:20:58 pm
Hackish approach to install Joomla - CiviCRM on shared server can be found on: http://kurund.com/blog/2008/12/12/civicrm-joomla-on-shared-hosting/

You should consider this as last option..

HTh

Kurund
Found this reply helpful? Support CiviCRM

conductorchris

  • I post frequently
  • ***
  • Posts: 167
  • Karma: 9
    • Vermont Rail Action Network
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.2.7
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: Hacking install for shared server?
December 19, 2008, 10:31:46 am
THANK YOU!  I was going in this direction, but was somewhat bumbling in the dark and probably wouldn't have made it without your instructions.
Thanks to those who help create and enhance civiCRM!

conductorchris

  • I post frequently
  • ***
  • Posts: 167
  • Karma: 9
    • Vermont Rail Action Network
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.2.7
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: Hacking install for shared server?
December 22, 2008, 10:07:53 am
The following are the files and folders I removed from the civiCRM package in order to get it small enough to work in the Joomla installer on ThinkHost shared hosting:

In the civicrm folder, within the admin folder, I took everything out, EXCEPT the install, sql and templates folders and from within the CRM folder, the core and upgrade folders.

I had earlier unzipped the whole civiCRM locally and then FTPed the whole lot up to the COM_Install folder in Administration/components.  To remove these files, I simply moved them over to a new folder, preserving the directory structure, so I wouldn't forget.

That means I removed the following directories from the civicrm folder: api, bin, most of CRM, css, drupal, extern, i, joomla, js, pacages, Report.

There is no need to modify the xml file (referencing Lobo's instructions above) because the xml file calls for writing the whole civiccrm folder and does not delineate specific files within it.

Having done this step, I can now FTP the removed files into place manually.  The go into /administrator/components/com_civicrm, whoes structure will duplicate the structure of the com_civicrm folder within the admin folder of the install package.

Thanks to those who help create and enhance civiCRM!

conductorchris

  • I post frequently
  • ***
  • Posts: 167
  • Karma: 9
    • Vermont Rail Action Network
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.2.7
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: Hacking install for shared server?
December 22, 2008, 02:11:09 pm
The above was for an upgrade.  But I still couldn't get the upgrade script to work so I gave up and am deleting all my civicrm tables and doing a fresh install and will re-import my data from backups (fortunately I hadn't done anything yet except work on my contacts list which is exported so I can re-import).

So for a new civiCRM install, I am including the following additional folders in my initial install instead of ftping them up later.
packages/data
packages/Date
packages/DB
packages/PEAR
packages/PHP
packages/PHPgettext
CRM/contact
CRM/Event
CRM/Contribute
CRM/Member
CRM/Mailing
CRM/Grant
CRM/Plege

Note that I may be including in the first installation some files I don't need to by including everything in these folders (in case you have more restrictive limits than I)

I am pleased to report that this worked and civiCRM appears to be working!! Thus ends months and months of struggle!
Thanks to those who help create and enhance civiCRM!

nibargerb

  • Guest
Re: Hacking install for shared server?
December 22, 2008, 09:22:16 pm
Thanks!  I just started to try and install on godaddy, shared hosting, and was having some problems but followed your directions and it worked perfectly.


conductorchris

  • I post frequently
  • ***
  • Posts: 167
  • Karma: 9
    • Vermont Rail Action Network
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.2.7
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: Hacking install for shared server?
December 29, 2008, 03:51:24 pm
An additional note, in case it's helpful to someone:

In order to import my contacts database (about 2,000 names), I had to split it into parts (750 or so names seemed to work.  1,400 did not) and do more than one import.
Thanks to those who help create and enhance civiCRM!

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Hacking install for shared server?
December 29, 2008, 05:52:57 pm
Chris, thanks for all the effort you've put into documenting this.

I'd be interested to know how many hours you spent in total on working out this approach, and how you balanced that against the additional cost of renting server space which would support CiviCRM's demands more easily.

Likewise, I'd be interested to hear how CiviCRM with 2000 contacts performs on Thinkhost. Does it cope all the time?

Are you exposing CiviCRM functionality to site visitors, or just internal staff?
@xurizaemon ● www.fuzion.co.nz

conductorchris

  • I post frequently
  • ***
  • Posts: 167
  • Karma: 9
    • Vermont Rail Action Network
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.2.7
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: Hacking install for shared server?
December 29, 2008, 06:53:50 pm
Well, if I'd *known* before hand what I was getting into, I may well have made different choices.  I didn't realize it might be this difficult.  And a fair amount of the time can be chalked up to learning more about servers, hosts, and so on. 

Hours in total?  Well, this time around I probably spent 3 weeks, more or less full time.  That's on the install and not the setting up which counts as administration.  And not on civiMail, which is coming.  I tried multiple approaches, spent a lot of time learning.

How did I balance this?  Well, my fledgling little organization simply cannot afford $100 a month, which seems to be the going rate for the next level of services.  Simply not an option.  Basically I wanted this, wanted to be able to use a good system like civiCRM.  I kept looking at other options, kept coming back to this.  So I put in the time.  I'm not getting paid on this.  Some additional motivation came because I thought I might find something that would make civiCRM more accessible to others, and I believe in what it can be.

Internal staff?  That's me.  I have aspirations of creating profiles for volunteers to enter and for users to update their information themselves.  So far that's just in the future.  Tonight I'm working on a newsletter sign up form, so that will be exposure to site visitors.

Thinkhost seems to do pretty well.  I've gotten a few random 500 errors, but I get that on Joomla pages from time to time.  Some functions seem a little slow, but I don't know what normal is like.  Searches seem fine.  Imports, exports, updating data, all fine.  I haven't got that far into civiCRM use.  I put my experiences up on the host review page.
Thanks to those who help create and enhance civiCRM!

nithya1

  • Guest
Re: Hacking install for shared server?
January 30, 2009, 01:00:17 pm
Hello,
    I just wanted to share my experience with installing CiviCRM 2.1.4 on Joomla 1.5.8 on a shared hosting. First I tried the regular installation method which obviously failed  :) Then I ftp-ed the files on the server and tried to install it but it was taking too much time and again didn't install.

I removed all the previously installed files. Then I freshly ftp-ed the files to the server. Then I DISABLED MY FTP just so that the server can have a little more breathing space and instantly it installed!!! It didn't even take a few seconds. I was pretty surprised but enjoyed it :)

Hope this helps someone.

Best Regards
Vivek

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Hacking install for shared server?

This forum was archived on 2017-11-26.