{"id":34259,"date":"2023-06-15T02:26:52","date_gmt":"2023-06-15T02:26:52","guid":{"rendered":"https:\/\/www.wpstaq.com\/?post_type=knowledgebase&#038;p=34259"},"modified":"2026-05-01T21:16:07","modified_gmt":"2026-05-01T21:16:07","slug":"how-to-upgrade-to-php8","status":"publish","type":"knowledgebase","link":"https:\/\/www.wpstaq.com\/nz\/knowledgebase\/how-to-upgrade-to-php8\/","title":{"rendered":"How to downgrade or upgrade to PHP version"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>In some cases, you may need to change the PHP version running on your WordPress site for compatibility reasons. This guide will show you how to both downgrade and upgrade the PHP version using the Staq Panel.<\/p>\n<h2>PHP Versions We Support<\/h2>\n<p>Our platform supports PHP versions:<\/p>\n<ul>\n<li>7.4<\/li>\n<li>8.2<\/li>\n<li>8.5<\/li>\n<\/ul>\n<h2>Selecting a PHP Version<\/h2>\n<h3>Step 1<\/h3>\n<p>Inside the Staq dashboard, go to the site&#8217;s Staq Panel and click <strong>PHP Config:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-34260\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/PHP-Config.png\" alt=\"\" width=\"1192\" height=\"711\" srcset=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/PHP-Config.png 1192w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/PHP-Config-300x179.png 300w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/PHP-Config-1024x611.png 1024w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/PHP-Config-768x458.png 768w\" sizes=\"auto, (max-width: 1192px) 100vw, 1192px\" \/><\/p>\n<h3>Step 2<\/h3>\n<p>To avoid spinning up a staging website, Staq has built a PHP compatibility feature. To access this feature, under **PHP version**, click **8.2** or **8.5** and below, you should see <strong>Test PHP version compatibility<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-34261\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/Test-PHP-Compatibility.png\" alt=\"\" width=\"473\" height=\"230\" srcset=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/Test-PHP-Compatibility.png 473w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/Test-PHP-Compatibility-300x146.png 300w\" sizes=\"auto, (max-width: 473px) 100vw, 473px\" \/><\/p>\n<h4>Step 2.1<\/h4>\n<p>The tool will run and assess the code&#8217;s syntax for both plugins and themes (both active and deactivated plugins and themes).<\/p>\n<p>If the site isn&#8217;t ready to be upgraded to PHP 8.2 or PHP8.5, it will show what plugins or themes are preventing the upgrade:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-34262\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/php-8-fail.png\" alt=\"\" width=\"984\" height=\"538\" srcset=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/php-8-fail.png 984w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/php-8-fail-300x164.png 300w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/php-8-fail-768x420.png 768w\" sizes=\"auto, (max-width: 984px) 100vw, 984px\" \/><\/p>\n<p>To resolve this, update the identified plugins or themes to their latest versions.<\/p>\n<h4>Step 2.2<\/h4>\n<p>If your site is ready to be upgraded to PHP 8.2 or PHP 8.5, you will receive a success message:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-34263\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/php-8-success.png\" alt=\"\" width=\"890\" height=\"466\" srcset=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/php-8-success.png 890w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/php-8-success-300x157.png 300w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/php-8-success-768x402.png 768w\" sizes=\"auto, (max-width: 890px) 100vw, 890px\" \/><\/p>\n<h3>Step 3<\/h3>\n<p>Click <strong>Close<\/strong> after verifying compatibility and ensure that the desired PHP version remains selected.<br \/>\nScroll down and click <strong>Save<\/strong>.<\/p>\n<p>The upgrade will be applied shortly.<\/p>\n<h3>Step 4<\/h3>\n<p>To verify that your site is running the desired PHP version, log into the WordPress website and click <strong>Staq Hosting &gt; Advanced &gt; PHP version<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-34264\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/PHP-info-validation.png\" alt=\"\" width=\"1252\" height=\"499\" srcset=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/PHP-info-validation.png 1252w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/PHP-info-validation-300x120.png 300w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/PHP-info-validation-1024x408.png 1024w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/06\/PHP-info-validation-768x306.png 768w\" sizes=\"auto, (max-width: 1252px) 100vw, 1252px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>By following these steps, you can easily downgrade or upgrade the PHP version on your WordPress site using Staq Panel. Always ensure that your site&#8217;s plugins and themes are compatible with the PHP version you select, and if you run into any issues, feel free to contact our support team for assistance.<\/p>\n","protected":false},"featured_media":33393,"parent":0,"template":"","class_list":["post-34259","knowledgebase","type-knowledgebase","status-publish","has-post-thumbnail","hentry","categories-php-settings"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to downgrade or upgrade to PHP version - Managed Hosting Platform for WordPress<\/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:\/\/www.wpstaq.com\/knowledgebase\/how-to-upgrade-to-php8\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to downgrade or upgrade to PHP version - Managed Hosting Platform for WordPress\" \/>\n<meta property=\"og:description\" content=\"Introduction In some cases, you may need to change the PHP version running on your WordPress site for compatibility reasons. This guide will show you how to both downgrade and upgrade the PHP version using the Staq Panel. PHP Versions We Support Our platform supports PHP versions: 7.4 8.2 8.5 Selecting a PHP Version Step&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-upgrade-to-php8\/\" \/>\n<meta property=\"og:site_name\" content=\"Managed Hosting Platform for WordPress\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/staqhosting\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-01T21:16:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/Does-Staq-Support-PHP8.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-upgrade-to-php8\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-upgrade-to-php8\\\/\",\"name\":\"How to downgrade or upgrade to PHP version - Managed Hosting Platform for WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-upgrade-to-php8\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-upgrade-to-php8\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Does-Staq-Support-PHP8.png\",\"datePublished\":\"2023-06-15T02:26:52+00:00\",\"dateModified\":\"2026-05-01T21:16:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-upgrade-to-php8\\\/#breadcrumb\"},\"inLanguage\":\"en-nz\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-upgrade-to-php8\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-nz\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-upgrade-to-php8\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Does-Staq-Support-PHP8.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Does-Staq-Support-PHP8.png\",\"width\":1000,\"height\":500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-upgrade-to-php8\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.wpstaq.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to downgrade or upgrade to PHP version\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"name\":\"Managed Hosting Platform for WordPress\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wpstaq.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-nz\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\",\"name\":\"Staq\",\"alternateName\":\"WPStaq\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-nz\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"width\":512,\"height\":512,\"caption\":\"Staq\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/staqhosting\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wpstaq\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to downgrade or upgrade to PHP version - Managed Hosting Platform for WordPress","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:\/\/www.wpstaq.com\/knowledgebase\/how-to-upgrade-to-php8\/","og_locale":"en_US","og_type":"article","og_title":"How to downgrade or upgrade to PHP version - Managed Hosting Platform for WordPress","og_description":"Introduction In some cases, you may need to change the PHP version running on your WordPress site for compatibility reasons. This guide will show you how to both downgrade and upgrade the PHP version using the Staq Panel. PHP Versions We Support Our platform supports PHP versions: 7.4 8.2 8.5 Selecting a PHP Version Step&hellip;","og_url":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-upgrade-to-php8\/","og_site_name":"Managed Hosting Platform for WordPress","article_publisher":"https:\/\/www.facebook.com\/staqhosting\/","article_modified_time":"2026-05-01T21:16:07+00:00","og_image":[{"width":1000,"height":500,"url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/Does-Staq-Support-PHP8.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-upgrade-to-php8\/","url":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-upgrade-to-php8\/","name":"How to downgrade or upgrade to PHP version - Managed Hosting Platform for WordPress","isPartOf":{"@id":"https:\/\/www.wpstaq.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-upgrade-to-php8\/#primaryimage"},"image":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-upgrade-to-php8\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/Does-Staq-Support-PHP8.png","datePublished":"2023-06-15T02:26:52+00:00","dateModified":"2026-05-01T21:16:07+00:00","breadcrumb":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-upgrade-to-php8\/#breadcrumb"},"inLanguage":"en-nz","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wpstaq.com\/knowledgebase\/how-to-upgrade-to-php8\/"]}]},{"@type":"ImageObject","inLanguage":"en-nz","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-upgrade-to-php8\/#primaryimage","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/Does-Staq-Support-PHP8.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/Does-Staq-Support-PHP8.png","width":1000,"height":500},{"@type":"BreadcrumbList","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-upgrade-to-php8\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wpstaq.com\/"},{"@type":"ListItem","position":2,"name":"How to downgrade or upgrade to PHP version"}]},{"@type":"WebSite","@id":"https:\/\/www.wpstaq.com\/#website","url":"https:\/\/www.wpstaq.com\/","name":"Managed Hosting Platform for WordPress","description":"","publisher":{"@id":"https:\/\/www.wpstaq.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wpstaq.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-nz"},{"@type":"Organization","@id":"https:\/\/www.wpstaq.com\/#organization","name":"Staq","alternateName":"WPStaq","url":"https:\/\/www.wpstaq.com\/","logo":{"@type":"ImageObject","inLanguage":"en-nz","@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","width":512,"height":512,"caption":"Staq"},"image":{"@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/staqhosting\/","https:\/\/www.linkedin.com\/company\/wpstaq"]}]}},"_links":{"self":[{"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/knowledgebase\/34259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/types\/knowledgebase"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/media\/33393"}],"wp:attachment":[{"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/media?parent=34259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}