Apache - Runnning two servers simultaneousl on same machine

Discussion in 'Apache' started by jaymax, Jun 22, 2008.

  1. #1
    Hello,

    Need to do a migration from 1.3.x to 2.6 with minimum downtime. But cross version modules issues will be a problem. Can I run these two versions independently on the same box. So the production facility remains up while testing the newer?

    Thanks!
     
    jaymax, Jun 22, 2008 IP
  2. tkovacs

    tkovacs Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Sure, just install both (to separate locations) and run the 2.6 on a different port number. ('Port 81' in the httpd.conf I think).
    When you're ready to go, modify the 2.6 config to use port 80, stop 1.3 and restart 2.6 :)
     
    tkovacs, Jun 23, 2008 IP
  3. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #3
    I am not sure if it is that much easy as I have never installed two Apache server on one box. But I can not deny the possibility to install it on one server. Also if it is possible then there is a chance that some module may conflict with each other.

    Kailash
     
    kailash, Jun 23, 2008 IP
  4. NatalicWolf

    NatalicWolf Peon

    Messages:
    262
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I can do this for you:) Simply message me and we can talk.
     
    NatalicWolf, Jun 23, 2008 IP
  5. linspire_admin

    linspire_admin Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If you are using cPanel/WHM, then compile the apache with new apache version and WHM will automatically migrate it to the new version.
     
    linspire_admin, Jun 29, 2008 IP
  6. hoodvs

    hoodvs Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If you are using FreeBSD you can use jail to test out your config before rolling it over, or make the jail the actual webserver; if using linux, you have options for virtual machines in which you can do similar. Best of luck!
     
    hoodvs, Jul 7, 2008 IP
  7. dukahme

    dukahme Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hi, you can do some sort of virtualization. That's what is made for especially for testing.
     
    dukahme, Jul 12, 2008 IP
  8. jaymax

    jaymax Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Forgot to say thanks earlier to everyone who responded
     
    jaymax, Jul 13, 2008 IP
  9. RectangleMan

    RectangleMan Notable Member

    Messages:
    2,825
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    210
    #9
    Do you really want to use 2.6? Because as far as I know..they are still on 2.2 :)

    I don't recommend that. Apache uses a lot of default paths and other config files that may cause an issue. Your new apache will have to be 100% customized and that could present a larger problem down the road. I suggest you do the upgrade a couple times on a test server..get familiar with the process. Realistically..you can do this with 1-10 minutes downtime if you know what you are doing.

    That would work well too.

    What OS are you on and what's your control panel if you have one? Normally servers with a CP have support for updating software that will ease the process.
     
    RectangleMan, Jul 14, 2008 IP