inadmissible

Running eZ Publish 4.1.3 on PHP 5.1.2

July 15th, 2009

Although it’s certainly not a recommended practice, I’ll share with you how to make eZ Publish 4.1.3 run on PHP 5.1.2.

eZ Publish 4.1 requires eZ Components 2008.2, which requires PHP 5.2.1. If you are using the eZ Components installed through PEAR, upgrading them will fail due to the PHP version requirement not being met. However, you can circumvent this by using the -n option, which turns off dependency checking.

pear upgrade -n ezc/Base
pear upgrade -n ezc/ConsoleTools

Since eZ Publish 4.1 the Archive, SystemInformation and WebDAV Components are used as well, so we need to install them, again with the -n option.

pear install -n ezc/Archive
pear install -n ezc/SystemInformation
pear install -n ezc/Webdav

When going through the eZ Publish setup wizard now, you will get an error from PHP that the method ReflectionClass::newInstanceArgs is not defined. Unfortunately, this method was only added in PHP 5.1.3, thus it does not exist in PHP 5.1.2. A quick and dirty patch I wrote provides a workaround, allowing to instantiate handler classes with up to 7 arguments. You can download the patch here, put it in the eZ Publish root directory and apply it as follows:

patch -u -p1 lib/ezutils/classes/ezextension.php ezpublish413_php512_reflection_newinstanceargs.diff

There are probably more areas where eZ Publish fails on the unsupported PHP 5.1.2, but this at least gets you pass the setup wizard.

Entry Filed under: eZ Publish

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

July 2009
M T W T F S S
« May   Nov »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Most Recent Posts


payday loans unsecured payday loans credit card offers no fax cash advances personal loans consolidate your debt personal money loans no fax payday loans instant personal loans personal finance loans bad credit credit cards payday loan with no fax home mortgage refinance loans overnight cash loans 1000 payday loans cash advances cash advance payday loans payday cash loans fast cash no credit check loans till payday credit card debt consolidation personal loans for people with bad credit fast cash payday loans home mortgage refinancing credit cards quick cash loans overnight cash advance unsecured loans debt management services federal student loan consolidation mortgage loans refinance home loans bad credit loans instant cash advances same day payday loans debt consolidation no credit check student loans mortgage banking need money fast unsecured personal loans refinance home equity loans home equity loans apply for a credit card same day cash advances debt consolidation loans government student loans credit card application home mortgage loans faxless payday loans quick payday loans no credit check personal loans student loans refinance mortgages home mortgage refinance low interest payday loans bad credit unsecured loans debt management free debt consultation same day payday loans bad credit mortgage refinance student loan debt consolidation no credit check payday loans no faxing payday loans emergency payday loans personal loan lenders fast personal loans debt collection faxless cash advance bad credit report repair no fax cash advance fast cash advances mortgage refinance quick personal loans credit debt help 24 hour payday loans guaranteed online personal loans bad credit personal loans fast cash advance payday loans mortgage refinancing home loan lenders high risk personal loans guaranteed personal loans low interest personal loans instant payday loans unsecured debt consolidation loans