The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Upgrading to PHP 4.2.2

Discussion in 'General Discussion' started by NetGeek, Jul 24, 2002.

  1. NetGeek

    NetGeek Well-Known Member

    Joined:
    Mar 4, 2002
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    Hi

    I would like to upgrade to PHP 4.2.2 is it done by running buildapache.sea ? if yes where should I save and run that script exactly ?


    NetGeek
     
  2. Djelibeybi

    Djelibeybi Well-Known Member

    Joined:
    Mar 19, 2002
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    /scripts/easyapache pulls the latest buildapache.sea file, so you can use that to bring down the updated install.

    I just upgraded to PHP4.2.2 using this method quick and painlessly. :)
     
  3. avara

    avara Well-Known Member

    Joined:
    Oct 28, 2001
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    1. Log in as root, and cd /usr/src
    2. Type wget http://layer1.cpanel.net/buildapache.sea
    3. Type sh buildapache.sea
    4. Hit 1 at the prompt, and press enter
    5. Make coffee ;)

    Or alternatively, get the PHP 4.2.2 source from www.php.net, and compile it manually.
     
  4. Curt

    Curt Well-Known Member

    Joined:
    Oct 16, 2001
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Does it matter what version of Redhat you are on when considering to run this? I ask because I am on 6.2.

    Thanks,
    Curt
     
  5. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    18
    My process is ver similar to avara's, but I enable curl with ssl:

    1. mkdir /home/src (I don't like buildapache taking up space on the /usr partition)

    2. cd /home/src

    3. /scripts/fixheaders (I do this first every time just to head off any problems.)

    4. wget http://layer1.cpanel.net/buildapache.sea

    5. chmod 744 buildapache.sea

    6. ./buildapache.sea

    7. At the prompt type 2 and then hit enter

    8. Use the down arrow key to hightlight PHP Module and hit enter

    9. Use the down arrow key to highlight Curl with SSL and hit the space bar to select it. (There are two curl options on this menu, if the other one is not selected, make sure that it IS selected, also.)

    10. Use the right arrow key to highlight Exit and hit enter

    11. Use right arrow key to highlight Exit and hit enter

    12. Highlight Yes and hit enter.

    13. Find a good book and wait.

    14. When it is done, restart httpd via webhostmanager or the command line. I usually just do it via webhostmanager and it seems to work fine.
     
  6. gemby

    gemby Well-Known Member
    PartnerNOC

    Joined:
    Feb 16, 2002
    Messages:
    182
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Pula, Croatia
    cPanel Access Level:
    DataCenter Provider
    Ok, i upgraded it 23rd, but latest buildapache.sea is from 24th of July!!!!!

    In burst they say there is new security hole in php.4.2.2, but there is no information about in php.net, nor in cpanel forum login screen, just mail i recived from burst.

    I upgraded it, went fine, but where was the problem, bad buildapache.sea build or what?

    I would like if there would be some nice mailinglist for such things. Even in WHM news there is no mention about PHP 4.2.1 security hole, nor mention there is actualy TWO builds of buldapache.sea for php 4.2.2.

    Please, we need more information about sw that we are depending on ;)
     
  7. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    18
    One thing that I failed to mention on my howto:

    buildapache.sea will enable suexec by default. So if you want it disabled, you will have to disable it after the install.
     
  8. JapAniManga.ch

    JapAniManga.ch Well-Known Member

    Joined:
    Aug 11, 2001
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Switzerland
    [quote:530efc5ce8][i:530efc5ce8]Originally posted by Djelibeybi[/i:530efc5ce8]

    /scripts/easyapache pulls the latest buildapache.sea file, so you can use that to bring down the updated install.

    I just upgraded to PHP4.2.2 using this method quick and painlessly. :)[/quote:530efc5ce8]
    I upgraded with this Script (chose Beginner so you can not make anything false) 3 Servers (2xRH7.3 + 1RH7.2) and everytime it was a Charm and worked perfect :) :)
     
Loading...

Share This Page