Forums / Install & configuration / PHP timeout during install

PHP timeout during install

Author Message

paul bolger

Wednesday 30 May 2007 4:55:03 pm

I've been trying to do a local install of 3.9.2 (mostly so I can take a look at how the scheduled publish/unpublish has been implemented) and I keep getting a timeout after selecting the language. I've tried changing php.ini, to no effect. After getting 3.9.2 to install on a home machine (which doesn't have a dirty big firewall/proxy in front of it) I think the problem is that the 3.9.2 installer now fails unless it can download the packages. And it doesn't tell you why.

If this is the case this really needs addressing quickly. Nothing tells a potential user to move on and try the next CMS on their list better than a failed install with no explanation.

Paul Bolger

Greg McAvoy-Jensen

Wednesday 30 May 2007 9:29:59 pm

How much memory is allotted to PHP? If you haven't, you might check using phpinfo to be sure your settings are effective.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

paul bolger

Thursday 31 May 2007 12:32:54 am

I tried changing it to 200mb, and it didn't seem to make any difference. The machine on which the install was finally successful couldn't get past that stage either until it had a connection.

Paul Bolger

Ɓukasz Serwatka

Thursday 31 May 2007 1:48:34 am

Hi Paul,

You can download packages from ez.no and try manually upload them. Try enabled debug output in settings/site.ini for installation process to see possible errors.

Packages:
http://ez.no/download/ez_publish/ez_publish_3_stable_releases/3_9/packages/3_9_2

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

paul bolger

Thursday 31 May 2007 4:39:24 pm

Hi Lukasz

The problem was that the installation was hanging before it got to the 'upload packages manually' page. I've fiddled with my connection and managed to get it to go that far, but it still can't actually download the packages.

It'd be a lot friendlier if you could just download the packages as a zip file before starting the process and select 'local install'.

Paul Bolger

je le

Friday 01 June 2007 12:31:26 am

maybe because ez take more than 30sec to install. by default php end after 30sec per script. change in your php.ini (or .htaccess)

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

(for me that solved "my" timeout issue)

Bruce Morrison

Wednesday 06 June 2007 8:13:59 pm

Hi Paul & Lukasz

I suspect that the timeout issue occurs if the instalation cannot reach the external package site http://packages.ez.no/

The URL is defined in settings/packages.ini

[RepositorySettings]
RepositoryDirectory=packages
# URL where eZ publish setup wizard will fetch packages from
# If you want to use the old packages which were available in
# versions prior to 3.9 use the following URL instead:
# http://packages.ez.no/ezpublish/3.9legacypackages
RemotePackagesIndexURL=http://packages.ez.no/ezpublish/3.9/3.9.2

Removing the URL "RemotePackagesIndexURL=" should solve the timeout issue on systems that do not have internet access. Though you do end up with an error message:

Error

Retreiving remote site packages list failed. You may upload packages manually.

Remote repository URL:

I guess it's then a matter of being able to add them manually.

If you are behind a proxy you can set the proxy settings in site.ini prior to starting instalation:

[ProxySettings]
# If an user wants to use proxy in linkcheck.php/rssimport.php or downloading site packages in "setup wizard".
# If empty proxy will not be used.
# Example:  http://<host>:<port>
ProxyServer=
User=
Password=

Maybe usrs should be asked if they are behind a proxy or if they don't net access early in the setup wizard.

All in all the eZStepSiteTypes::downloadFile method in kernel/setup/steps/ezstep_site_types.php could be made more robust to handle this issues.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

eZ debug

Timing: Jan 18 2025 18:16:17
Script start
Timing: Jan 18 2025 18:16:17
Module start 'content'
Timing: Jan 18 2025 18:16:18
Module end 'content'
Timing: Jan 18 2025 18:16:18
Script end

Main resources:

Total runtime0.9400 sec
Peak memory usage4,096.0000 KB
Database Queries212

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0128 587.8125180.8281
Module start 'content' 0.01280.7106 768.6406725.2734
Module end 'content' 0.72340.2165 1,493.9141340.4609
Script end 0.9399  1,834.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00510.5465210.0002
Check MTime0.00170.1835210.0001
Mysql Total
Database connection0.00190.205210.0019
Mysqli_queries0.828788.16062120.0039
Looping result0.00260.28062100.0000
Template Total0.902596.020.4512
Template load0.00250.261620.0012
Template processing0.900095.742720.4500
Template load and register function0.00010.012110.0001
states
state_id_array0.00080.089310.0008
state_identifier_array0.00140.153020.0007
Override
Cache load0.00220.2308440.0000
Sytem overhead
Fetch class attribute can translate value0.00170.177760.0003
Fetch class attribute name0.00160.1737110.0001
XML
Image XML parsing0.00550.588560.0009
class_abstraction
Instantiating content class attribute0.00000.0027130.0000
General
dbfile0.00550.5849490.0001
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 34
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs