PHP 4 and PHP 5

Discussion in 'Site & Server Administration' started by NaSh123, May 8, 2009.

  1. #1
    Is it possible to have php 4 AND php 5 installed on a dedicated server but lets say all accounts except one use php 5?

    Thanks!
     
    NaSh123, May 8, 2009 IP
  2. SSANZ

    SSANZ Peon

    Messages:
    861
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yes this is possible, however what is the exact requirement of php4? Most of PHP5 has PHP4 " covered ".

    Also yes you can have both php4 & 5 running together.
     
    SSANZ, May 9, 2009 IP
  3. enduserhelp

    enduserhelp Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes it is possible, just set the server for using one of the two, then the account that needs to run with the other version just add the correct addhandler on the .htaccess of that account.
     
    enduserhelp, May 11, 2009 IP
  4. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #4
    Yes, it is possible but you cannot run both PHP as dso or cgi. You will need to run on PHP as dso and other PHP as a CGI.

    Kailash
     
    kailash, May 13, 2009 IP
  5. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #5
    I am not sure about the exact reason but your PHP script should not be broken if you use both versions on one server.

    Kailash
     
    kailash, May 15, 2009 IP
  6. catgnome

    catgnome Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Installation on .. Linux or Windows machine ?
     
    catgnome, May 15, 2009 IP
  7. eFishy

    eFishy Guest

    Messages:
    213
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I have seen it done before on a Linux machine, not 100% about on windows.
    Why do you need both of them?
     
    eFishy, May 16, 2009 IP
  8. catgnome

    catgnome Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I didn't said that you can't, so .. I asked it just to be sure what we are talking about. Linux & Windows Apache are not 100% identical ( configuration ).
     
    catgnome, May 16, 2009 IP