{"id":102,"date":"2018-04-23T21:58:24","date_gmt":"2018-04-23T21:58:24","guid":{"rendered":"https:\/\/beta.smarthost.eu\/blog\/?p=102"},"modified":"2019-03-15T14:50:35","modified_gmt":"2019-03-15T14:50:35","slug":"why-is-it-worth-changing-the-php-version-to-a-higher-one","status":"publish","type":"post","link":"https:\/\/www.smarthost.au\/blog\/why-is-it-worth-changing-the-php-version-to-a-higher-one","title":{"rendered":"Why is it worth changing the php version to a higher one?"},"content":{"rendered":"\n<p>We\noften pay attention to having the current version of WordPress or\nJoomla. Unfortunately, few people pay attention to go to a higher\nversion of php and often use version 5.6, which will soon cease to be\ncompletely supported. By the end of this year (2018) only patches\nwill be released<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"902\" height=\"189\" src=\"https:\/\/beta.smarthost.eu\/blog\/wp-content\/uploads\/2019\/02\/php-1.jpg\" alt=\"\" class=\"wp-image-104\" srcset=\"https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/02\/php-1.jpg 902w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/02\/php-1-300x63.jpg 300w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/02\/php-1-768x161.jpg 768w\" sizes=\"auto, (max-width: 902px) 100vw, 902px\" \/><\/figure><\/div>\n\n\n\n<p>From\nthe beginning of 2018, the default version of php for new accounts on\nour servers is the latest version 7.2.<\/p>\n\n\n\n<p><strong>So what are the advantages of upgrading to a higher PHP version and will my CMS work?<\/strong><\/p>\n\n\n\n<p>The first most important advantage is security, especially when we have an unsupported version. Discovered security holes in unsupported versions are not patched, which allows easy hacking. Another advantage is the higher performance of newer versions of php. This is a very important issue for positioning. The page loading speed has a real effect on the search results, so it is worth considering one of the solutions to change to a higher PHP version.<\/p>\n\n\n\n<p><strong>Everything looks beautiful but does my WordPress or my Joomla! will it handle such a version?<\/strong><\/p>\n\n\n\n<p>Of\ncourse! The latest versions of Joomla! and WordPress work without any\nproblems on PHP7. Unfortunately, before the implementation, you still\nneed to check whether our themes (WordPress), templates (Joomla!),\nPlugins are up to date and whether they are compatible with a newer\nversion of the PHP interpreter. However, it should be remembered that\nsuch tests are not a very good idea on a working website. The\nsolution to this problem may be cloning our installation using the\nSoftaculous tool (available in premium-ssd packages). Below is a\nreference to the guide:<\/p>\n\n\n\n<p>&#8220;How\nto clone the installation using Softaculous?&#8221;<\/p>\n\n\n\n<p>After\nwe clone the page, we can check if our site works. Any errors can be\nchecked in the file error_log, which is in the directory of our\ncopied page.<\/p>\n\n\n\n<p>However,\nhow to change the PHP version in Smarthost.eu?<\/p>\n\n\n\n<p>Version\nchange is limited to just a few clicks. In cPanel, all you need to do\nis enter &#8220;MultiPHP Manager&#8221; where you can change versions\nfor each domain.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"468\" src=\"https:\/\/beta.smarthost.eu\/blog\/wp-content\/uploads\/2019\/02\/php-ver-1024x468.jpg\" alt=\"\" class=\"wp-image-103\" srcset=\"https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/02\/php-ver-1024x468.jpg 1024w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/02\/php-ver-300x137.jpg 300w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/02\/php-ver-768x351.jpg 768w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/02\/php-ver.jpg 1382w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p><strong>Summary:<\/strong><\/p>\n\n\n\n<p>A\nnewer version of php is: longer support, faster site operation,\ngreater security, so if you can &#8211; go to the latest version of PHP<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We often pay attention to having the current version of WordPress or Joomla. Unfortunately, few people pay attention to go to a higher version of php and often use version 5.6, which will soon cease<a class=\"read-more\" href=\"https:\/\/www.smarthost.au\/blog\/why-is-it-worth-changing-the-php-version-to-a-higher-one\">Continue reading<\/a><\/p>\n","protected":false},"author":16,"featured_media":145,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,3],"tags":[76,75,77,79,78,81,80],"class_list":["post-102","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hosting","category-php","tag-php","tag-security","tag-seo","tag-servers-speed","tag-speed","tag-support","tag-website-loading-speed"],"_links":{"self":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/comments?post=102"}],"version-history":[{"count":1,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/102\/revisions"}],"predecessor-version":[{"id":105,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/102\/revisions\/105"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/media\/145"}],"wp:attachment":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/media?parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/categories?post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/tags?post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}