473,320 Members | 1,952 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,320 software developers and data experts.

Running PHP 4 and PHP 5 together as modules, same Apache

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.

Did some extensive searches and have seen ideas about
running php 5 via cgi or using mod_proxy so that if folks access
their site as php5.sitename.com -- we pass it through to an
apache server configured for php5.

When the last 'major' php upgrade ocurred from 3 to 4.
It was possible to have folks change their file extension to .php4
and they could use the 'new' version of the language. While
people who had files ending in .php or .php3 stayed with the 'old'.
Later on as php4 became more common we changed the default handling
so that .php files were handled by the 'new' version and we told
people if they wanted to STAY at php 3, they had to change their
filenames to end in .php3 or add a directive in an .htaccess file.

That kept everyone happy.

We have done extensive testing and it appears that both
php 4 and php 5 modules cannot coexist under Linux, Apache 1.3.x
-- and the groups seem to say it's a namespace problem within the
PHP modules.

Does anyone know of a fix/patch coming for this?
Many thanks!
--
John
__________________________________________________ _________________
John Murtari Software Workshop Inc.
jmurtari@following domain 315.635-1968(x-211) "TheBook.Com" (TM)
http://thebook.com/
Jul 17 '05 #1
2 2117
that is the reason that i dropped php5 off of my systems. my hosting
service had no way to do it either. found it very confusing to right
in one php and then have to rewrite back to php4 to use it on my hosts.
jimt

In article <x7************@hammer.thebook.com>, John Murtari
<jm******@thebook.com> wrote:
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.

Did some extensive searches and have seen ideas about
running php 5 via cgi or using mod_proxy so that if folks access
their site as php5.sitename.com -- we pass it through to an
apache server configured for php5.

When the last 'major' php upgrade ocurred from 3 to 4.
It was possible to have folks change their file extension to .php4
and they could use the 'new' version of the language. While
people who had files ending in .php or .php3 stayed with the 'old'.
Later on as php4 became more common we changed the default handling
so that .php files were handled by the 'new' version and we told
people if they wanted to STAY at php 3, they had to change their
filenames to end in .php3 or add a directive in an .htaccess file.

That kept everyone happy.

We have done extensive testing and it appears that both
php 4 and php 5 modules cannot coexist under Linux, Apache 1.3.x
-- and the groups seem to say it's a namespace problem within the
PHP modules.

Does anyone know of a fix/patch coming for this?
Many thanks!

Jul 17 '05 #2
.oO(jimt)
that is the reason that i dropped php5 off of my systems. my hosting
service had no way to do it either.


On my hosts PHP5 runs as CGI, PHP4 as module or CGI too. By default
scripts are executed with v4, if I want to use v5 I either use the
extension .php5 or change the server configuration with a .htaccess
file. Works quite well.

Micha
Jul 17 '05 #3

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

Similar topics

0
by: michael newport | last post by:
I did the following as instructed in the docs. (see below) everything seemed to install ok and I started apache with no complaints, but, 1)I do not see a process for apache using ps -ef 2) In...
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: Frank Conte | last post by:
I'm having a problem running a simple printer friendly script written in PHP. I'm not sure whether the problem is with apache 1.3 or with the scripts. I updated apache's config file httpd.conf to...
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: Rolfe | last post by:
Hi, I struggled, and got mod_python running on Apache/Win2k. Follow these instructions verbatim and you shouldn't have any trouble. These instructions are based on...
1
by: neha | last post by:
hi, i m trying to integrate python with apache on linux.For this i m using mod_python. I dont see any problem with the versions of python,apache and mod_python i m using. the versions i m using...
5
by: writeson | last post by:
Hi all, I'm wondering if anyone has tried a scenario that I'm thinking of. At my job we've got a web based product provided by Apache running PHP that accesses MySQL. This web application is...
7
by: John Murtari | last post by:
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...
1
by: walterbyrd | last post by:
I understand that Python has them, but PHP doesn't. I think that is because mod_php is built into apache, but mod_python is not usually in apache. If mod_python was built into apache, would...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.