Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have access to a Linux box and SSH. I need the latest version of PHP. What will the following do:

sudo apt-get install php5

Right now, I have PHP Version 5.1.6. Not sure if the above command is correct.

Also, I have access to Panel version 10.0.1. Can I upgrade PHP from there?

share|improve this question

closed as off topic by womble, sysadmin1138 Jul 17 '11 at 14:50

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

"Linux" isn't specific enough, neither is "latest version", and "Panel"...? – womble Jul 17 '11 at 6:20
By latest, do you mean latest available from your distro or latest provided by upstream?. – Tshepang Jul 17 '11 at 7:59

try here, but this one is for a redhat linux. you need to be specific on what linux distros you are talking about.

share|improve this answer
apt-get implies a Debian-like system – Tshepang Jul 17 '11 at 7:56
And currently having PHP 5.1.6 installed strongly implies a CentOS/RHEL 5.x system. Debian Lenny shipped with 5.2.6, Ubuntu Dapper shipped with 5.1.2, and Ubuntu Hardy shipped with 5.2.4. RHEL 5, on the other hand... 5.1.6. – womble Jul 17 '11 at 8:32

from ubuntu forums:

An upgrade will only install security updates. The full answer is, that You should seriously consider updating to a newer release (using sudo do-release-upgrade)

To check the current version, you can:

  • Check in Synaptic.
  • Make a new PHP page containing: <?php phpinfo() ?>, which tells you all about your current PHP configuration.
  • Install the apt-show-versions package, and then run $ apt-show-versions php5.

hope it helps.

share|improve this answer
sebastian_h - I made edits to your response. Which command actually does the update? – StackOverflowNewbie Jul 17 '11 at 6:21
None of them. I have no idea what value this answer is supposed to provide. – womble Jul 17 '11 at 7:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.