A community in which webmasters can ask for help with topics such as PHP coding , MySQL , IT jobs, web design, IT security.
Current location:homephp forumphp talk in 2008 yearHow to make php5 on a machine running php4, without breaking anything - page 1
User InfoPosts
How to make php5 on a machine running php4, without breaking anything#1
I know with python and a couple other languages there is a way to safely make install a newer generational version of a language onto a machine, but after digging through PHP5's configure & makefile the only thing I've seen is the prefix dir option and the ini scan path.

Ideally I'd like php5 to have its own lib/bin subdirectories in /usr/local and then I can just put php5 after php4 in the path or make a symbolic link from the php5 binaries to php5-cli, php5-cgi, etc.

Also, am I missing anything dramatically bad here, the server in question is a legacy application server that's still somewhat busy and is due to be deprecated by June of 2009 but in the meantime the plan is to start updating parts with php5 code.

Machine states:
CENTOS 5
PHP 4 was built from a source RPM outside of yum's control

Most of php4 is in ambiguous directories:
/usr/{include,lib}/php

posted date: 2008-12-15 09:41:00


Re: How to make php5 on a machine running php4, without breaking anything#2
I had made out the solution of this problem. click to view my topic...

hope that hepls.

posted date: 2008-12-15 09:41:01


Re: How to make php5 on a machine running php4, without breaking anything#3
The cli version should be easyconfigure --prefix=/usr/local/php5make install-cliIt's not possible to run PHP4 and PHP5 as module together in one Apache server.But is possible to run php version X as module and version Y as cgi. Its also possible to run both as cgi.I found these walkthroughs:Setting up PHP5 in parallel with PHP4Configure Apache to work with PHP4 and PHP5More google results

posted date: 2008-12-15 10:41:00


Re: How to make php5 on a machine running php4, without breaking anything#4
Here's a pretty detailed explanation on how to do this on Gentoo with some tips to watch out for.link textAnd here's another one for good measurelink text

posted date: 2008-12-15 11:04:00


Re: How to make php5 on a machine running php4, without breaking anything#5
Actually it is possible to run both as modules on Apache, I'll have to dig up the recipe I wrote 2-3 years ago on how to do it but the trick was to set the handler per vhost. It worked pretty much flawless.

posted date: 2008-12-15 11:15:00


Re: How to make php5 on a machine running php4, without breaking anything#6
The only solutions I can find are phpX as module and phpY as cgi or both as cgi.

posted date: 2008-12-15 11:49:00


Re: How to make php5 on a machine running php4, without breaking anything#7
Last time I tried to install PHP5 parallel to PHP4, it killed the PEAR installation. :-(

posted date: 2009-02-18 00:21:00


Re: How to make php5 on a machine running php4, without breaking anything#8
The link for Gentoo seems to be dead, please update your answer.

posted date: 2014-01-23 10:58:00


select page: « 1 »
Copyright ©2008-2017 www.momige.com, all rights reserved.