Help needed. Did somebody UPGRADE to PHP5 ?

Author Message

Ahmed El Safty

Tuesday 14 August 2007 6:50:13 am

Hi Guys,

I have some big problem and any fast help would be appreciated. The hosting company upgraded to PHP5 on the weekend (I did not know that before) and my boss news site crashed. The one responsible for the hosting made a work-around to parse all PHP5 to PHP4. That worked, until I cleared the cache and realized that all pictures could not be scaled anymore. So my site is pretty screwed up right now and I took it offline.

The only chance left is to upgrade to PHP5. I already checked the Forum, and there is this unofficial port in the SVN directory. I would use that, however how do I uprade my site to it? I mean I have so much content, the work of a year is in the database, and I want to upgrade to the PHP5 port, and I am kinda scared...

So, is there any one who upgraded to the PHP5 port. Any tips? Does the normal upgrade routine apply here, like if I followed the instructions from ezPublish Documentation, would they work too with the Port?

I really would appreciate any help, for this site is in my responsibitly and the guy who is responsibiliy screwed me over, he just told me.. deal with it. its PHP5 now... and my boss is pretty impatient..

Sorry for bothering you...

André R.

Tuesday 14 August 2007 8:41:37 am

The newest stable version of the php5 port is located here:
http://pubsvn.ez.no/nextgen_php5/stable/3.9/

This 3.9 version is 3.9.2 currently.

1. extract the version you want into a new host
2. copy the var content (but delete the content of the cache folders )
3. copy setting, your design and extensions
4. if you have copied any extensions search true the php files in them for '&=' and 'function &FunctionName' and remove '&'
5. make a copy of the db and setup the new install with the new db copy
6. do the upgrade scripts if its a different version.

Hopefully your new php5 site is up now :)
Notice: #4: you only need to remove the once that return objects.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Ahmed El Safty

Wednesday 15 August 2007 3:47:47 am

Thanks André.. I will try it and let you know..

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 19 2025 00:23:26
Script start
Timing: Jan 19 2025 00:23:26
Module start 'layout'
Timing: Jan 19 2025 00:23:26
Module start 'content'
Timing: Jan 19 2025 00:23:27
Module end 'content'
Timing: Jan 19 2025 00:23:27
Script end

Main resources:

Total runtime0.7942 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0083 588.1484152.6406
Module start 'layout' 0.00830.0041 740.789139.4766
Module start 'content' 0.01240.7805 780.2656537.2344
Module end 'content' 0.79290.0012 1,317.500012.1250
Script end 0.7942  1,329.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4249160.0002
Check MTime0.00130.1639160.0001
Mysql Total
Database connection0.00080.106110.0008
Mysqli_queries0.739093.0472570.0130
Looping result0.00040.0560550.0000
Template Total0.755295.120.3776
Template load0.00230.288120.0011
Template processing0.752994.803420.3765
Template load and register function0.00030.031710.0003
states
state_id_array0.00080.102110.0008
state_identifier_array0.00110.140020.0006
Override
Cache load0.00180.2273240.0001
Sytem overhead
Fetch class attribute can translate value0.00060.073920.0003
Fetch class attribute name0.00090.111840.0002
XML
Image XML parsing0.00070.087420.0003
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00260.3222170.0002
String conversion0.00000.001240.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs