{"id":4540,"date":"2018-08-10T16:29:22","date_gmt":"2018-08-10T16:29:22","guid":{"rendered":"https:\/\/geekdecoder.com\/?p=4540"},"modified":"2018-08-10T16:29:22","modified_gmt":"2018-08-10T16:29:22","slug":"error-after-upgrade-from-php-5-4-to-5-6-on-centos","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2018\/08\/10\/error-after-upgrade-from-php-5-4-to-5-6-on-centos\/","title":{"rendered":"Error After Upgrade from PHP 5.4 to 5.6 on CentOS"},"content":{"rendered":"<p>After an upgrade from PHP 5.4 to 5.6, I received an error when I run an app update:<\/p>\n<p>Your requirements could not be resolved to an installable set of packages.<br \/>\nProblem 1 &#8211; This package requires php >=5.6 but your PHP version (5.4.45) does not satisfy that requirement.<\/p>\n<p>Issue:<\/p>\n<p>The shell cli is currently running on php5.4. You will need to specify what version the shell will use. This can be done by running the following command.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# echo &quot;alias php=&#039;\/opt\/plesk\/php\/5.6\/bin\/php&#039;&quot; &gt;&gt; ~\/.bashrc\n\n<\/pre>\n<p>The guide from Plesk<\/p>\n<p>https:\/\/support.plesk.com\/hc\/en-us\/articles\/115003766853-How-to-specify-PHP-version-on-the-Plesk-server-for-command-line-command-php-for-user-<\/p>\n<p>You can confirm here:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# php -v\nPHP 5.6.35 (cli) (built: Mar 30 2018 12:52:22)\nCopyright (c) 1997-2016 The PHP Group\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>After an upgrade from PHP 5.4 to 5.6, I received an error when I run an app update: Your requirements could not be resolved to an installable set of packages. Problem 1 &#8211; This package requires php >=5.6 but your PHP version (5.4.45) does not satisfy that requirement. Issue: The shell cli is currently running &#8230; <a title=\"Error After Upgrade from PHP 5.4 to 5.6 on CentOS\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2018\/08\/10\/error-after-upgrade-from-php-5-4-to-5-6-on-centos\/\" aria-label=\"Read more about Error After Upgrade from PHP 5.4 to 5.6 on CentOS\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,84],"tags":[],"class_list":["post-4540","post","type-post","status-publish","format-standard","hentry","category-administration","category-php"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/4540","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=4540"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/4540\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=4540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=4540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=4540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}