Memory Exhausting During Installaton

Author Message

Mike Borozdin

Monday 07 June 2010 12:52:28 am

Hi,

I have problems installing eZ Publish 4.30, every time I press the "Fine Tune" button or the "Install" one, I get a memory exhaustion error. But I've increased the amount of available memory to PHP from 128M to 512M and still get the same error.

Christian Rößler

Monday 07 June 2010 1:13:35 am

Hy and welcome to eZ-Community :-)

After changing php-memory-limits or doing other changes to the php.ini, make sure to reload/restart your webserver to make changes taking effect.

Speaking of the php.ini, what ini did you modify? The cli or the apache one? What webserver/system did you use (apache on linux or iis on windoze) ?

Such error is very well known here, so searching for "php memory limit" should point you to several good threads too.

cheers,

chris

Hannover, Germany
eZ-Certified http://auth.ez.no/certification/verify/395613

Mike Borozdin

Monday 07 June 2010 2:20:10 am

Hi Chris,

Yes, I did restart my server after modifying php.ini. I modified the CLI one, I think (the one that is in the PHP folder).

My setup:

Windows 7

Apache 2.2

PHP 5.2.3

Christian Rößler

Monday 07 June 2010 3:06:59 am

hehe, modifiying the CLI php.ini is wrong :-)

Cli php.ini is for your commandline based php (scripts, cronjobs, ...)
There should be another php.ini which is used by the webserver. Php (and those websites as ezpublish) runs as a sort of plugin in the webserver. Thus the webserver needs to have a php.ini too.
In linux/debian you should have the following files:

/etc/php5/apache/php.ini is the one you need to edit for ezpublish.
/etc/php5/cli/php.ini is the one for cronjobs, and common commandline-php scripts.

I don't know the locations on windows7 and IIS.

My guess is you hit the wroong php.ini.
Utilize a simple php-test-script using "phpinfo();" (google it if you need help) to determine the exact location of the php.ini used by windows-webserver.

chris

Hannover, Germany
eZ-Certified http://auth.ez.no/certification/verify/395613

Mike Borozdin

Monday 07 June 2010 4:42:03 am

Chris,

It wasn't the CLI php.ini, because when I run phpinfo() it showed me I had 512M of memory allocated to PHP.

Christian Rößler

Monday 07 June 2010 8:25:40 am

mmmhhh,

did you manage to put "phpinfo()" into a php file and called this php-file in your browser?

My guess would be that the vhost configured in IIS did not load the correct/corresponding php-ini. This in turn loads the default php-settings which is not sufficient for eZPublish.

My solution would be:

  • view php-info output via a browser, not cli
  • get the location of the loaded ini-file
  • edit this ini-file
  • reload webserver
  • check settings again
  • do loop until correct

As I dont have any experience with combination iis/php/ezpublish/windows i cannot help any further at this point. sorry mike.

--
Chris

Hannover, Germany
eZ-Certified http://auth.ez.no/certification/verify/395613

Mike Borozdin

Tuesday 08 June 2010 12:32:31 am

Chris,

Yes, it is in the browser. I've never used PHP CLI, sorry for confusion. And I also wrote above that I was using Apache, not IIS.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 02:05:55
Script start
Timing: Jan 18 2025 02:05:55
Module start 'layout'
Timing: Jan 18 2025 02:05:55
Module start 'content'
Timing: Jan 18 2025 02:05:56
Module end 'content'
Timing: Jan 18 2025 02:05:56
Script end

Main resources:

Total runtime0.7708 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.0391152.6406
Module start 'layout' 0.00590.0031 740.679739.4766
Module start 'content' 0.00890.7604 780.1563544.5781
Module end 'content' 0.76930.0014 1,324.734416.1406
Script end 0.7707  1,340.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4114160.0002
Check MTime0.00130.1636160.0001
Mysql Total
Database connection0.00050.066710.0005
Mysqli_queries0.705691.5497690.0102
Looping result0.00070.0844670.0000
Template Total0.738695.820.3693
Template load0.00200.255320.0010
Template processing0.736695.566720.3683
Template load and register function0.00020.024010.0002
states
state_id_array0.00060.078810.0006
state_identifier_array0.00070.092020.0004
Override
Cache load0.00170.2236510.0000
Sytem overhead
Fetch class attribute can translate value0.00060.075920.0003
Fetch class attribute name0.00100.129670.0001
XML
Image XML parsing0.00020.028320.0001
class_abstraction
Instantiating content class attribute0.00000.001770.0000
General
dbfile0.00260.3435100.0003
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs