If I install PHP5 from centosplus it will replace PHP4, is this correct? Or is there a way to have it installed in parallel? I know I can't run both modules at the same time, but I'd prefer having them installed in parallel, so I can switch back/between easier.
When I try updating I get a dependency warning from php-eaccelerator (from dag repo) - can I ignore that? Searching thru my list archive I find it mentioned several times that eaccelerator works with PHP5, but it's not clear if and what package.
Thanks.
Kai
On Saturday 13 May 2006 18:31, Kai Schaetzl wrote:
If I install PHP5 from centosplus it will replace PHP4, is this correct? Or is there a way to have it installed in parallel? I know I can't run both modules at the same time, but I'd prefer having them installed in parallel, so I can switch back/between easier.
When I try updating I get a dependency warning from php-eaccelerator (from dag repo) - can I ignore that? Searching thru my list archive I find it mentioned several times that eaccelerator works with PHP5, but it's not clear if and what package.
There are quite a few people out there that package php in one form or another but I'm not aware of anyone who does php4 and 5 at the same time.
It is however pretty easy to do that yourself. Just compile from source, make install and then create a config file. Make sure your extensions don't conflict (i.e. php4 for all php4 files and leave php5 with the standard .php extension)...
If this is development you can also simply switch back and forth between the two. That's what I do - wrote a simple script that takes 4 or 5 as parameter and then uninstalls php, installs the apropriate rpms from a directory on my local box and then puts the config file in place. Takes about 15 seconds and works well enough for me.
Peter.
Peter Arremann wrote on Sat, 13 May 2006 19:12:28 -0400:
It is however pretty easy to do that yourself. Just compile from source, make install and then create a config file. Make sure your extensions don't conflict (i.e. php4 for all php4 files and leave php5 with the standard .php extension)...
You mean, it *is* possible to have 4 and 5 side-by-side with the same apache as modules? I thought I read somewhere that this isn't possible, at least not with the modules, one would need to run one of them as CGI.
If this is development you can also simply switch back and forth between the two. That's what I do - wrote a simple script that takes 4 or 5 as parameter and then uninstalls php, installs the apropriate rpms from a directory on my local box and then puts the config file in place. Takes about 15 seconds and works well enough for me.
It's not for development, it's for a site I sponsor and I thought we try and see if the site works on PHP5 and just jump right to PHP5. I wanted an easy way to switch back to PHP4/between the two until any problems are sorted out and we can stay on PHP5. Installing/removing the PHP4 or 5 package-set may just provide the same, I agree.
Kai
--- Kai Schaetzl maillists@conactive.com wrote:
When I try updating I get a dependency warning from php-eaccelerator (from dag repo) - can I ignore that? Searching thru my list archive I find it mentioned several times that eaccelerator works with PHP5, but it's not clear if and what package.
remove the php-eaccelerator for php-4.3.9 and build one for php-5.0.4. php-eaccelerator does not build on php 5.1.x only 5.0.x see this post (http://lists.centos.org/pipermail/centos/2006-May/064241.html) for details. The maintainer for php 5.0.4 in CentOSplus should build it as its an extension that works without problems.
__________________________________________________ Improve the mailing list by performing a simple search before posting and reading the FAQ/etiquette. Protect the integrity of your installation with the yum plugins.
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Mike Stankovic wrote on Mon, 15 May 2006 11:18:58 -0700 (PDT):
remove the php-eaccelerator for php-4.3.9 and build one for php-5.0.4. php-eaccelerator does not build on php 5.1.x only 5.0.x see this post (http://lists.centos.org/pipermail/centos/2006-May/064241.html) for details. The maintainer for php 5.0.4 in CentOSplus should build it as its an extension that works without problems.
Well, it's not even available for PHP4 in the CentOS repo, so there's probably no point adding it to centosplus. I got my package from rpmforge, but that's for PHP4.
Yeah, I had read that message and got the impression either the one coming with CentOS works with PHP5 as well or an rpm might be available from somewhere. I'll try first without eaccelerator, if PHP5 doesn't work out for us I don't need it for PHP5, anyway ;-)
Thanks for the tips!
Kai