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 »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • PHP Memory Alloction Discrepancy
Pages: [1]

Author Topic: PHP Memory Alloction Discrepancy  (Read 1447 times)

Shai

  • I post frequently
  • ***
  • Posts: 202
  • Karma: 8
    • Content2zero
  • CiviCRM version: 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 7
  • MySQL version: 5.5.x
  • PHP version: 5.3.x, 5.4.x
PHP Memory Alloction Discrepancy
April 16, 2009, 11:16:49 am
I just installed Civi on a Drupal 6 install.

I have 128 mb allocated via a php.ini file at the public root. Drupal "Status" report shows 128 mb allocated. But with Civi I got an installation warning, "You've got only 32 mb of ram allocated.

Which is telling the truth, civi or drupal?

Thanks,

Shai
Don't miss out! Sign up now for free expert advice on CiviCRM's new StackExchange help site.

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: PHP Memory Alloction Discrepancy
April 16, 2009, 12:02:38 pm

want to add some debugging code to: install/index.php, function getPHPMemory (line 328) and see what/why its returning only 32MB?

you might also want to add a phpinfo( ); call there and check things. Maybe a different php.ini is being read for drupal vs the install index? or some mods being made via .htaccess?

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

Shai

  • I post frequently
  • ***
  • Posts: 202
  • Karma: 8
    • Content2zero
  • CiviCRM version: 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 7
  • MySQL version: 5.5.x
  • PHP version: 5.3.x, 5.4.x
Re: PHP Memory Alloction Discrepancy
April 16, 2009, 12:56:05 pm
If I run that page again I get, "CiviCRM is already installed."
Don't miss out! Sign up now for free expert advice on CiviCRM's new StackExchange help site.

Shai

  • I post frequently
  • ***
  • Posts: 202
  • Karma: 8
    • Content2zero
  • CiviCRM version: 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 7
  • MySQL version: 5.5.x
  • PHP version: 5.3.x, 5.4.x
Re: PHP Memory Alloction Discrepancy
April 16, 2009, 01:13:56 pm
I put another copy of the php.ini file with the higher memory setting into the /install directory and now a phpinfo() report shows 128 MB available. But it seems weird that different paths at the site would have access to different amounts of php memory.
Don't miss out! Sign up now for free expert advice on CiviCRM's new StackExchange help site.

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: PHP Memory Alloction Discrepancy
April 16, 2009, 01:24:15 pm

most likely your default php.ini is still set to 32M. you might want to locate it and fix it there so all php scripts get the higher limit

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

Shai

  • I post frequently
  • ***
  • Posts: 202
  • Karma: 8
    • Content2zero
  • CiviCRM version: 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 7
  • MySQL version: 5.5.x
  • PHP version: 5.3.x, 5.4.x
Re: PHP Memory Alloction Discrepancy
April 16, 2009, 09:29:58 pm
 :) Thanks. Contacted host. Machine is running suPHP and requires the php.ini at public root level and the following in the .htaccess file: suPHP_ConfigPath /home/accountname/public_html

All is good on the memory front.
Don't miss out! Sign up now for free expert advice on CiviCRM's new StackExchange help site.

hallman

  • I post occasionally
  • **
  • Posts: 87
  • Karma: 10
Re: PHP Memory Alloction Discrepancy
April 19, 2009, 10:53:59 am
I installed CiviCRM 2.2.2 this morning and had memory problems. I put memory_limit = 64M in php.ini in my public_html directory. That didn't work. I put ini_set('memory_limit', '64M'); in sites/default/settings.php. That didn't work. Running phpinfo.php showed 64M, but the installer still said I had only 28M.

I put the php memory info in every directory, following the instructions at http://forum.civicrm.org/index.php/topic,1855.msg20410.html#msg20410 and that worked. The installer finally saw 64M.


Judy Hallman

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • PHP Memory Alloction Discrepancy

This forum was archived on 2017-11-26.