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) »
  • Help error on install
Pages: [1] 2

Author Topic: Help error on install  (Read 10805 times)

uhoh7

  • Guest
Help error on install
January 11, 2008, 11:45:20 pm

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home/whiteba1/public_html/joomla/includes/domit/xml_domit_lite_parser.php on line 135

using joomla 1.x (not 1.5)
extracted from home directory
com-civicrm created (under /home/whiteba1/ , outside public_html)
joomla install from directory-- i type it in: /home/whiteba1/com_civicrm
press install
get the above error

host is bluehost.com
I know others are using civicrm on this host

thank you in advance

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: Help error on install
January 11, 2008, 11:53:24 pm
Try adding this

php_value memory_limit 64M

to your .htaccess file in /public_html. This file must not have .txt and must start with the full stop “.” .


uhoh7

  • Guest
Re: Help error on install
January 12, 2008, 12:34:25 am
cannot thank you enough for your prompt reply

i do not have a .htaccess in public_html OR I SHOULD SAY: in my file manager (cPanel) search shows that I should have one there, but when I look it is not shown.

i do have a php.ini, which I have set to:

max_execution_time = 600     ; Maximum execution time of each script, in seconds
memory_limit = 64M         ; Maximum amount of memory a script may consume (8MB)

bluehost's instruction re the php are as follows:

;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Bluehost Considerations ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;
; If you would like to change the PHP environment for any PHP files
; in your account, make the changes to this file.  Then copy this file to
; all directories, including subdirectories, that have PHP files in them.
;
; NOTE: If you do not copy this file to all directories and subdirectories
; with PHP files, your changes here will not affect those files in other
; directories.


I have placed this file in my public_html and my /joomla folder

perhaps I need to place it in other directories as well?

again thank you so much
« Last Edit: January 12, 2008, 12:46:29 am by uhoh7 »

claudian

  • Administrator
  • I’m new here
  • *****
  • Posts: 17
  • Karma: 2
Re: Help error on install
January 12, 2008, 02:38:17 am
Increase the memory settings in civicrm.settings and check, we had an similar issue on bluehost and this solved it.

Claudian

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: Help error on install
January 12, 2008, 07:56:08 am
uhoh7 -
I user Bluehost too, and you're on the right track. The php.ini file you have found and edited only overrides the default settings for the folder(s) it actually resides in.

On the Bluehost knowledgebase, they provide guidance on how to easily copy that file throughout your whole site:

Create a file called "copyphpini.php" and place the following text in it:
Code: [Select]
<pre><?php system("find * -type d|xargs -i cp --verbose php.ini {}/."); ?></pre>COMPLETE!
Now upload it to your public_html directory, which should be the directory also containing your edited version of the php.ini file.

Open your web browser and go to: www.yoursite.com/copyphpini.php

That script will then copy your edited php.ini file throughout your entire site, ensuring that whatever pages need the modified php settings will have them.

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

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: Help error on install
January 12, 2008, 09:19:04 am
I believe the .htaccess method is recursive. Saves a lot of hassel and is just a text file to create...

uhoh7

  • Guest
Re: Help error on install
January 12, 2008, 10:33:06 am
you guys are awesome---no don't have it working yet, hehe.

but I have now found my .htaccess

it is currently blank

I will try pasting in the above code first and see what happens.

PS Brian--

do you remember how you changed your php.ini?

best, charlie

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: Help error on install
January 12, 2008, 12:12:37 pm
I changed my php.ini to similar settings that you indicated earlier. memor_limit and max_execution_time are the two most important settings.

I didn't have much success with the .htaccess route. I'm not sure if that's unique to the Bluehost server setup, or if I just didn't configure it correctly. That's why I've done it the php.ini route. I have about 4-5 sites on Bluehost running CiviCRM, so I can vouch for it working this way.

If you do the .htaccess route, I recommend using the htaccess.txt file that is included in the Joomla installation (just rename it to .htaccess). Then go into Joomla global config and you can change the SEF settings (if you want to).

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

uhoh7

  • Guest
Re: Help error on install
January 12, 2008, 07:48:01 pm
well first I tried the .htaccess route and the site went down with a server error.

I probably did not have the right stuff typed in there.

cleared it and the site came back---whew!

then I went brian's route

YES!!!!!!!!!!

civicrm is now installed.

Now I just have to learn how to use it, hehe.

Thank you so much Brian.

site is under cons, but take a look if you have a sec

http://www.whitebark.org/joomla/

should I leave those php.ini files in place? it made a bunch of them.

charlie

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: Help error on install
January 12, 2008, 09:27:54 pm
No prob. Looks good.
Yes, you'll want to leave those php.ini files in place. You *may* be able to run off the default settings, but CiviCRM definitely feels happier with the higher levels for those two settings.
-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

penguinhead

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
Re: Help error on install
January 13, 2008, 03:18:18 am
Quote from: speleo on January 12, 2008, 09:19:04 am
I believe the .htaccess method is recursive. Saves a lot of hassel and is just a text file to create...

Hi Brian
I have followed all the instructions above, but what seems to have happened is that the 'copyphpini.php' file has been copied to the subdirectories, not the php.ini file!

Does that make any sense?

regards Mike

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: Help error on install
January 18, 2008, 10:48:44 am
The line of code quoted previously references the php.ini file as the file to be replicated throughout the file structure. Make sure your copyphpini.php file has that exact line of code, and that it resides in the root folder with your customized php.ini file.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

penguinhead

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
Re: Help error on install
January 22, 2008, 02:28:07 am
Thx Brian

It still doesnt seem to be working. I run the file from the browser, and it displays 'COMPLETE!', but the php.ini file doesn't copy to any of the other directories. Is this a restriction of my site config or is there any way to make it copy?

thx again Mike

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: Help error on install
January 23, 2008, 05:55:36 am
I noticed your other post yesterday stating that you're working on Siteground servers. I know that Siteground limits some of the php settings you have control over. It's possible they have a preferred way for handling those overrides rather than through a locally stored php.ini file. I haven't used Siteground in a while, but you should check out their knowledgebase and see what they say about php default overrides.
-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

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: Help error on install
January 23, 2008, 07:25:07 am
here's the syntax for .htaccess

php_value memory_limit 64M
php_value register_globals off
php_value max_execution_time 60

I've no idea why your server crashed. Maybe it was too much memory allocation?

This approach works well for me and is just a single file in public_html

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

This forum was archived on 2017-11-26.