Upgrade PHP from 5.5 To PHP 5.6 in linux
Why need upgrade from php 5.5 to 5.6 ?
How to upgrade php from 5.5 to 5.6 ? I know this post may be lame tech now php has reach 7.0 version. but I write this just reminder for my self when work in local server on my laptop environtment when I really need to upgrade to higher version of php in linux mint os here I write step by step to upgrade this stuff
New Feature on php 5.6
1. Constant Scalar expressions
2. Variadic functions via ...
3. Argument unpacking via ...
4. Exponentiation via **
5. use function and use const
7. Default character encoding
8. Large file uploads
9. Json_decode(), it will also set json_last_error()
10. GMP Resources
Step By Step upgrading (run this on your terminal)
#remove current php installed
sudo apt-get -y purge php.*
#add ondrej repository (thanks to ondrej)
sudo add-apt-repository ppa:ondrej/php
#update your local repository
sudo apt-get update
#install this common needed for running php 5.6
sudo apt-get install php5.6 php5.6-mbstring php5.6-mcrypt php5.6-mysqlnd php5.6-xml php5.6-cli php5.6-curl php5.6-gd php5.6-fpm php5.6-dev
sudo apt-get install php-mongo php5.6-intl php-redis php-geoip php-solr php-memcached
#After this you can check by type on your terminal php -v and see what version is shown.. enjoy