By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,640 Members | 1,600 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,640 IT Pros & Developers. It's quick & easy.

PHP4 *and* PHP5

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a

"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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.