2

I usualy do

apt-get update
apt-get upgrade

in order to keep my Debian 8.x server up to date. I also tried apt-get dist-upgrade, however, my PHP version is still the same one that I installed months ago when I set up my server.

It seems like I only get security updates, but not the current version. I also wonder what else might not be up-to-date (apache, MySQL, etc...).

This has been asked a lot about on Ask Ubuntu, but I didn't find a solution for Debian yet. I hope this isn't a duplicate!

So, How do I install the latest PHP version?

4
  • 1
    Which is the up-to-date package for debian (see here and does it match your version? Debian usually is a bit behind with the versions due to their intense stability testing. For the bleeding-edge version either go Debian testing (or even unstable) or manually install versions (which can be a problem with dependencies). Commented Aug 24, 2015 at 20:38
  • This is by design. Changes to Debian stable are mostly restricted to security updates. Programs for which security patches cannot easily be backported are upgraded, such as browsers, but these are exceptions. What version of PHP are you using, and what version do you want? Please be specific. Commented Aug 24, 2015 at 22:36
  • what is the version you are running? Commented Aug 25, 2015 at 4:31
  • I have PHP 5.6.9-0+deb8u1 (according to phpinfo()) and Debian 8.1. I want the PHP version I would get if I installed the server from scratch. And I don't know exactly what the "testing" update branch is and if it's good for me. Commented Aug 25, 2015 at 6:14

1 Answer 1

1

apt-get does not install the last PHP version because it is not available in the official debian package repository. At the time of writing the last PHP5 security release is the 5.6.26, the PHP5 version available in Jessie is 5.6.24 and the PHP5 version available in sid is also 5.6.24.

You can find newer debian package in third party repositories such as dotdeb but at the the time of writing, if you really want the last security release of PHP5 in debian, you have to compile it yourself using the instructions from the official PHP website.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.