Php upgrade from 5.3 to php 5.6 on Ubuntu 12.04

10,854
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php5.6
Share:
10,854
Admin
Author by

Admin

Updated on June 05, 2022

Comments

  • Admin
    Admin almost 2 years

    I am following this tutorial on upgrading php from ver 5.3 to 5.6 :http://phpave.com/upgrade-php-53-to-php-56-on-ubuntu-1204-lts/

    sudo add-apt-repository ppa:ondrej/php5-5.6
    sudo apt-get update && sudo apt-get dist-upgrade
    

    The problem is that apache is also upgraded. Is it possible to update only php without upgrading apache server ?

  • Vipin Singh
    Vipin Singh almost 7 years
    It is saying E: Unable to locate package php5.6 E: Couldn't find any package by regex 'php5.6'