{"id":246034,"date":"2025-10-08T10:25:52","date_gmt":"2025-10-08T10:25:52","guid":{"rendered":"https:\/\/www.bluehost.com\/blog\/?p=246034"},"modified":"2026-01-23T12:00:11","modified_gmt":"2026-01-23T12:00:11","slug":"change-your-php-version-dedicated-and-vps-hosting","status":"publish","type":"post","link":"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/","title":{"rendered":"How to Change PHP Versions on VPS and Dedicated Servers"},"content":{"rendered":"\n<p>Managing your website&#8217;s performance and ensuring compatibility with the latest&nbsp;<a href=\"https:\/\/www.bluehost.com\/blog\/php-web-hosting-choose-provider\/\" rel=\"noreferrer noopener\" target=\"_blank\">PHP versions<\/a>&nbsp;is crucial for its smooth operation. If you&#8217;re a Bluehost&nbsp;<a href=\"https:\/\/www.bluehost.com\/hosting\/vps\" rel=\"noreferrer noopener\" target=\"_blank\">VPS<\/a>&nbsp;or&nbsp;<a href=\"https:\/\/www.bluehost.com\/hosting\/dedicated\" rel=\"noreferrer noopener\" target=\"_blank\">Dedicated<\/a>&nbsp;Hosting user, this guide will show you how to easily change PHP versions on VPS and Dedicated servers and configure essential settings using EasyApache 4 and Web Host Manager (WHM).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-why-it-s-important-to-update-your-php-version\">Why It&#8217;s Important to Update Your PHP Version<\/h2>\n\n\n\n<p>Updating your PHP version improves performance and ensures your site remains secure and compatible with the latest web technologies. Outdated PHP versions can lead to slower load times, security vulnerabilities, and compatibility issues with websites like WordPress or Magento. Here&#8217;s why updating your PHP version matters:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Security<\/strong>: New PHP versions often come with security patches for known vulnerabilities.<\/li>\n\n\n\n<li><strong>Performance<\/strong>: Modern PHP versions include optimizations that improve your site&#8217;s speed.<\/li>\n\n\n\n<li><strong>Compatibility<\/strong>: Upgrading ensures your site is compatible with the latest versions of themes, plugins, and scripts.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-change-php-versions-on-nbsp-vps-and-dedicated-servers-using-easyapache-4\"><a><\/a>How to Change PHP Versions on&nbsp;VPS and Dedicated Servers Using EasyApache 4<\/h2>\n\n\n\n<p>EasyApache 4 is a powerful tool for managing PHP versions on your server. Below are the detailed steps to switch to the latest PHP version on your&nbsp;<strong>BRAND VPS<\/strong>&nbsp;or&nbsp;<strong>Dedicated Hosting<\/strong>&nbsp;using EasyApache 4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-installing-a-new-php-version-with-easyapache-4\"><a><\/a>Installing a New PHP Version with EasyApache 4<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to&nbsp;<a href=\"https:\/\/www.bluehost.com\/help\/article\/vps-dedicated-hosting-log-in-to-whm\" target=\"_blank\" rel=\"noreferrer noopener\">WHM (Web Host Manager)<\/a>.<\/li>\n\n\n\n<li>In the&nbsp;<strong>Search<\/strong>&nbsp;bar, type&nbsp;<strong>Easy<\/strong>&nbsp;and click on&nbsp;<strong>EasyApache 4<\/strong>&nbsp;under the&nbsp;<strong>Software<\/strong>&nbsp;section.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/advanced-hosting\/vps\/whm-new-easyapache4.png\" alt=\"WHM EastApache4\"><\/li>\n\n\n\n<li><strong>Customize Installation<\/strong>: Click the&nbsp;<strong>Customize<\/strong>&nbsp;button in the&nbsp;<strong>Currently Installed Packages<\/strong>&nbsp;box.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/advanced-hosting\/vps\/whm-new-customize-currently-installed-packages.png\" alt=\"customize-currently-installed-packages\"><\/li>\n\n\n\n<li><strong>Select PHP Versions<\/strong>: From the menu on the left, select&nbsp;<strong>PHP Versions<\/strong>. Choose the PHP version you want to install, and click&nbsp;<strong>Review<\/strong>.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/advanced-hosting\/vps\/whm-new-php-versions.png\" alt=\"php-versions\"><br>You will be asked to install extensions if you upgrade your PHP version. We recommend that you upgrade those simultaneously with the new version of PHP so the MySQL extension is correct.\n<ul class=\"wp-block-list\">\n<li>Access (<strong>WHM<\/strong>&nbsp;&gt;&gt;<strong>&nbsp;Home<\/strong>&nbsp;&gt;&gt;&nbsp;<strong>Software<\/strong>&nbsp;&gt;&gt;&nbsp;<strong>EasyApache 4<\/strong>&nbsp;&gt;&gt;&nbsp;<strong>PHP Extensions<\/strong>) by entering the field in the search box and typing in MySQL to access the PHP extensions.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/advanced-hosting\/vps\/php-mysql-extensions.png\" alt=\"php-mysql-extensions\"><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Select the button&nbsp;<strong>PHP x.x and Extensions<\/strong>.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"681\" height=\"231\" src=\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/image-13.png\" alt=\"\" class=\"wp-image-246074\" srcset=\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/image-13.png 681w, https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/image-13-300x102.png 300w, https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/image-13-480x163.png 480w\" sizes=\"100vw\" \/><\/figure>\n\n\n\n<p>6. <strong>Complete Installation<\/strong>: After reviewing the options, select&nbsp;<strong>Provision<\/strong>&nbsp;at the bottom to install the new PHP version.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-configuring-php-settings-for-optimal-performance\"><a><\/a>Configuring PHP Settings for Optimal Performance<\/h2>\n\n\n\n<p>Once your new PHP version is installed, you must configure settings for optimal performance. Use the&nbsp;<strong>MultiPHP INI Editor<\/strong>&nbsp;to adjust PHP settings, such as&nbsp;<code>memory_limit<\/code>,&nbsp;<code>max_execution_time<\/code>, and others.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In&nbsp;<a href=\"https:\/\/www.bluehost.com\/help\/article\/vps-dedicated-hosting-log-in-to-whm\" target=\"_blank\" rel=\"noreferrer noopener\">WHM<\/a>, go to&nbsp;<strong>Software<\/strong>&nbsp;and click on&nbsp;<strong>MultiPHP INI Editor<\/strong>.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/advanced-hosting\/vps\/whm-new-multiphp-ini-editor.png\" alt=\"WHM MultiPHP INI Editor\"><\/li>\n\n\n\n<li><strong>Select PHP Version<\/strong>: Choose the version you want to configure using the dropdown menu.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/advanced-hosting\/vps\/whm-new-php-settings.png\" alt=\"WHM PHP Settings\"><br>You can change the most common settings in Basic Mode. To do this, find the Setting column and either click the button to enable or disable an option or enter the appropriate value in the field. After making your changes, click the Apply button at the bottom of the screen.\n<ul class=\"wp-block-list\">\n<li>Most servers and web applications do not need a memory_limit higher than 384 MB or a max_execution_time longer than 30 seconds. If a script needs more resources than this, it usually means a problem with the application should be fixed.<\/li>\n\n\n\n<li>While it might be tempting to set high values for memory_limit and max_execution_time, doing so can cause problems. It may lead to the server running out of memory or freezing, especially on smaller servers with limited resources. Raising these limits will not make your site faster.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/advanced-hosting\/vps\/whm-new-multiphp-ini-editor-editor-mode.png\" alt=\"WHM MultiPHP Editor Editor Mode\"><\/li>\n\n\n\n<li>If the setting you want to change isn\u2019t in Basic Mode, switch to Editor Mode and choose the PHP version there to view all options, such as&nbsp;<em>error_reporting<\/em>. Once you finish, click the&nbsp;<strong>Save<\/strong>&nbsp;button on the right side of the screen.<br>Below is a basic explanation of the settings in the basic editor.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li class=\"is-style-text-wrap-balance is-style-text-wrap-balance--1\"><strong>Basic Editor Settings<\/strong><br><strong>Allow_url_fopen<\/strong><br>We recommend leaving this off for security unless your PHP applications need it enabled.<br><strong>Display_errors<\/strong><br>Leave this off unless you currently use it to debug your PHP applications. Once finished, this should be disabled.<br><strong>File_uploads<\/strong><br>This feature must allow media uploads directly through your website dashboards.<br><strong>Max_execution_time<\/strong><br>This is set by default to 30 seconds and should not be changed. This is the length of time PHP processes are allowed to run on the server. Setting this high will allow PHP processes to run for days until the server runs out of memory or Apache locks up.<br><strong>Max_input_time<\/strong><br>This will set the maximum number of seconds a script should take to parse input data, such as POST, GET, and file uploads.&nbsp;Something like a media upload might take this long.&nbsp;If the process takes more than 60 seconds, it should be uploaded through FTP.<br><strong>Max_input_vars<\/strong><br>It is set to 1000 by default, and this should not be done so as this may raise the DDoS effectiveness and may crash the server.<br><strong>Memory_limit<\/strong><br>This is the server&#8217;s amount of RAM that allows a PHP process to run. Most WordPress sites don&#8217;t need more than 128M of memory to run. It should not be set higher than 384M unless it is necessary. For instance, if your server has 2GB of RAM, you would set the memory limit to 512M, and that might leave your server out of memory when running just 4 PHP processes. If your PHP application uses more than 512M, such as Magento, we recommend a minimum of 4G RAM.<br><strong>Post_max_size<\/strong><br>This is the maximum size of uploads via PHP, such as uploading files to the media library or the whole of a newly created blog post. It is, by default, 8M.&nbsp;Most of your website&#8217;s content shouldn&#8217;t be as big as small images, and media should make for a faster site. However, it can be adjusted if something is over 8M. We recommend that you reduce it after you upload the big file.<br><strong>Session.gc_maxlifetime<\/strong><br>This is the number of seconds the server will remember PHP sessions. This configuration should not be changed unless you are the administrator on the server and plan to change it.<br><strong>Session.save_path<\/strong><br>This is where all the PHP sessions above are stored. Do not edit this unless you must become a server administrator; it must be edited for you.<br><strong>Upload_max_filesize<\/strong><br>This is all in tandem with post_max_size. This is the maximum size that files may be uploaded through PHP, such as uploading images to your media library or single images within a blog post. It defaults to 2M. Most everything you&#8217;ll upload to this site won&#8217;t be remotely this big, as smaller images and media help make your site speedier. Still, it&#8217;s something that, if it is greater than 2M, you can turn it up if you have a large image or movie. We&#8217;d suggest dialing it back down when that&#8217;s all done.<br><strong>Zlib.output_compression<\/strong><br>This compression compresses your PHP coding before sending it from the server. This turned-off default setting must be enabled to compress the content meant for the PHP website in question.<\/li>\n\n\n\n<li>When done, click&nbsp;<strong>Apply<\/strong>&nbsp;at the bottom to save your settings.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-change-php-versions-on-nbsp-vps-and-dedicated-servers-using-multiphp-manager\"><strong><a><\/a>How to Change PHP Versions on&nbsp;VPS and Dedicated Servers Using MultiPHP Manager<\/strong><\/h2>\n\n\n\n<p>If you need to switch the PHP version for specific domains on your server, follow these steps in&nbsp;<strong>WHM<\/strong>.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to&nbsp;<a href=\"https:\/\/www.bluehost.com\/help\/article\/vps-dedicated-hosting-log-in-to-whm\" target=\"_blank\" rel=\"noreferrer noopener\">WHM<\/a>.<\/li>\n\n\n\n<li>In the search bar, type&nbsp;<strong>MultiPHP Manager<\/strong>&nbsp;and select it from the&nbsp;<strong>Software<\/strong>&nbsp;section.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/advanced-hosting\/vps\/whm-new-multiphp-manager.png\" alt=\"WHM MultiPHP Manager\"><\/li>\n\n\n\n<li><strong>Select PHP Version per Domain<\/strong>: In the&nbsp;<strong>Set PHP Version per Domain<\/strong>&nbsp;tab, you&#8217;ll see a list of domains hosted on the server.<\/li>\n\n\n\n<li><strong>Choose PHP Version<\/strong>: Use the dropdown menu next to each domain to select the desired PHP version.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/advanced-hosting\/vps\/whm-new-php-version-dropdown.png\" alt=\"php-version-dropdown\"><\/li>\n\n\n\n<li><strong>Apply Changes<\/strong>: The change will take effect instantly. If any issues arise, you can revert to the previous version using the same method.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-common-php-compatibility-issues-when-changing-versions\"><a><\/a>Common PHP Compatibility Issues When Changing Versions<\/h2>\n\n\n\n<p>When upgrading your PHP version, you may encounter compatibility issues. Below are some common problems and how to troubleshoot them.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-php-version-compatibility-with-wordpress-themes-plugins\"><a><\/a>PHP Version Compatibility with WordPress Themes\/Plugins<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Problem<\/strong>: After upgrading PHP, specific themes or plugins may stop working.<\/li>\n\n\n\n<li><strong>Solution<\/strong>: Check for plugin\/theme updates that support the newer PHP version. If no updates are available, consider contacting the plugin developer for assistance.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-php-fpm-issues-after-version-change\"><a><\/a>PHP-FPM Issues After Version Change<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Problem<\/strong>: PHP-FPM may not function correctly after changing the PHP version.<\/li>\n\n\n\n<li><strong>Solution<\/strong>: Ensure PHP-FPM is enabled for the correct PHP version. In WHM, go to&nbsp;<strong>MultiPHP Manager<\/strong>, select the domain, and ensure&nbsp;<strong>PHP-FPM<\/strong>&nbsp;is enabled for the active PHP version.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-deprecated-functions-in-new-php-versions\"><a><\/a>Deprecated Functions in New PHP Versions<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Problem<\/strong>: Some functions may be deprecated or removed in the newer PHP version, causing errors.<\/li>\n\n\n\n<li><strong>Solution<\/strong>: Review error logs to identify deprecated functions and update your codebase accordingly. Check for updates addressing these issues if you&#8217;re using a CMS.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-fixing-500-internal-server-error-after-php-update\"><a><\/a>Fixing &#8220;500 Internal Server Error&#8221; After PHP Update<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Problem<\/strong>: You may encounter a &#8220;500 Internal Server Error&#8221; after upgrading PHP.<\/li>\n\n\n\n<li><strong>Solution<\/strong>: This could be caused by incorrect PHP settings or incompatible scripts. Check the&nbsp;<strong>error_log<\/strong>&nbsp;in your server&#8217;s file manager to pinpoint the issue. Try reverting to the previous PHP version and resolving the issue before re-upgrading.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-faqs-and-support\"><a><\/a>FAQs and Support<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-do-i-check-which-php-version-is-active-on-my-domain\"><a><\/a>How do I check which PHP version is active on my domain?<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Log in to WHM, go to&nbsp;<strong>MultiPHP Manager<\/strong>, and check the PHP version for each domain under the&nbsp;<strong>Set PHP Version per Domain<\/strong>&nbsp;tab.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-can-i-revert-to-a-previous-php-version\"><a><\/a>Can I revert to a previous PHP version?<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can quickly revert to a previous version using the&nbsp;<strong>MultiPHP Manager<\/strong>&nbsp;in WHM. Select the older PHP version from the dropdown for your domain.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-what-do-i-do-if-my-website-breaks-after-upgrading-php\"><a><\/a>What do I do if my website breaks after upgrading PHP?<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If your&nbsp;site&nbsp;experiences issues,&nbsp;attempt&nbsp;to&nbsp;switch&nbsp;to the&nbsp;older&nbsp;version of&nbsp;PHP&nbsp;and&nbsp;troubleshoot&nbsp;the compatibility of your&nbsp;plugins&nbsp;or&nbsp;themes. Our&nbsp;customer&nbsp;support team is also&nbsp;here&nbsp;to&nbsp;help.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-summary\"><strong><a><\/a>Summary<\/strong><\/h2>\n\n\n\n<p>Keeping your&nbsp;<a href=\"https:\/\/www.bluehost.com\/blog\/php-web-hosting-choose-provider\/\" rel=\"noreferrer noopener\" target=\"_blank\">PHP version<\/a>&nbsp;up-to-date is essential for your website&#8217;s security, performance, and compatibility. Following the steps outlined in this guide, you can easily&nbsp;change PHP versions&nbsp;on&nbsp;<a href=\"https:\/\/www.bluehost.com\/hosting\/vps\" rel=\"noreferrer noopener\" target=\"_blank\">VPS<\/a>&nbsp;and&nbsp;<a href=\"https:\/\/www.bluehost.com\/hosting\/dedicated\" rel=\"noreferrer noopener\" target=\"_blank\">Dedicated<\/a>&nbsp;servers and configure settings using&nbsp;<strong>EasyApache 4<\/strong>&nbsp;and&nbsp;<strong>WHM<\/strong>.<\/p>\n\n\n\n<p>If you encounter any issues or need assistance, our support team is here to help. We recommend upgrading your PHP version and extensions simultaneously to ensure everything functions smoothly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Managing your website&#8217;s performance and ensuring compatibility with the latest&nbsp;PHP versions&nbsp;is crucial for its smooth operation. If you&#8217;re a Bluehost&nbsp;VPS&nbsp;or&nbsp;Dedicated&nbsp;Hosting user, this guide will show you how to easily change PHP versions on VPS and Dedicated servers and configure essential settings using EasyApache 4 and Web Host Manager (WHM). Why It&#8217;s Important to Update Your [&hellip;]<\/p>\n","protected":false},"author":154,"featured_media":246023,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","inline_featured_image":false,"footnotes":""},"categories":[381],"tags":[3330,3343],"ppma_author":[952],"class_list":["post-246034","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hosting","tag-how-to-guides","tag-tutorials"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.1 (Yoast SEO v27.1.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Change PHP Versions on VPS and Dedicated Servers - Bluehost 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:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/posts\/246034\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Change PHP Versions on VPS and Dedicated Servers\" \/>\n<meta property=\"og:description\" content=\"Managing your website&#8217;s performance and ensuring compatibility with the latest&nbsp;PHP versions&nbsp;is crucial for its smooth operation. If you&#8217;re a Bluehost&nbsp;VPS&nbsp;or&nbsp;Dedicated&nbsp;Hosting user, this guide will show you how to easily change PHP versions on VPS and Dedicated servers and configure essential settings using EasyApache 4 and Web Host Manager (WHM). Why It&#8217;s Important to Update Your [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/\" \/>\n<meta property=\"og:site_name\" content=\"Bluehost Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/bluehost\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-10-08T10:25:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-23T12:00:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Bhumika Daga\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bluehost\" \/>\n<meta name=\"twitter:site\" content=\"@bluehost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bhumika Daga\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/\"},\"author\":{\"name\":\"Bhumika Daga\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/#\/schema\/person\/488e1e616fe374fc935916dc8e3f34f0\"},\"headline\":\"How to Change PHP Versions on VPS and Dedicated Servers\",\"datePublished\":\"2025-10-08T10:25:52+00:00\",\"dateModified\":\"2026-01-23T12:00:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/\"},\"wordCount\":1794,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-2.png\",\"keywords\":[\"How-To Guides\",\"Tutorials\"],\"articleSection\":[\"Hosting\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/\",\"url\":\"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/\",\"name\":\"How to Change PHP Versions on VPS and Dedicated Servers - Bluehost Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-2.png\",\"datePublished\":\"2025-10-08T10:25:52+00:00\",\"dateModified\":\"2026-01-23T12:00:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/#primaryimage\",\"url\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-2.png\",\"contentUrl\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-2.png\",\"width\":1920,\"height\":1080,\"caption\":\"Change PHP Versions on VPS and Dedicated Servers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.bluehost.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hosting\",\"item\":\"https:\/\/www.bluehost.com\/blog\/category\/hosting\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Change PHP Versions on VPS and Dedicated Servers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/#website\",\"url\":\"https:\/\/www.bluehost.com\/blog\/\",\"name\":\"Bluehost\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.bluehost.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/#organization\",\"name\":\"Bluehost\",\"url\":\"https:\/\/www.bluehost.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2023\/08\/bluehost-logo.svg\",\"contentUrl\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2023\/08\/bluehost-logo.svg\",\"width\":136,\"height\":24,\"caption\":\"Bluehost\"},\"image\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/bluehost\/\",\"https:\/\/x.com\/bluehost\",\"https:\/\/www.linkedin.com\/company\/bluehost-com\/\",\"https:\/\/www.youtube.com\/user\/bluehost\",\"https:\/\/en.wikipedia.org\/wiki\/Bluehost\"],\"description\":\"Bluehost is a leading web hosting provider empowering millions of websites worldwide. \\u2028Discover how Bluehost's expertise, reliability, and innovation can help you achieve your online goals.\",\"telephone\":\"+1-888-401-4678\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/#\/schema\/person\/488e1e616fe374fc935916dc8e3f34f0\",\"name\":\"Bhumika Daga\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/#\/schema\/person\/image\/2a21f2f026804b12925eaf7c3899da3d\",\"url\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2024\/11\/IMG_6429.jpeg\",\"contentUrl\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2024\/11\/IMG_6429.jpeg\",\"caption\":\"Bhumika Daga\"},\"description\":\"I am a creative wordsmith, devoted to curating content and generating mass appeal. With passionate inclination towards digital content writing and proven experience in multiple domains such as Healthcare, Lifestyle, E-Commerce, Beauty and Wellness, Sports, Cybersecurity, Education, and so on, I can help you scale up your business!\",\"url\":\"https:\/\/www.bluehost.com\/blog\/author\/bhumika-daga\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Change PHP Versions on VPS and Dedicated Servers - Bluehost 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:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/posts\/246034\/","og_locale":"en_US","og_type":"article","og_title":"How to Change PHP Versions on VPS and Dedicated Servers","og_description":"Managing your website&#8217;s performance and ensuring compatibility with the latest&nbsp;PHP versions&nbsp;is crucial for its smooth operation. If you&#8217;re a Bluehost&nbsp;VPS&nbsp;or&nbsp;Dedicated&nbsp;Hosting user, this guide will show you how to easily change PHP versions on VPS and Dedicated servers and configure essential settings using EasyApache 4 and Web Host Manager (WHM). Why It&#8217;s Important to Update Your [&hellip;]","og_url":"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/","og_site_name":"Bluehost Blog","article_publisher":"https:\/\/www.facebook.com\/bluehost\/","article_published_time":"2025-10-08T10:25:52+00:00","article_modified_time":"2026-01-23T12:00:11+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-2.png","type":"image\/png"}],"author":"Bhumika Daga","twitter_card":"summary_large_image","twitter_creator":"@bluehost","twitter_site":"@bluehost","twitter_misc":{"Written by":"Bhumika Daga","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/#article","isPartOf":{"@id":"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/"},"author":{"name":"Bhumika Daga","@id":"https:\/\/www.bluehost.com\/blog\/#\/schema\/person\/488e1e616fe374fc935916dc8e3f34f0"},"headline":"How to Change PHP Versions on VPS and Dedicated Servers","datePublished":"2025-10-08T10:25:52+00:00","dateModified":"2026-01-23T12:00:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/"},"wordCount":1794,"commentCount":0,"publisher":{"@id":"https:\/\/www.bluehost.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-2.png","keywords":["How-To Guides","Tutorials"],"articleSection":["Hosting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/","url":"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/","name":"How to Change PHP Versions on VPS and Dedicated Servers - Bluehost Blog","isPartOf":{"@id":"https:\/\/www.bluehost.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/#primaryimage"},"image":{"@id":"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-2.png","datePublished":"2025-10-08T10:25:52+00:00","dateModified":"2026-01-23T12:00:11+00:00","breadcrumb":{"@id":"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/#primaryimage","url":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-2.png","contentUrl":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-2.png","width":1920,"height":1080,"caption":"Change PHP Versions on VPS and Dedicated Servers"},{"@type":"BreadcrumbList","@id":"https:\/\/www.bluehost.com\/blog\/change-your-php-version-dedicated-and-vps-hosting\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bluehost.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Hosting","item":"https:\/\/www.bluehost.com\/blog\/category\/hosting\/"},{"@type":"ListItem","position":3,"name":"How to Change PHP Versions on VPS and Dedicated Servers"}]},{"@type":"WebSite","@id":"https:\/\/www.bluehost.com\/blog\/#website","url":"https:\/\/www.bluehost.com\/blog\/","name":"Bluehost","description":"","publisher":{"@id":"https:\/\/www.bluehost.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bluehost.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bluehost.com\/blog\/#organization","name":"Bluehost","url":"https:\/\/www.bluehost.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bluehost.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2023\/08\/bluehost-logo.svg","contentUrl":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2023\/08\/bluehost-logo.svg","width":136,"height":24,"caption":"Bluehost"},"image":{"@id":"https:\/\/www.bluehost.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/bluehost\/","https:\/\/x.com\/bluehost","https:\/\/www.linkedin.com\/company\/bluehost-com\/","https:\/\/www.youtube.com\/user\/bluehost","https:\/\/en.wikipedia.org\/wiki\/Bluehost"],"description":"Bluehost is a leading web hosting provider empowering millions of websites worldwide. \u2028Discover how Bluehost's expertise, reliability, and innovation can help you achieve your online goals.","telephone":"+1-888-401-4678"},{"@type":"Person","@id":"https:\/\/www.bluehost.com\/blog\/#\/schema\/person\/488e1e616fe374fc935916dc8e3f34f0","name":"Bhumika Daga","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bluehost.com\/blog\/#\/schema\/person\/image\/2a21f2f026804b12925eaf7c3899da3d","url":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2024\/11\/IMG_6429.jpeg","contentUrl":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2024\/11\/IMG_6429.jpeg","caption":"Bhumika Daga"},"description":"I am a creative wordsmith, devoted to curating content and generating mass appeal. With passionate inclination towards digital content writing and proven experience in multiple domains such as Healthcare, Lifestyle, E-Commerce, Beauty and Wellness, Sports, Cybersecurity, Education, and so on, I can help you scale up your business!","url":"https:\/\/www.bluehost.com\/blog\/author\/bhumika-daga\/"}]}},"authors":[{"term_id":952,"user_id":154,"is_guest":0,"slug":"bhumika-daga","display_name":"Bhumika Daga","avatar_url":{"url":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2024\/11\/IMG_6429.jpeg","url2x":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2024\/11\/IMG_6429.jpeg"},"0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":"","9":"","10":"","11":"","12":"","13":"","14":"","15":""}],"_links":{"self":[{"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/posts\/246034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/users\/154"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/comments?post=246034"}],"version-history":[{"count":2,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/posts\/246034\/revisions"}],"predecessor-version":[{"id":263456,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/posts\/246034\/revisions\/263456"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/media\/246023"}],"wp:attachment":[{"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/media?parent=246034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/categories?post=246034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/tags?post=246034"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=246034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}