472,354 Members | 1,437 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

PHP4 *and* PHP5

I'm sure this is a FAQ - but I could not find a coherent statement of the
answer:

Some of my clients want PHP4.
Other ones want PHP5.

Can I run both PHP4 and PHP5 under the same instance of Apache -
both on port 80 - using different file extensions to distinguish
between them?
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #1
5 2651
On Fri, 5 Mar 2004 12:08:07 GMT, Tim Tyler <ti*@tt1lock.org> wrote:
I'm sure this is a FAQ - but I could not find a coherent statement of the
answer:

Some of my clients want PHP4.
Other ones want PHP5.

Can I run both PHP4 and PHP5 under the same instance of Apache -
both on port 80 - using different file extensions to distinguish
between them?


Sounds like it should be possible, but I've just spent a bit of time trying to
set it up; if I have both libphp4.so and libphp5.so loaded in httpd.conf,
Apache silently fails to start. Remove one or the other and it works.

--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
<http://www.andyh.co.uk> / <http://www.andyhsoftware.co.uk/space>
Jul 17 '05 #2
With total disregard for any kind of safety measures Tim Tyler
<ti*@tt1lock.org> leapt forth and uttered:
I'm sure this is a FAQ - but I could not find a coherent
statement of the answer:

Some of my clients want PHP4.
Other ones want PHP5.

Can I run both PHP4 and PHP5 under the same instance of Apache -
both on port 80 - using different file extensions to distinguish
between them?


The only way I know of is to run one of them in CGI mode. Thats how I
have it configured on my local server at any rate.

--
Phil Roberts | Dork Pretending To Be Hard | http://www.flatnet.net/
Jul 17 '05 #3
Phil Roberts <ph*****@holyflatnetshit.net> wrote or quoted:
Tim Tyler <ti*@tt1lock.org> leapt forth and uttered:

I'm sure this is a FAQ - but I could not find a coherent
statement of the answer:

Some of my clients want PHP4.
Other ones want PHP5.

Can I run both PHP4 and PHP5 under the same instance of Apache -
both on port 80 - using different file extensions to distinguish
between them?


The only way I know of is to run one of them in CGI mode. Thats how I
have it configured on my local server at any rate.


Yes - I believe I came across instructions about how to do this
during my researching of the issue.

I suspect this would be too much of a mess for me - I think I give up.

PHP 4 wins over PHP 5 here today :-|
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #4

"Tim Tyler" <ti*@tt1lock.org> wrote in message news:Hu********@bath.ac.uk...
Phil Roberts <ph*****@holyflatnetshit.net> wrote or quoted:
Tim Tyler <ti*@tt1lock.org> leapt forth and uttered:

I'm sure this is a FAQ - but I could not find a coherent
statement of the answer:

Some of my clients want PHP4.
Other ones want PHP5.

Can I run both PHP4 and PHP5 under the same instance of Apache -
both on port 80 - using different file extensions to distinguish
between them?


The only way I know of is to run one of them in CGI mode. Thats how I
have it configured on my local server at any rate.


I'm pretty sure you can configure it to use php4 and php5 based on
extension. But as has been hinted you may find you have to use CGI mode (Not
absolutely sure) but yeah if you do you just point apache to head to your
php4 install for *.php4 files and send to your php5 for your *.php5 (or
whatever extension you might choose, depending on your platform you should
probably get away with *.php5suxthebigone).

-Steve
Jul 17 '05 #5
Tim Tyler <ti*@tt1lock.org> wrote in message news:<Hu********@bath.ac.uk>...
Can I run both PHP4 and PHP5 under the same instance of Apache -
both on port 80 - using different file extensions to distinguish
between them?


FWIW I found http://www.schlitt.info/applications...5_prallel.html
This doesn't use the same Apache instance, but other followers of this
thread may not have that restiction.

-- CJ
Jul 17 '05 #6

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

Similar topics

0
by: Dave Pham | last post by:
I just cleaned my comp, and I am trying to re-config my webserver... I am trying to setup apache 2 so it runs both php4 and php5, I also have two instances of mysql running. I know this can be...
1
by: dk_sz | last post by:
Is it just me... Or is PHP5 XML very limited? Or am I missing something very obvious? Any way to use PHP4 Dom XML in PHP5? Does anyone know why support for it was dropped? I have following...
2
by: dk_sz | last post by:
Can anyone point me to a guide or something for conversion? I tryed http://alexandre.alapetite.net/doc-alex/domxml-php4-php5/index.en.html but it doesn't work (not all parts anyway) - and as I...
4
by: Kevin | last post by:
Hi all, I've got a PHP4 app that I developed which I'm trying to get to run on a PHP5 server. Everything works great, except for one thing. There's a particular routine that creates an...
2
by: Stefan Huber | last post by:
Hi I've got a really strange problem, and can't find out why it's not working as intended. in order to use php4 and 5 together on a webserver and the requirement for running as different...
12
by: Drazen Gemic | last post by:
How long will PHP4 be supported ? When is PHP4 end of life scheduled ? DG
3
by: xhe | last post by:
I have just upgraded my php version form php4 to php5. and I met this problem, and don't know if you know the solution. My site was written in PHP4, and most parts can be running smoothly in PHP5,...
8
by: FFMG | last post by:
Hi, I am slowly moving my code to php5. But I would like to make it backward compatible in case something bad happens, (and to make sure I understand what the changes are). The way the...
3
by: jmark | last post by:
I am currently running php 4.4.7 in windows xp and apache 2. If I enter php in command line. I get the following error The application has failed to start because php5ts.dll was not found" I...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made but the http to https rule only works for...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

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.