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.

manually upgrade mysql and php

Discussion in 'General Discussion' started by exodux, Nov 3, 2004.

  1. exodux

    exodux Well-Known Member

    Joined:
    Apr 12, 2004
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brisbane, Queensland, Australia
    Just wondering how you manually upgrade MySQL 3 to version 4 and also how to upgrade PHP as well to the latest stable release through the SSH console?

    I know the option is available to do it through the web in WHM but I want to do it this way so I can learn more of the linux command stuff.

    Thanks.
     
  2. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    In WHM under tweak settings select mySQL 4 and run /scripts/upcp from shell.

    To upgrade php, run the easyapache installer:
    /scripts/easyapache
     
  3. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    Regarding Mysql ... Read the documentation on upgrading at http://mysql.com

    Regarding php ... save a page test.php with following
    <? phpinfo ();
    ?>

    This should give you the Configure command options compiled in...

    BTW, easiest starting point would be apache on a different target/prefix and then apache+php etc etc... If you wish to learn then don't be in a hurry, READ the docs n times before running a command and that's it :)

    Anup
     
    #3 anup123, Nov 3, 2004
    Last edited: Nov 3, 2004
  4. exodux

    exodux Well-Known Member

    Joined:
    Apr 12, 2004
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brisbane, Queensland, Australia
    What I'm after is fully upgrading mysql, php and apache myself and not using any pre-made scripts by cpanel.

    I've looked all around and on google for the right way of doing things such as -
    wget mysql-url
    wget apache-url
    wget php-url

    tar -xvf mysql
    tar -xvf apache
    tar -xvf php

    ./configure mysql
    make
    make install

    ./configure apache
    make
    install

    ./configure php
    make
    make install

    etc, etc. i know there is alot more to what i've just stated which is what i'm after.
    Any help would be great.

    Thanks,

    John.
     
  5. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    This is for clean install and not upgrades i believe. Don't rush through the docs else it could be catastrophic.

    Anup
     
  6. exodux

    exodux Well-Known Member

    Joined:
    Apr 12, 2004
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brisbane, Queensland, Australia
    Any help would be great.
     
  7. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    Just as i said.

    Step 1.
    compile plain apache with a different prefix and target directives and then make it run on a different posrt (say 82).

    Download the apachex_x.xx.xx.tar.gz
    tar -zxvf apachex_x.xx.xx.tar.gz
    Read The Documentation in detail. Get to know what prefix and target mean.
    Give a weeks time reading and understanding it before you run the first command

    Give at least 3 weeks on this lesson which includes configuring a site to run on this manually compiled apache also.

    Anup
     
Loading...

Share This Page