How to install latest version of PHP on VPS?

Discussion in 'PHP' started by lapidus, Jan 20, 2012.

  1. #1
    Hello


    I need to upgrade my VPS with latest PHP version.

    Can somebody explain me step by step how to do that?


    Thanks in advance
     
    lapidus, Jan 20, 2012 IP
  2. animedbsellersz

    animedbsellersz Well-Known Member

    Messages:
    276
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    123
    #2
    yum upgrade or update

    then yum install p h p
     
    Last edited: Jan 20, 2012
    animedbsellersz, Jan 20, 2012 IP
  3. lapidus

    lapidus Well-Known Member

    Messages:
    396
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #3
    Need more explanations... thanks
     
    lapidus, Jan 20, 2012 IP
  4. gherca

    gherca Member

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    38
    #4
    lapidus, where you have acces on vps ? what panel ?
     
    gherca, Jan 20, 2012 IP
  5. lapidus

    lapidus Well-Known Member

    Messages:
    396
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #5
    Gherca i want to make that via SSH,and maybe with simple control panel. But what i must type ? Can you write me here step by step.


    Gherca thanks
     
    lapidus, Jan 20, 2012 IP
  6. animedbsellersz

    animedbsellersz Well-Known Member

    Messages:
    276
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    123
    #6
    hi there,

    type in ssh..

    yum upgrade

    i assume that your yum is outdated


    then yum install p.h.p(remove dot) they will automaticaly install the latest php version

    if its still insist...reinstalling the apache or any OS you using and then do yum upgrade first before installing anything

    then yum install php

    Good luck
     
    animedbsellersz, Jan 20, 2012 IP
  7. lapidus

    lapidus Well-Known Member

    Messages:
    396
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #7
    Ok i was type yum upgrade and after that yum install php.

    After that i have message: Package php-5.1.6-27.el5_5.3.i386 already installed and latest version
    Nothing to do

    But when i go to check my PHP version in simple control panel there is still PHP 5.1.6

    Where i make wrong step?
     
    lapidus, Jan 20, 2012 IP
  8. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #8
    Hello there,

    You didn't take a wrong step. The repositories you are using have only release version 5.1.6. What OS are you using on your VPS?

    Regards,
    Chris
     
    RHS-Chris, Jan 20, 2012 IP
  9. lapidus

    lapidus Well-Known Member

    Messages:
    396
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #9
    Hi Chris

    I use CentOS release 5.6 (Final)

    i686 i686 i386 GNU/Linux

    Chris what i must do to upgrade to latest version of PHP?
     
    Last edited: Jan 20, 2012
    lapidus, Jan 20, 2012 IP
  10. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #10
    Hello Again,

    Try the following in your ssh terminal:

    yum --enablerepo=centosplus update php
    Code (markup):
    Chris
     
    RHS-Chris, Jan 20, 2012 IP
  11. lapidus

    lapidus Well-Known Member

    Messages:
    396
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #11
    Yes i was type that and have this:

    Loaded plugins: fastestmirrors
    Determing fastest mirrors
    addons
    base
    centosplus
    centosplus/primary/db
    extras
    turbopanel-base
    turbopanel-centos5
    update
    Seeting up Update Process
    No packages marked for update

    Ok Chris what next?
     
    lapidus, Jan 20, 2012 IP
  12. animedbsellersz

    animedbsellersz Well-Known Member

    Messages:
    276
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    123
    #12
    if still no luck, your last bet is to reinstall apache

    try googling your problem first maybe youll find a solution there

    good luck
     
    animedbsellersz, Jan 20, 2012 IP
  13. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #13
    That is incorrect advise. lapidus, you are not able to update to a newer version because the default repositories are not do not have the later versions. You need to let your package manager (yum) know to use a different repository. There are a few out there, each is a little different. Is this a production server with websites/clients on it right now? Please see the following page regarding repo's:

    http://wiki.centos.org/AdditionalResources/Repositories/

    Regards,
    Chris
     
    RHS-Chris, Jan 20, 2012 IP
  14. lapidus

    lapidus Well-Known Member

    Messages:
    396
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #14
    Chris thanks for this infos. and i go to that link which you provide me,but i don't know what i must do now about repositories.
    Please i need next thing what i must do. If you have a time please write me here, let's finish this, i be glad.


    Sincerely
     
    lapidus, Jan 21, 2012 IP
  15. infeeneety

    infeeneety Guest

    Messages:
    85
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #15
    infeeneety, Jan 26, 2012 IP