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) »
  • CiviCRM Installer Memory Allocated Check
Pages: [1]

Author Topic: CiviCRM Installer Memory Allocated Check  (Read 4435 times)

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
CiviCRM Installer Memory Allocated Check
June 18, 2008, 10:34:14 am
Hi,

I am doing a new CiviCRM installation of 2.0 on a drupal site. In running through the installer, it continues to tell me:

Memory allocated (PHP config option 'memory_limit')   CiviCRM needs a minimum of 32M allocated to PHP, but recommends 64M. You only have 32M allocated

However, my memory is set at 64M and I have verified this in phpinfo:

memory_limit   64M   64M

Originally it was only at 32M, but I increased it, verified it, and yet the installer is not noticing. I tried restarting the installer instead of just rechecking requirements, but it still gets it wrong.

Do you think this is a bug? What is the installer running to get this number?

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: CiviCRM Installer Memory Allocated Check
June 19, 2008, 03:26:54 am
Quote from: emilyf on June 18, 2008, 10:34:14 am
In running through the installer, it continues to tell me:

Memory allocated (PHP config option 'memory_limit')   CiviCRM needs a minimum of 32M allocated to PHP, but recommends 64M. You only have 32M allocated

However, my memory is set at 64M and I have verified this in phpinfo:

memory_limit   64M   64M

Originally it was only at 32M, but I increased it, verified it, and yet the installer is not noticing. I tried restarting the installer instead of just rechecking requirements, but it still gets it wrong.

Do you think this is a bug? What is the installer running to get this number?

According to drupal/install/index.php, the installer uses ini_get('memory_limit') to check the limit, and this should work.

if memory_limit is reported as 64M in phpinfo(), but the installer sees 32M, then maybe the PHP is being run in a different context? Is there any .htaccess file that could impact this, for example?

Can you put the file with the phpinfo() call into the drupal/install directory and make sure it reports 64M when in there?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

onopoc

  • Guest
Re: CiviCRM Installer Memory Allocated Check
October 03, 2008, 10:10:10 pm
Add the following line to your .htaccess file in the Drupal root.
Code: [Select]
php_value memory_limit 64M
Attached file 'htaccess[AFTER].txt' is an example of .htaccess file for Drupal 6.4 & PHP 5, Apache 1 and 2. I couldn't upload the file '.htaccess' to this comment so I renamed it 'htaccess[AFTER].txt'.

More information and other solutions at: http://drupal.org/node/31819

Erich Schulz

  • I post frequently
  • ***
  • Posts: 142
  • Karma: 5
    • When no-one understands what you are going on about its time to start a blog
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.somthing
  • PHP version: 5.3.3
Re: CiviCRM Installer Memory Allocated Check
September 27, 2010, 06:34:28 pm
thanks this worked at treat, it would be nice if the installer gave you the instructions to fix the problem, or maybe a link

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

This forum was archived on 2017-11-26.