PHP4 *and* PHP5

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tim Tyler

    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/ tim@tt1lock.org Remove lock to reply.
  • Andy Hassall

    #2
    Re: PHP4 *and* PHP5

    On Fri, 5 Mar 2004 12:08:07 GMT, Tim Tyler <tim@tt1lock.or g> wrote:
    [color=blue]
    >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?[/color]

    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 <andy@andyh.co. uk> / Space: disk usage analysis tool
    <http://www.andyh.co.uk > / <http://www.andyhsoftwa re.co.uk/space>

    Comment

    • Phil Roberts

      #3
      Re: PHP4 *and* PHP5

      With total disregard for any kind of safety measures Tim Tyler
      <tim@tt1lock.or g> leapt forth and uttered:
      [color=blue]
      > 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?[/color]

      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/

      Comment

      • Tim Tyler

        #4
        Re: PHP4 *and* PHP5

        Phil Roberts <philrob@holyfl atnetshit.net> wrote or quoted:[color=blue]
        > Tim Tyler <tim@tt1lock.or g> leapt forth and uttered:[/color]
        [color=blue][color=green]
        > > 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?[/color]
        >
        > 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.[/color]

        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/ tim@tt1lock.org Remove lock to reply.

        Comment

        • Stephen Gordon

          #5
          Re: PHP4 *and* PHP5


          "Tim Tyler" <tim@tt1lock.or g> wrote in message news:Hu4Hyp.M20 @bath.ac.uk...[color=blue]
          > Phil Roberts <philrob@holyfl atnetshit.net> wrote or quoted:[color=green]
          > > Tim Tyler <tim@tt1lock.or g> leapt forth and uttered:[/color]
          >[color=green][color=darkred]
          > > > 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?[/color]
          > >
          > > 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.[/color][/color]

          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 *.php5suxthebig one).

          -Steve


          Comment

          • cjbj

            #6
            Re: PHP4 *and* PHP5

            Tim Tyler <tim@tt1lock.or g> wrote in message news:<Hu3r1J.FI F@bath.ac.uk>.. .
            [color=blue]
            > 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?[/color]

            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

            Comment

            Working...