{"id":21674,"date":"2024-03-25T15:48:03","date_gmt":"2024-03-25T14:48:03","guid":{"rendered":"https:\/\/kunskap.websupport.se\/kb\/php-updates\/"},"modified":"2024-11-22T10:53:43","modified_gmt":"2024-11-22T09:53:43","slug":"php-updates","status":"publish","type":"ht_kb","link":"https:\/\/kunskap.websupport.se\/en\/kb\/php-updates\/","title":{"rendered":"PHP updates"},"content":{"rendered":"\n
PHP 8.4 is now available in your control panel! Updating to the latest version of the popular programming language is the most important thing you can do for your website. It gives your website increased performance, faster load times, and increased security. In addition, PHP 8.4 is included completely free of charge in all our web hosting packages! Read on to learn more about PHP and how to update the PHP version in the control panel.<\/p>\n\n\n\n
PHP is an open-source programming language. It is the most commonly used language in popular CMS systems, such as WordPress\/Woocommerce, Joomla, Drupal, and Opencart. <\/p>\n\n\n\n
The PHP programming language is constantly evolving. A new version is released every year and has a lifecycle of about 3 years. During the first two years, the version receives regular updates. In its third and final year, the version only receives updates for critical security vulnerabilities. That is why older PHP versions are a website security risk, as they no longer receive essential security updates. You can read more about the different PHP versions and when their support ends on PHP’s website<\/a>.<\/p>\n\n\n\n Yes, you should always use a current PHP version on your website, as older PHP versions no longer receive official security updates. We also regularly end support for older PHP versions. When that happens, we automatically move your page to a newer PHP version if you do not do it yourself. Of course, we always inform you of any PHP changes a few months in advance. However, it is always good practice to continuously maintain your website during the year and update all the components yourself. This means, among other things, that you make sure you use the latest versions of, for example, PHP, WordPress, themes, and plugins.<\/p>\n\n\n\n The advantages of updating PHP far outweigh any disadvantages you may encounter. However, one downside of updating PHP is that you may need to replace themes and plugins that are incompatible with the new PHP version. Far from all themes and plugins in e.g. WordPress receive continuous updates from the developers and many have been completely abandoned. You can easily see when a theme or plugin was last updated at https:\/\/wordpress.org\/plugins\/<\/a> and https:\/\/wordpress.org\/themes\/<\/a>. If a plugin is causing your website to crash in a newer PHP version and it’s been over 12 months since the plugin was last updated \u2013 well, that’s a clear sign that you need to replace the plugin regardless.<\/p>\n\n\n\n In your Websupport control panel, you can quickly switch between the current PHP versions and try a new version before updating.<\/p>\n\n\n\n php_flag display_errors on<\/p>\n\n\n\n php_flag display_startup_errors on<\/p>\n\n\n\n php_value error_reporting 2047<\/p>\n\n\n\n Done! Remember that you can switch back at any time<\/p>\n\n\n\n Go back to the older PHP version and update, deactivate, or replace the plugins or themes that caused the website to crash.<\/p>\n\n\n\n Now it is time to switch to the new version. Go to Web \u2192 Services \u2192 Choose the domain you want to switch \u2192 Edit \u2192 Choose the PHP version you want to switch to \u2192 Save. You will see a small spinner when you visit your website during the switch. It will take a few minutes, so just be patient.<\/p>\n\n\n\n PHP 8.4 is now available in your control panel! Updating to the latest version of the popular programming language is the most important thing you can do for your website. It gives your website increased performance, faster load times, and increased security. In addition, PHP 8.4 is included completely free…<\/p>\n","protected":false},"author":45,"template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[456,458,460,461,457,424,459],"ht-kb-tag":[],"class_list":["post-21674","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-drupal-en","ht_kb_category-joomla-en","ht_kb_category-magento-en","ht_kb_category-other-cms","ht_kb_category-prestashop-en","ht_kb_category-web-and-php-settings","ht_kb_category-wordpress-en"],"yoast_head":"\n<\/figure>\n\n\n\n
Do I need to update my PHP version?<\/h2>\n\n\n\n
What are the benefits of updating PHP?<\/h3>\n\n\n\n
\n
What are the drawbacks of updating PHP?<\/h3>\n\n\n\n
How do I change the PHP version at Websupport?<\/h2>\n\n\n\n
\n
<\/figure>\n\n\n\n
<\/figure>\n","protected":false},"excerpt":{"rendered":"