473,386 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Running PHP 4 & PHP 5 together as modules

Folks,

We would like to upgrade our servers to PHP 5 and PHP 4
together as modules on the same server (not as cgi, not passing
requests to another server). I did some extensive searching on
this and we ran some tests over a year ago and did not find a
solution (other than proxy forwarding to a PHP 5 configured server).

When PHP went to version 4 from version 3, it was possible
to run both at the same time, and have users select by file
extension, i.e. .php4,.php5. It seems a naming conflict within
the code itself prevents that from working with PHP 5. Has anyone
discovered a way to do this?

We are running apache 1.3.x on RHEL 4.

Thanks!
--
John
__________________________________________________ _________________
John Murtari Software Workshop Inc.
jmurtari@following domain 315.635-1968(x-211) "TheBook.Com" (TM)
http://thebook.com/
Apr 3 '07 #1
7 2610

"John Murtari" <jm******@thebook.comwrote in message
news:x7************@hammer.thebook.com...
Folks,

We would like to upgrade our servers to PHP 5 and PHP 4
together as modules on the same server (not as cgi, not passing
requests to another server). I did some extensive searching on
this and we ran some tests over a year ago and did not find a
solution (other than proxy forwarding to a PHP 5 configured server).

When PHP went to version 4 from version 3, it was possible
to run both at the same time, and have users select by file
extension, i.e. .php4,.php5. It seems a naming conflict within
the code itself prevents that from working with PHP 5. Has anyone
discovered a way to do this?

We are running apache 1.3.x on RHEL 4.

Thanks!
--
John

I've just done this successfully on apache2/gentoo. I have it running PHP4
for for .php files and PHP5 for .php5 files.
this doc won't all apply to your case but will likely give you enough
pointers to get you up and running:
http://www.gentoo.org/proj/en/php/ph...figuration.xml

hth, Johnny
Apr 3 '07 #2
"Johnny" <re***@in.group.pleasewrites:
> We would like to upgrade our servers to PHP 5 and PHP 4
together as modules on the same server (not as cgi, not passing
requests to another server). I did some extensive searching on
this and we ran some tests over a year ago and did not find a
solution (other than proxy forwarding to a PHP 5 configured server).

When PHP went to version 4 from version 3, it was possible
to run both at the same time, and have users select by file
extension, i.e. .php4,.php5. It seems a naming conflict within
the code itself prevents that from working with PHP 5. Has anyone
discovered a way to do this?

We are running apache 1.3.x on RHEL 4.
>
I've just done this successfully on apache2/gentoo. I have it running PHP4
for for .php files and PHP5 for .php5 files.
this doc won't all apply to your case but will likely give you enough
pointers to get you up and running:
http://www.gentoo.org/proj/en/php/ph...figuration.xml

hth, Johnny
Thanks for the message, I checked the link out. But it appears
they are not BOTH running as modules on the same Apache server? The
choices seemed to be to run one as CGI, or if you want both as modules
use another instance of Apache. We were hoping someone may have knowledge
of a solution that allows both to run as modules within the same
Apache instance.

--
John
__________________________________________________ _________________
John Murtari Software Workshop Inc.
jmurtari@following domain 315.635-1968(x-211) "TheBook.Com" (TM)
http://thebook.com/
Apr 3 '07 #3
John Murtari wrote:
"Johnny" <re***@in.group.pleasewrites:
>> We would like to upgrade our servers to PHP 5 and PHP 4
together as modules on the same server (not as cgi, not passing
requests to another server). I did some extensive searching on
this and we ran some tests over a year ago and did not find a
solution (other than proxy forwarding to a PHP 5 configured server).

When PHP went to version 4 from version 3, it was possible
to run both at the same time, and have users select by file
extension, i.e. .php4,.php5. It seems a naming conflict within
the code itself prevents that from working with PHP 5. Has anyone
discovered a way to do this?

We are running apache 1.3.x on RHEL 4.
>I've just done this successfully on apache2/gentoo. I have it running PHP4
for for .php files and PHP5 for .php5 files.
this doc won't all apply to your case but will likely give you enough
pointers to get you up and running:
http://www.gentoo.org/proj/en/php/ph...figuration.xml

hth, Johnny

Thanks for the message, I checked the link out. But it appears
they are not BOTH running as modules on the same Apache server? The
choices seemed to be to run one as CGI, or if you want both as modules
use another instance of Apache. We were hoping someone may have knowledge
of a solution that allows both to run as modules within the same
Apache instance.
Link is a bit dated, so your mileage may vary, but here goes:
http://www.digitalsandwich.com/archi...he-server.html
Apr 3 '07 #4
Schraalhans Keukenmeester <bi*******@invalid.spamwrites:
>>> We would like to upgrade our servers to PHP 5 and PHP 4
together as modules on the same server (not as cgi, not passing
requests to another server). I did some extensive searching on
this and we ran some tests over a year ago and did not find a
solution (other than proxy forwarding to a PHP 5 configured server).

When PHP went to version 4 from version 3, it was possible
to run both at the same time, and have users select by file
extension, i.e. .php4,.php5. It seems a naming conflict within
the code itself prevents that from working with PHP 5. Has anyone
discovered a way to do this?

We are running apache 1.3.x on RHEL 4.
Link is a bit dated, so your mileage may vary, but here goes:
http://www.digitalsandwich.com/archi...he-server.html

Yes, thanks for that. It has some of the best information
I have found (I was suprised to see I had posted to the thread
years ago). It does seem that it just isn't possible and keep
'normal' functionality. I checked the php.net bug tracker and
saw a request posted on this, the response was 'will not happen.'

