{"id":678,"date":"2023-09-06T06:34:40","date_gmt":"2023-09-06T05:34:40","guid":{"rendered":"https:\/\/harmonweb.com\/blog\/?p=678"},"modified":"2024-01-05T09:54:23","modified_gmt":"2024-01-05T08:54:23","slug":"how-to-update-php-in-wordpress","status":"publish","type":"post","link":"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/","title":{"rendered":"How to update PHP in WordPress"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.lucushost.com\/blog\/wp-content\/uploads\/2022\/05\/actualizar-php-wordpress.png\" alt=\"Update PHP in WordPress\" title=\"actualizar php wordpress\"\/><\/figure>\n\n\n\n<p>Keeping your application always up to date is essential to improve its security and avoid unnecessary risks.&nbsp;This maintenance does not only involve updating WordPress core, templates, or plugins, there are other aspects that you must also take into account.&nbsp;So today I am going to tell you about one of them, I am going to explain how to update PHP in WordPress.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e58579a4d13\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e58579a4d13\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/#Do_I_have_to_update_PHP_in_WordPress\" >Do I have to update PHP in WordPress?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/#Security\" >Security<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/#Performance\" >Performance<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/#How_to_know_the_version_of_PHP_that_my_WordPress_has\" >How to know the version of PHP that my WordPress has?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/#How_to_update_PHP_in_WordPress\" >How to update PHP in WordPress<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/#Update_PHP_for_a_single_WordPress_website\" >Update PHP for a single WordPress website<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/#Problems_updating_PHP_in_WordPress\" >Problems updating PHP in WordPress?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/#In_conclusion%E2%80%A6\" >In conclusion\u2026<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Do_I_have_to_update_PHP_in_WordPress\"><\/span>Do I have to update PHP in WordPress?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>As with any other software, the most widely used programming language, PHP, also requires updating and using recent versions.<\/p>\n\n\n\n<p>Keep in mind that outdated versions of PHP can cause incompatibilities with new versions of your plugins or templates, as well as with the WordPress core itself.&nbsp;These types of incompatibilities can cause errors in the functioning of your site, but also more &#8220;serious&#8221; problems such as the&nbsp;WordPress white screen, which leaves your site completely inoperative.<\/p>\n\n\n\n<p>And not only are errors derived from version incompatibilities, but updating PHP in WordPress is necessary to maintain the security of your site and, in addition, improve the performance of your application.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Security\"><\/span>Security<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>When a software update is released, in this case, PHP, security patches are usually incorporated that correct vulnerabilities or errors that can put your website at risk.<\/p>\n\n\n\n<p>Also, at the same time that new versions are released, others become obsolete and are no longer supported, such as PHP 5.6, PHP 7.1, and PHP 7.2.&nbsp;In the case of PHP 7.3, support has ended in December 2020, although security maintenance continued until December 2021.<\/p>\n\n\n\n<p>So much so that WordPress already recommends the use of a version of&nbsp;<strong>PHP equal to or greater than 7.4<\/strong>.&nbsp;Therefore, if you use an older one, it is best to update.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Performance\"><\/span>Performance<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>In addition to security patches, the new versions of PHP incorporate functionalities and features in this programming language that improves the speed and favor the performance of your web page.<\/p>\n\n\n\n<p>And considering that Google takes into account the speed and loading times of your site when it comes to positioning it in the SERPs, don&#8217;t you think that&#8217;s more than enough reason to update PHP in WordPress?<\/p>\n\n\n\n<p>Tell me what you prefer: A WordPress from 2021 or one from 2015?<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_know_the_version_of_PHP_that_my_WordPress_has\"><\/span>How to know the version of PHP that my WordPress has?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before updating PHP in WordPress, the first thing is to know&nbsp;<strong>what version of PHP I have installed<\/strong>.<\/p>\n\n\n\n<p>This is very simple and you can do it directly through the WordPress administration panel.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Access the WordPress backend and, in the side menu, click on \u201cTools\u201d \u2013 \u201cSite Health\u201d.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/yoast.com\/app\/uploads\/2020\/02\/where-to-find-site-health-in-wordpress-600x616.jpg\" alt=\"WordPress Site Health: What is it and where to find it? \u2022 Yoast\"\/><\/figure>\n\n\n\n<ol class=\"wp-block-list\"><li>Go to the \u201cInformation\u201d tab and open the \u201cServer\u201d section.&nbsp;There you will see all the information related to your service (PHP version, type of server, etc.).<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.wpbeginner.com\/wp-content\/uploads\/2020\/12\/drilldown-sysinfo.png\" alt=\"How to Quickly Get System Information for Your WordPress Site\"\/><\/figure>\n\n\n\n<p>Can&#8217;t find the &#8220;Site Health&#8221; tool in WordPress?&nbsp;That means that in addition to updating the PHP version, you also need to update WordPress.<\/p>\n\n\n\n<p>This tool was already incorporated with the&nbsp;<strong>WordPress 6.0<\/strong>&nbsp;release, so it&#8217;s time to bring your application up to date.<\/p>\n\n\n\n<p>In any case, here is an alternative to knowing the PHP version of your WordPress.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Open a text editor such as Sublime or Notepad on your PC and type the following lines of code.&nbsp;Save the file with the name info.php.&lt;?phpphpinfo();?&gt;<\/li><li>Access the control panel of your hosting and open the&nbsp;<strong>cPanel file manager<\/strong>.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/manage.accuwebhosting.com\/images\/kb\/351_cPanel-file.png\" alt=\"How to access file manager in cpanel? - Knowledgebase - AccuWebHosting\"\/><\/figure>\n\n\n\n<ol class=\"wp-block-list\"><li>Go to the&nbsp;<em>public_html<\/em>&nbsp;of your WordPress and upload the file we just created.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/cpanel_update-phpini_1-phpini-view.png\" alt=\"the-php-temporary-directory-is-not-set\"\/><\/figure>\n\n\n\n<ol class=\"wp-block-list\"><li>Finally run this file.&nbsp;Open your browser, type your domain and add \u201cinfo.php\u201d to the end of the URL, and press \u201cEnter\u201d.&nbsp;Automatically, a window like the one shown below will open.&nbsp;<img loading=\"lazy\" decoding=\"async\" width=\"966\" height=\"382\" srcset=\"https:\/\/www.lucushost.com\/blog\/wp-content\/uploads\/2021\/03\/archivo-info-php-1.png 966w, https:\/\/www.lucushost.com\/blog\/wp-content\/uploads\/2021\/03\/archivo-info-php-1-300x119.png 300w, https:\/\/www.lucushost.com\/blog\/wp-content\/uploads\/2021\/03\/archivo-info-php-1-768x304.png 768w, https:\/\/www.lucushost.com\/blog\/wp-content\/uploads\/2021\/03\/archivo-info-php-1-700x277.png 700w\" src=\"https:\/\/www.lucushost.com\/blog\/wp-content\/uploads\/2021\/03\/archivo-info-php-1.png\" alt=\"Info.php file information\"><\/li><\/ol>\n\n\n\n<p><strong>Important<\/strong>: Once you check which version of PHP WordPress is working with, go back to the&nbsp;<em>public_html<\/em>&nbsp;of your hosting and delete the file you just uploaded.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_update_PHP_in_WordPress\"><\/span>How to update PHP in WordPress<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you got here it is because you want to update PHP in WordPress, so let&#8217;s get down to business.&nbsp;You will see that it is very fast!<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Log in to cPanel and go to the \u201cSoftware\u201d section.&nbsp;Once there, locate the \u201cSelect PHP version\u201d option and click on it.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.a2hosting.es\/images\/uploads\/knowledgebase_images\/kb-turbo-php-version-icon_1.png\" alt=\"Changing PHP versions and settings using PHP Selector\"\/><\/figure>\n\n\n\n<ol class=\"wp-block-list\"><li>Now a screen like this will open showing the PHP version used by your hosting plan.&nbsp;If you want the change to affect your entire hosting account, that is, all the applications you have installed, simply open the dropdown and select the version you want to use.&nbsp;To save the changes, click on \u201cSet as current\u201d.<img loading=\"lazy\" decoding=\"async\" width=\"1555\" height=\"825\" srcset=\"https:\/\/www.lucushost.com\/blog\/wp-content\/uploads\/2021\/03\/actualizar-php-wordpress-desde-cpanel.png 1555w, https:\/\/www.lucushost.com\/blog\/wp-content\/uploads\/2021\/03\/actualizar-php-wordpress-desde-cpanel-300x159.png 300w, https:\/\/www.lucushost.com\/blog\/wp-content\/uploads\/2021\/03\/actualizar-php-wordpress-desde-cpanel-1024x543.png 1024w, https:\/\/www.lucushost.com\/blog\/wp-content\/uploads\/2021\/03\/actualizar-php-wordpress-desde-cpanel-768x407.png 768w, https:\/\/www.lucushost.com\/blog\/wp-content\/uploads\/2021\/03\/actualizar-php-wordpress-desde-cpanel-1536x815.png 1536w, https:\/\/www.lucushost.com\/blog\/wp-content\/uploads\/2021\/03\/actualizar-php-wordpress-desde-cpanel-700x371.png 700w\" src=\"https:\/\/www.lucushost.com\/blog\/wp-content\/uploads\/2021\/03\/actualizar-php-wordpress-desde-cpanel.png\" alt=\"Update WordPress PHP version from cPanel\"><\/li><\/ol>\n\n\n\n<p>But what if I don&#8217;t want to update the PHP version of my entire hosting account?&nbsp;Don&#8217;t worry, you can do it too.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Update_PHP_for_a_single_WordPress_website\"><\/span>Update PHP for a single WordPress website<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If any of the applications or web pages that you have hosted in your hosting plan have some specific PHP requirements, you can change the version of this programming language by modifying the .htaccess file of your website.<\/p>\n\n\n\n<p>To do this, follow the steps that I indicate below.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Access the control panel of your hosting and open the cPanel file manager.<\/li><li>Go to the .htaccess file of the WordPress in which you want to update PHP.&nbsp;If you can&#8217;t find it, click on the &#8220;Settings&#8221; button (top right) and make sure you have the &#8220;Show hidden files (&nbsp;<em>dotfiles<\/em>&nbsp;)&#8221; option selected.<\/li><li>Edit the file with the following lines of code.&nbsp;Be careful, modify the second line depending on the version you want to establish.&nbsp;In this example we will set PHP version 7.4:&lt;FilesMatch &#8220;\\.(php4|php5|php3|php2|php|phtml)$&#8221;&gt;SetHandler application\/x-lsphp74&lt;\/FilesMatch&gt;<\/li><\/ol>\n\n\n\n<p>If you have questions or want more information, I recommend you take a look at this article in our Help section:&nbsp;<strong>How to change the PHP version in cPanel<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Problems_updating_PHP_in_WordPress\"><\/span>Problems updating PHP in WordPress?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Although it is not the most common, it is possible that when updating PHP in WordPress there is a misunderstanding with a plugin or template that you have installed on your website.&nbsp;This usually happens especially if the PHP version is very new and there are still untested WordPress plugins.<\/p>\n\n\n\n<p>If this is your case and after updating PHP you detect an error, the easiest thing is to revert the changes, that is, go back to the version you had installed and see which WordPress plugins are the ones that may be causing these errors.<\/p>\n\n\n\n<p>And would restoring a backup fix the problem?&nbsp;Yes and no.&nbsp;Below I will explain why.<\/p>\n\n\n\n<p>If you only restore a backup of your website or your application, the incompatibility problems will not be solved, since the backup would be restored on your cPanel account, which has a different version of PHP than the one you were using.<\/p>\n\n\n\n<p>On the other hand, if you restore a complete copy of cPanel, all the data would return to its previous state, both those of cPanel and those of your website.&nbsp;However, if you have more pages hosted on your hosting, it is recommended to revert the PHP version from the control panel.<\/p>\n\n\n\n<p>Remember that if you have a&nbsp;<strong>WordPress SSD Hosting<\/strong>, or any other web hosting plan with us, from your client area you have access to&nbsp;<strong>Premium Backup<\/strong>.&nbsp;A tool that makes backup daily of all your content and allows you to perform any restoration (full account, application, database, etc.) in just a few clicks.<\/p>\n\n\n\n<p>Having\u00a0<strong>staging in WordPress<\/strong>\u00a0is also very useful for this type of case.\u00a0So instead of executing the change in a live environment, you can do it on a test site and check that everything works like a charm before taking it to production.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"In_conclusion%E2%80%A6\"><\/span>In conclusion\u2026<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>As we have seen in this article, updating PHP in WordPress is a very simple process and you should do it if you are using an outdated version of this programming language.<\/p>\n\n\n\n<p>Of course, before making any changes, the idea is that you have a test site in which to test that this update is not going to affect the operation of your site.&nbsp;However, if you have already made the change in a live environment, you can always go back by reverting the PHP version or even restoring a backup of your hosting.<\/p>\n\n\n\n<p>Now tell me, have you ever screwed up your website by making a change like this?&nbsp;How did you fix it?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Keeping your application always up to date is essential to improve its security and avoid unnecessary risks.&nbsp;This maintenance&hellip;<\/p>\n","protected":false},"author":1,"featured_media":681,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[158],"tags":[],"class_list":["post-678","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-troubleshooting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to update PHP in WordPress | HarmonWeb Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to update PHP in WordPress | HarmonWeb Blog\" \/>\n<meta property=\"og:description\" content=\"Keeping your application always up to date is essential to improve its security and avoid unnecessary risks.&nbsp;This maintenance&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"HarmonWeb Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-06T05:34:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-05T08:54:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/05\/How-to-update-PHP-in-WordPress-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"865\" \/>\n\t<meta property=\"og:image:height\" content=\"340\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"John Adegoke\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"John Adegoke\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/how-to-update-php-in-wordpress\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/how-to-update-php-in-wordpress\\\/\"},\"author\":{\"name\":\"John Adegoke\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/#\\\/schema\\\/person\\\/e9bc75c3e7e30a261690c47ec872a8fc\"},\"headline\":\"How to update PHP in WordPress\",\"datePublished\":\"2023-09-06T05:34:40+00:00\",\"dateModified\":\"2024-01-05T08:54:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/how-to-update-php-in-wordpress\\\/\"},\"wordCount\":1416,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/how-to-update-php-in-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/How-to-update-PHP-in-WordPress-1.png\",\"articleSection\":[\"Troubleshooting\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/harmonweb.com\\\/blog\\\/how-to-update-php-in-wordpress\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/how-to-update-php-in-wordpress\\\/\",\"url\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/how-to-update-php-in-wordpress\\\/\",\"name\":\"How to update PHP in WordPress | HarmonWeb Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/how-to-update-php-in-wordpress\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/how-to-update-php-in-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/How-to-update-PHP-in-WordPress-1.png\",\"datePublished\":\"2023-09-06T05:34:40+00:00\",\"dateModified\":\"2024-01-05T08:54:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/how-to-update-php-in-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/harmonweb.com\\\/blog\\\/how-to-update-php-in-wordpress\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/how-to-update-php-in-wordpress\\\/#primaryimage\",\"url\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/How-to-update-PHP-in-WordPress-1.png\",\"contentUrl\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/How-to-update-PHP-in-WordPress-1.png\",\"width\":865,\"height\":340},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/how-to-update-php-in-wordpress\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to update PHP in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/\",\"name\":\"HarmonWeb Blog\",\"description\":\"HarmonWeb\",\"publisher\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/#organization\",\"name\":\"HarmonWeb\",\"url\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/cropped-HARMON-WEB-LOGO-2.png\",\"contentUrl\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/cropped-HARMON-WEB-LOGO-2.png\",\"width\":831,\"height\":172,\"caption\":\"HarmonWeb\"},\"image\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/#\\\/schema\\\/person\\\/e9bc75c3e7e30a261690c47ec872a8fc\",\"name\":\"John Adegoke\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/0843e926db683e41ace2aee54210b841.jpg?ver=1776234865\",\"url\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/0843e926db683e41ace2aee54210b841.jpg?ver=1776234865\",\"contentUrl\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/0843e926db683e41ace2aee54210b841.jpg?ver=1776234865\",\"caption\":\"John Adegoke\"},\"sameAs\":[\"https:\\\/\\\/harmonweb.com\\\/blog\"],\"url\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/author\\\/harmonweb\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to update PHP in WordPress | HarmonWeb Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"How to update PHP in WordPress | HarmonWeb Blog","og_description":"Keeping your application always up to date is essential to improve its security and avoid unnecessary risks.&nbsp;This maintenance&hellip;","og_url":"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/","og_site_name":"HarmonWeb Blog","article_published_time":"2023-09-06T05:34:40+00:00","article_modified_time":"2024-01-05T08:54:23+00:00","og_image":[{"width":865,"height":340,"url":"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/05\/How-to-update-PHP-in-WordPress-1.png","type":"image\/png"}],"author":"John Adegoke","twitter_card":"summary_large_image","twitter_misc":{"Written by":"John Adegoke","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/#article","isPartOf":{"@id":"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/"},"author":{"name":"John Adegoke","@id":"https:\/\/harmonweb.com\/blog\/#\/schema\/person\/e9bc75c3e7e30a261690c47ec872a8fc"},"headline":"How to update PHP in WordPress","datePublished":"2023-09-06T05:34:40+00:00","dateModified":"2024-01-05T08:54:23+00:00","mainEntityOfPage":{"@id":"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/"},"wordCount":1416,"commentCount":2,"publisher":{"@id":"https:\/\/harmonweb.com\/blog\/#organization"},"image":{"@id":"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/05\/How-to-update-PHP-in-WordPress-1.png","articleSection":["Troubleshooting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/","url":"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/","name":"How to update PHP in WordPress | HarmonWeb Blog","isPartOf":{"@id":"https:\/\/harmonweb.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/05\/How-to-update-PHP-in-WordPress-1.png","datePublished":"2023-09-06T05:34:40+00:00","dateModified":"2024-01-05T08:54:23+00:00","breadcrumb":{"@id":"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/#primaryimage","url":"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/05\/How-to-update-PHP-in-WordPress-1.png","contentUrl":"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/05\/How-to-update-PHP-in-WordPress-1.png","width":865,"height":340},{"@type":"BreadcrumbList","@id":"https:\/\/harmonweb.com\/blog\/how-to-update-php-in-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/harmonweb.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to update PHP in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/harmonweb.com\/blog\/#website","url":"https:\/\/harmonweb.com\/blog\/","name":"HarmonWeb Blog","description":"HarmonWeb","publisher":{"@id":"https:\/\/harmonweb.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/harmonweb.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/harmonweb.com\/blog\/#organization","name":"HarmonWeb","url":"https:\/\/harmonweb.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/harmonweb.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2020\/06\/cropped-HARMON-WEB-LOGO-2.png","contentUrl":"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2020\/06\/cropped-HARMON-WEB-LOGO-2.png","width":831,"height":172,"caption":"HarmonWeb"},"image":{"@id":"https:\/\/harmonweb.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/harmonweb.com\/blog\/#\/schema\/person\/e9bc75c3e7e30a261690c47ec872a8fc","name":"John Adegoke","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/harmonweb.com\/blog\/wp-content\/litespeed\/avatar\/0843e926db683e41ace2aee54210b841.jpg?ver=1776234865","url":"https:\/\/harmonweb.com\/blog\/wp-content\/litespeed\/avatar\/0843e926db683e41ace2aee54210b841.jpg?ver=1776234865","contentUrl":"https:\/\/harmonweb.com\/blog\/wp-content\/litespeed\/avatar\/0843e926db683e41ace2aee54210b841.jpg?ver=1776234865","caption":"John Adegoke"},"sameAs":["https:\/\/harmonweb.com\/blog"],"url":"https:\/\/harmonweb.com\/blog\/author\/harmonweb\/"}]}},"_links":{"self":[{"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/posts\/678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/comments?post=678"}],"version-history":[{"count":3,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/posts\/678\/revisions"}],"predecessor-version":[{"id":701,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/posts\/678\/revisions\/701"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/media\/681"}],"wp:attachment":[{"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/media?parent=678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/categories?post=678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/tags?post=678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}