How do I upgrade my existing PHP version on Linux?


At the moment, version 5.4.45 is installed, you need to upgrade to 5.6, how to do it? Everything I do does not give any results, the versions remain old

Система: 2.6.32-openvz-042stab111.5-amd64

php5 -v PHP 5.4.45-0+deb7u2 (cli) (built: Oct 17 2015 09:01:48)
php -v PHP 5.4.45-0+deb7u2 (cli) (built: Oct 17 2015 09:01:48)

Demolished php nafig, tried to install 5.6 and again the same version !!!


Have you tried adding a repository with 5.6 and installing a new version of the package?

For example, you can use this instruction .

After adding the package, you can check the available updates and versions of the package with the commands: yum list | grep "php" or yum check-update

Scroll to Top