Installing PHP 5.5… hahhaha that was easy huuuh!? but you can’t save everythings into your brain, trust me! (just kinding)… ok let’s go you can follow this easy step.
Method 1
1 2 3 4 5 6 7 8 9 |
apt-get update apt-get install -y python-software-properties software-properties-common add-apt-repository ppa:ondrej/php apt-get update apt-get install -y php5.6 php5.6-cgi php5.6-cli php5.6-mcrypt php5.6-curl php5.6-gd php5.6-mbstring php5.6-fpm php5.6-dom |
Another Method (If You Have Any Trouble with Method 1)
Method 2
1 2 3 4 5 6 7 8 9 10 11 12 13 |
apt-get update touch /etc/apt/sources.list.d/ondrej-php5.list echo "deb http://ppa.launchpad.net/ondrej/php5/ubuntu trusty main" >> /etc/apt/sources.list.d/ondrej-php5.list echo "deb-src http://ppa.launchpad.net/ondrej/php5/ubuntu trusty main" >> /etc/apt/sources.list.d/ondrej-php5.list apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C apt-get update apt-get install -y php5 php5-cgi php5-cli php5-mcrypt php5-curl php5-gd |