STRANGE installation error -"Insufficient memory detected"

STRANGE installation error -"Insufficient memory detected"

by Hanan Cohen -
Number of replies: 5

Moodle 2.1.5+ (Build: 20120323)

Installation files "out of the zip" - no changes made to them.

In php.ini: memory_limit = 128M

I have created a seperate PHP file with the function get_real_size() (The link will take you to the function source code)

The results are:

php memory_limit 134,217,728
environment.xml memory_limit 41,943,040

Clearly the server memory limit is higher than the environment memory limit.

The current results of phpinfo() are in this link moodle-28-3-2012-info-php.htm

Does anyone have a clue on what's wrong and what can be done so I can continue with the installation?

Maybe I can comment out some code and bypass the memory test which obviousely has a bug?

Thanks!

Hanan Cohen - Webmaster

Bloomfield Science Museum Jerusalem

Average of ratings: -
In reply to Hanan Cohen

Re: STRANGE installation error -"Insufficient memory detected"

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Can we get some information about the server you are installing on, PHP version etc.?

In reply to Howard Miller

Re: STRANGE installation error -"Insufficient memory detected"

by Hanan Cohen -

PHP Version 5.3.10

Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635

Memory: 1031476k/1048576k available (2199k kernel code, 16232k reserved, 914k data, 232k init, 131008k highmem)

Any other info that might help you?

Thanks!

In reply to Hanan Cohen

Re: STRANGE installation error -"Insufficient memory detected"

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Yes... which operating system is this?

I must admit I'm playing for time a bit. Hoping it's something obscure. Is this hosted somewhere or is it your own server?

I'm just looking for a clue as this doesn't seem to be a common issue.
In reply to Hanan Cohen

Re: STRANGE installation error -"Insufficient memory detected"

by Hanan Cohen -

For future reference.

The results of phpinfo() are not reliable.

Also, it seems that Moodle does not get the memory_limit from the local php.ini

I have paid a Moodle professional to find and fix the problem.

He didn't touch any parameters in php.ini, nor in the local Moodle directory nor the global one.

He went straight to the WHM control panel and in the PHP Configuration Editor he changed the memory_limit parameter to 512M

This fixed the problem.

In reply to Hanan Cohen

Re: STRANGE installation error -"Insufficient memory detected"

by Guillermo Madero -

Hi Hanan,

The WHM control panel is just an interface for many server tasks (like configuring PHP settings). This means that he actually modified the php.ini memory_limit parameter (not "directly", but through the control panel).