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