Forums / Install & configuration / can't install 3.7
David Wagner
Monday 17 October 2005 10:34:18 pm
Hi there.
I'm very new to eZ Publish and have only installed it twice. This most recent time I can't even get to the install screen. I continue to get:
Fatal error: Cannot redeclare class ezsys in /localhost/lib/ezutils/classes/ezsys.php on line 63
Fatal error: eZ publish did not finish it's request
I've looked all over the site and the forums, and this seems to be a common problem, but none of the fixes worked in my situation:
Apache 2.0.54 PHP 4.4.0 (CGI) MySQL (4.1)eZ Publish v3.7
I'd like to keep PHP running as a CGI if at all possible... Any recommendations on how to make this work? Thanks!
--David W.
Łukasz Serwatka
Monday 17 October 2005 11:32:49 pm
David, why you want to keep PHP running as a CGI? Switching from CGI to Apache module will probadly solve your problem. PHP in CGI mode don't understand accept-path-info, also performance is better when PHP works as module. However eZ publish works with PHP in CGI, but this is not recommend, I suspecting some PHP-Apache configuration issue in your case, but it is difficult say what exactly. Check if AcceptPathInfo is ON in httpd.conf.
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
Tuesday 18 October 2005 11:52:58 pm
Lukasz,
Thanks for the tip. I have already tried turning on AcceptPathInfo. I did, just to expirement, switch to the PHP module, and everything works fine.
However, the reason I'd prefer to keep the CGI is that I use this machine for development, and have some scripts that run PHP 4.0 and some that run PHP 5.0. With CGI, I can simply separate them into appropriate folders and create directives based on which directory they reside in.
Any other suggestions for making this work with PHP (CGI)? Any other suggestions for working with both versions of PHP?
Thanks again for the help!
Wednesday 19 October 2005 12:37:31 am
David, here you will find usefull article how to setup two different PHP versions:http://ez.no/community/articles/multiple_apache_installations_howto
I can advaice keep two separated Apache installations then use files with .php5 for example in CGI.
Thursday 20 October 2005 12:22:11 am
Thanks again for the help... thought I'd post how I ended up solving the problem. In my Apache configuration file I simply added:
<IfDefine Php4> LoadModule ...php4 module here </IfDefine Php4> <IfDefine Php5> LoadModule ...php5 module here </IfDefine Php5>
When I start Apache, I use "-D [parameter]":
apache -D Php4
or
apache -D Php5
Depending on which version I want to run, this will load the appropriate module and information.
Maybe not the most efficient method... but, works for testing.
Marko Žmak
Thursday 20 October 2005 10:25:28 am
Could someone answer a question related to this. Is it possible to use two different versions of PHP for different VirtualHosts in apache?
For example use PHP4 with:
www.site1.com
and use PHP5 for:
www.site2.com
while both site1 and site2 are on the same server, and on the same apache installations.
Can ynone also provide the apache settings for that. I have a vague idea how to do it but I'm not sure if it would work.
-- Nothing is impossible. Not if you can imagine it! Hubert Farnsworth