Reputation: 75
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 ?
Upvotes: 3
Views: 11136
Reputation: 14067
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php5.6
Upvotes: 4
Reputation: 75
Safest way to do it is to do an entire OS update to ubuntu 14LTS. From there you can update using the following PPA:
sudo apt-get update && sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php5-5.6
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install php5
Upvotes: -2