Not sure what the problem is, maybe a basic coding
problem when 5 was created -- but I really do think it is
slowing adoption of 5. We are a hosting provider, and it just
makes it more difficult for us to transition and get our users
to transition. Perhaps folks who are interested should submit
some bug reeports at php.net?
--
John
__________________________________________________ _________________
John Murtari Software Workshop Inc.
jmurtari@following domain 315.635-1968(x-211) "TheBook.Com" (TM)
http://thebook.com/
Apr 6 '07 #5
John Murtari <jm******@thebook.comwrote in
news:x7************@hammer.thebook.com:
Yes, thanks for that. It has some of the best information
I have found (I was suprised to see I had posted to the thread
years ago). It does seem that it just isn't possible and keep
'normal' functionality. I checked the php.net bug tracker and
saw a request posted on this, the response was 'will not happen.'
Not so bad running v4 as a module and v5 as CGI, as long as your customers
can still set their v5 php.ini options as well as v4 .htaccess, no?

Most people coding for 5 should be prepared to deal with a CGI environment
by now, and the "legacy" people can stick with 4.
Apr 6 '07 #6
hansBKK,
> Yes, thanks for that. It has some of the best information
I have found (I was suprised to see I had posted to the thread
years ago). It does seem that it just isn't possible and keep
'normal' functionality. I checked the php.net bug tracker and
saw a request posted on this, the response was 'will not happen.'

Not so bad running v4 as a module and v5 as CGI, as long as your customers
can still set their v5 php.ini options as well as v4 .htaccess, no?

Most people coding for 5 should be prepared to deal with a CGI environment
by now, and the "legacy" people can stick with 4.
Yes, thanks, but as you know running CGI is a lot more server
overhead than as a built in module; also, on our apache server we
use 'suexec' so that user's scripts run under their userid -- that makes
some operations a lot easier (we provide web hosting). PHP runs as
the 'server' so there are some different coding issues especially if
an application wants to upload/create files on the server. If people
got used to a CGI PHP environment, it might not be an easy transition
if it was incorporated as a module.

Because of a wide user base it just makes things simpler
if the environment stays the same (as were able to do in the
php 3 -php 4 transition).

Best regards!

--
John
__________________________________________________ _________________
John Murtari Software Workshop Inc.
jmurtari@following domain 315.635-1968(x-211) "TheBook.Com" (TM)
http://thebook.com/
Apr 7 '07 #7
John Murtari wrote:
hansBKK,
>> Yes, thanks for that. It has some of the best information
I have found (I was suprised to see I had posted to the thread
years ago). It does seem that it just isn't possible and keep
'normal' functionality. I checked the php.net bug tracker and
saw a request posted on this, the response was 'will not happen.'
Not so bad running v4 as a module and v5 as CGI, as long as your customers
can still set their v5 php.ini options as well as v4 .htaccess, no?

Most people coding for 5 should be prepared to deal with a CGI environment
by now, and the "legacy" people can stick with 4.

Yes, thanks, but as you know running CGI is a lot more server
overhead than as a built in module; also, on our apache server we
use 'suexec' so that user's scripts run under their userid -- that makes
some operations a lot easier (we provide web hosting). PHP runs as
the 'server' so there are some different coding issues especially if
an application wants to upload/create files on the server. If people
got used to a CGI PHP environment, it might not be an easy transition
if it was incorporated as a module.

Because of a wide user base it just makes things simpler
if the environment stays the same (as were able to do in the
php 3 -php 4 transition).

Best regards!
Do you mean eventually we will all have to switch to CGI instead of
isapi module? Is there a reason for this trend I have missed perhaps?
I thought the modular version was the preferred/recommended strategy.

Sh.
Apr 7 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Hugh Cowan | last post by:
Hello, I don't program full-time (anymore), but I do try and stay on-top of the latest technologies and like most are always trying to upgrade my skills and remain current (as much as is...
0
by: John Murtari | last post by:
Folks, We have been running PHP 4.x on Apache 1.3.x with no problems. After the first upgrade from php3 -> php4 were were able to load both modules for php 3 and php 4 with no problem. With an...
2
by: John Murtari | last post by:
Folks, I work for a web provider and we would really like to start allowing people to experiment with php 5 on their websites without forcing an overall upgrade and potential code problems. ...
2
by: John Murtari | last post by:
Folks, We are running PHP 4 right now on our servers and would like to give people the option of experimenting/using PHP 5 if they desire. Our system are RedHat Linux running Apache 1.3.x --...
1
by: qwweeeit | last post by:
Hi all, I am developing in Python (as a GUI I choosed Qt). To increase my expertise, besides reading manuals & tutorials, I am studying a big program developed in the language of my choice, and...
12
by: A-PK | last post by:
Anyone know how to breakdown every modules into different assemblies and refernces. Hence, to repair problematic module, only that particular module needed to be recompiled. or any place...
7
by: Dmitry Shuklin | last post by:
I am compiled my C file into IL source, How i can compile this file back to OBJ file, not to EXE or DLL? or, can i compile to OBJ file VB or C# code and link them with C++ managed OBJ files? ...
5
by: m.banaouas | last post by:
Hi, bonjour, witch versions are suitable to use for apache & mod_python ? Can i install and use "Apache 2.2.3" & "mod_python 3.2.10" (most recent versions) without facing any known major...
3
by: Maxim | last post by:
Hi, all! Is it possible to have both C++ and CSharp modules in one project? Thanks.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.