{"id":2419,"date":"2018-06-26T18:06:47","date_gmt":"2018-06-26T12:36:47","guid":{"rendered":"http:\/\/holithemes.com\/blog\/?p=2419"},"modified":"2018-06-26T18:06:47","modified_gmt":"2018-06-26T12:36:47","slug":"update-php-version","status":"publish","type":"post","link":"https:\/\/holithemes.com\/blog\/update-php-version\/","title":{"rendered":"Update PHP Version"},"content":{"rendered":"\n<p>IF You are using Self hosted services. you have access to SSH.<\/p>\n\n\n\n<p>You can install the PHP Version with this command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install php<\/code><\/pre>\n\n\n\n<p>PHP will update\/ install the default version available in Server repository, or if your server package don&#8217;t have the latest version available can install latest version available package and then install PHP.<\/p>\n\n\n\n<p>To add a specific version add version number as suffix.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install php7.1<\/code><\/pre>\n\n\n\n<p>Check the php Version<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php -v<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Managed Hosting\/ cPanel<\/h2>\n\n\n\n<p>If your using Managed hosting Server, you may not have access to SSH, but most of hosting services providers like hostgator, bluehost.\u00a0 They will provide cPanel or similar framework to maintain the server.<\/p>\n\n\n\n<p>From cPanel at PHP filed you can update\/ Change the PHP Version.<\/p>\n\n\n\n<p>If your hosting provider is not have any option to update the PHP Version, contact the hosting provider.<\/p>\n\n\n\n<p>Update <a rel=\"nofollow noopener noreferrer\" href=\"https:\/\/support.hostgator.com\/articles\/php-configuration-plugin\" target=\"_blank\">PHP in HostGator<\/a> using cPanel<br\/><br\/>Update <a rel=\"nofollow noopener noreferrer\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/php\/how-to-change-the-php-version-your-account-uses\" target=\"_blank\">PHP in inmotionhosting<\/a> using cPanel<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IF You are using Self hosted services. you have access to SSH. You can install the PHP Version with this command PHP will update\/ install the default version available in Server repository, or if your server package don&#8217;t have the latest version available can install latest version available package and then install PHP. To add [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[7],"tags":[],"class_list":["post-2419","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/posts\/2419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/comments?post=2419"}],"version-history":[{"count":0,"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/posts\/2419\/revisions"}],"wp:attachment":[{"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/media?parent=2419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/categories?post=2419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/tags?post=2419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}