{"id":207,"date":"2016-12-09T14:51:49","date_gmt":"2016-12-09T14:51:49","guid":{"rendered":"http:\/\/linux.suriyasuneel.com\/?p=207"},"modified":"2016-12-09T14:51:49","modified_gmt":"2016-12-09T14:51:49","slug":"php-5-6-on-ubuntu","status":"publish","type":"post","link":"http:\/\/linux.suriyasuneel.com\/?p=207","title":{"rendered":"php 5.6 on ubuntu"},"content":{"rendered":"<h2 id=\"php-56-on-ubuntu-14\">PHP 5.6 on Ubuntu 14<\/h2>\n<div class=\"collapsible ui-accordion ui-widget ui-helper-reset\"><b id=\"ui-id-3\" class=\"collapsible-title ui-accordion-header ui-state-default ui-accordion-icons ui-accordion-header-active ui-state-active ui-corner-top\" tabindex=\"0\">To install PHP 5.6 or to upgrade from PHP 5.5 on Ubuntu 14:<\/b><\/p>\n<div id=\"ui-id-4\" class=\"collapsible-content ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active\">\n<ol>\n<li>Enter the following commands in the order shown:\n<pre><code>apt-get -y update\r\nadd-apt-repository ppa:ondrej\/php\r\napt-get -y install php5.6 php5.6-mcrypt php5.6-mbstring php5.6-curl php5.6-cli php5.6-mysql php5.6-gd php5.6-intl php5.6-xsl php5.6-zip\r\napt-get -y update\r\n<\/code><\/pre>\n<\/li>\n<li>Enter the following command to verify PHP 5.6 installed properly:\n<pre><code>php -v\r\n<\/code><\/pre>\n<p>Following is a sample response that indicates PHP 5.6 is installed:<\/p>\n<pre><code>PHP 5.6.22-4+deb.sury.org~trusty+1 (cli)\r\nCopyright (c) 1997-2016 The PHP Group\r\nZend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies\r\nwith Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies\r\n<\/code><\/pre>\n<div id=\"info\" class=\"bs-callout bs-callout-info\">\n<p>The preceding message confirms that the <code>Zend OPcache<\/code> is installed. We strongly recommend using the OPcache for performance reasons. If your PHP distribution does not come with the OPcache, see the <a href=\"http:\/\/php.net\/manual\/en\/opcache.setup.php\" target=\"_blank\">PHP OPcache documentation<\/a>.<\/p>\n<\/div>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>PHP 5.6 on Ubuntu 14 To install PHP 5.6 or to upgrade from PHP 5.5 on Ubuntu 14: Enter the following commands in the order shown: apt-get -y update add-apt-repository ppa:ondrej\/php apt-get -y install php5.6 php5.6-mcrypt php5.6-mbstring php5.6-curl php5.6-cli php5.6-mysql php5.6-gd php5.6-intl php5.6-xsl php5.6-zip apt-get -y update Enter the following command to verify PHP 5.6 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/posts\/207"}],"collection":[{"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=207"}],"version-history":[{"count":1,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/posts\/207\/revisions"}],"predecessor-version":[{"id":208,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/posts\/207\/revisions\/208"}],"wp:attachment":[{"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=207"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}