473,398 Members | 2,380 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,398 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 2770
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.