{"id":3565,"date":"2023-02-12T09:03:31","date_gmt":"2023-02-12T09:03:31","guid":{"rendered":"https:\/\/greenixmedia.com\/?p=3565"},"modified":"2023-02-12T09:03:31","modified_gmt":"2023-02-12T09:03:31","slug":"secure-your-wordpress-site-by-updating-your-php","status":"publish","type":"post","link":"https:\/\/dev.greenixmedia.com\/index.php\/2023\/02\/12\/secure-your-wordpress-site-by-updating-your-php\/","title":{"rendered":"Secure your WordPress Site by Updating your PHP"},"content":{"rendered":"<p>Managing a WordPress site? Make sure you review what version of PHP your site is running on.<\/p>\n<p>As of December 2022, around 62.2% of WordPress sites are running on outdated, prior to 7.4 version of PHP. These sites are vulnerable to hacking.<\/p>\n<p>The safest PHP version that you should be using is the current revision, 8.0 or version 8.1.<\/p>\n<p>So what exactly is PHP? \u201cHypertext Preprocessor is a server-side scripting language designed for Web development, and also used as a general-purpose programming language.\u201d To put it simply, a lot of sites are built on PHP programming language. All WordPress sites in particular.<\/p>\n<p>The prime reason why you need to update your PHP is that the versions prior to 8.0 are no longer receiving security patches, without which your site becomes extremely vulnerable to hacking.<\/p>\n<p>Considering the fact that only 37.7% of websites are on PHP version 8.0 or higher, chances of you having to deal with this issue are greater, at least on one of the sites that you\u00a0 manage. When you log in to your WordPress dashboard, you will see a warning message which is a clear indication to update your PHP version.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-3566\" src=\"https:\/\/greenixmedia.com\/wp-content\/uploads\/2020\/02\/PHP-version-update.png\" alt=\"\" width=\"453\" height=\"253\" srcset=\"https:\/\/dev.greenixmedia.com\/wp-content\/uploads\/2020\/02\/PHP-version-update.png 453w, https:\/\/dev.greenixmedia.com\/wp-content\/uploads\/2020\/02\/PHP-version-update-300x168.png 300w\" sizes=\"(max-width: 453px) 100vw, 453px\" \/><\/p>\n<p>Upon seeing the message, you need to contact your hosting company and ask them about the steps that need to be taken to get your PHP updated to version 8.1 or higher. Although your hosting company will assist you with everything, you will have to check on all of your plugins before updating.<\/p>\n<p>You can even check the version of your PHP by installing this PHP plugin. Have a look to find out where each version of PHP is in their life cycle according to php.net.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-3567\" src=\"https:\/\/greenixmedia.com\/wp-content\/uploads\/2020\/02\/PHP-versions.png\" alt=\"\" width=\"649\" height=\"180\" srcset=\"https:\/\/dev.greenixmedia.com\/wp-content\/uploads\/2020\/02\/PHP-versions.png 649w, https:\/\/dev.greenixmedia.com\/wp-content\/uploads\/2020\/02\/PHP-versions-300x83.png 300w\" sizes=\"(max-width: 649px) 100vw, 649px\" \/><\/p>\n<p>Updating your PHP isn\u2019t complicated. You can start by backing up your website. However, outdated plugins and themes can make it seem complicated.<\/p>\n<p><strong>Theme &amp; Plugin Compatibility With New PHP Versions<\/strong><\/p>\n<p>At times you may find that the older plugins and older themes or the custom plugins aren\u2019t compatible with 8.1 or higher versions. Before updating your PHP, it is advised to check which ones are likely to create incompatibility issues and get them updated or replaced.<\/p>\n<p>If you have a very outdated theme and are looking to update it, you will have to make certain adjustments for a more recent version. Themes that have a high risk of upgrading problems are those that use advanced editors such as Visual Composer. We have observed that these editors usually generate layout, menu, etc. problems when upgrading the theme.<\/p>\n<p>To avoid facing any problems, it is necessary that you resolve any issues before upgrading your PHP version. We suggest you follow the process in the following order to make things easier.<\/p>\n<ul>\n<li>Delete any plugins that are not in use.<\/li>\n<li>Check if there are any compatibility issues with the plugins and themes using PHP Compatibility Checker.<\/li>\n<li>Consider using a different plugin in case the latest version of plugins aren\u2019t compatible with 8.1 or higher.<\/li>\n<li>Next, go to your web hosting control panel and find the PHP section where you will see the upgrade your website option.<\/li>\n<li>Besides, you can always reach out to us if you get stuck at any stage! Our experienced team members will help you out.<\/li>\n<\/ul>\n<p>Not interested or don&#8217;t have time to handle the monthly checks on your site?\u00a0 We have <a href=\"https:\/\/greenixmedia.com\/wordpress-management\/\">excellent WordPress maintenance plans<\/a>&#8230; check it out<\/p>\n<p>[fusion_button link=&#8221;https:\/\/greenixmedia.com\/wordpress-management\/&#8221; text_transform=&#8221;&#8221; title=&#8221;&#8221; target=&#8221;_self&#8221; link_attributes=&#8221;&#8221; alignment=&#8221;&#8221; modal=&#8221;&#8221; hide_on_mobile=&#8221;small-visibility,medium-visibility,large-visibility&#8221; class=&#8221;&#8221; id=&#8221;&#8221; color=&#8221;default&#8221; button_gradient_top_color=&#8221;&#8221; button_gradient_bottom_color=&#8221;&#8221; button_gradient_top_color_hover=&#8221;&#8221; button_gradient_bottom_color_hover=&#8221;&#8221; accent_color=&#8221;&#8221; accent_hover_color=&#8221;&#8221; type=&#8221;&#8221; bevel_color=&#8221;&#8221; border_width=&#8221;&#8221; border_radius=&#8221;&#8221; border_color=&#8221;&#8221; border_hover_color=&#8221;&#8221; size=&#8221;&#8221; stretch=&#8221;default&#8221; icon=&#8221;&#8221; icon_position=&#8221;left&#8221; icon_divider=&#8221;no&#8221; animation_type=&#8221;&#8221; animation_direction=&#8221;left&#8221; animation_speed=&#8221;0.3&#8243; animation_offset=&#8221;&#8221;]Website Maintenance Plans[\/fusion_button]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Managing a WordPress site? Make sure you review what version of PHP your site is running on. As of December 2022, around 62.2% of WordPress sites are running on outdated, prior to 7.4 version of PHP. These sites are vulnerable to hacking. The safest PHP version that you should be using is the current revision,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":7745,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[106],"tags":[],"hf_cat_post":[131],"class_list":["post-3565","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-featured"],"acf":[],"_links":{"self":[{"href":"https:\/\/dev.greenixmedia.com\/index.php\/wp-json\/wp\/v2\/posts\/3565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.greenixmedia.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.greenixmedia.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.greenixmedia.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.greenixmedia.com\/index.php\/wp-json\/wp\/v2\/comments?post=3565"}],"version-history":[{"count":0,"href":"https:\/\/dev.greenixmedia.com\/index.php\/wp-json\/wp\/v2\/posts\/3565\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dev.greenixmedia.com\/index.php\/wp-json\/wp\/v2\/media\/7745"}],"wp:attachment":[{"href":"https:\/\/dev.greenixmedia.com\/index.php\/wp-json\/wp\/v2\/media?parent=3565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.greenixmedia.com\/index.php\/wp-json\/wp\/v2\/categories?post=3565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.greenixmedia.com\/index.php\/wp-json\/wp\/v2\/tags?post=3565"},{"taxonomy":"hf_cat_post","embeddable":true,"href":"https:\/\/dev.greenixmedia.com\/index.php\/wp-json\/wp\/v2\/hf_cat_post?post=3565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}