{"id":8199,"date":"2023-10-04T06:03:59","date_gmt":"2023-10-04T06:03:59","guid":{"rendered":"https:\/\/www.infinitivehost.com\/knowledge-base\/?p=8199"},"modified":"2023-10-04T06:04:00","modified_gmt":"2023-10-04T06:04:00","slug":"how-to-change-and-check-the-php-version-of-a-domain-on-directadmin-server","status":"publish","type":"post","link":"https:\/\/www.infinitivehost.com\/knowledge-base\/how-to-change-and-check-the-php-version-of-a-domain-on-directadmin-server\/","title":{"rendered":"How to Change and Check the PHP Version of a Domain on DirectAdmin Server?"},"content":{"rendered":"<div class='epvc-post-count'><span class='epvc-eye'><\/span>  <span class=\"epvc-count\"> 1,332<\/span><span class='epvc-label'> Views<\/span><\/div>\n<h2 class=\"wp-block-heading\" id=\"find-out-and-change-the-latest-php-version-for-your-site\">Find Out And Change The Latest PHP Version For Your Site<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To change the PHP version for a site<br>This helpful post will teach you how to upgrade or downgrade PHP for your website. Learn in detail how to upgrade PHP to provide your site the best possible speed.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#find-out-and-change-the-latest-php-version-for-your-site\">Find Out And Change The Latest PHP Version For Your Site<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">1. Log into your&nbsp;<strong>DA&nbsp;<\/strong>account<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. Navigate to&nbsp;<strong>Account Manager &gt;&gt; Domain Setup<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Choose the site whose PHP version you&#8217;d want to update.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. Click on the top&nbsp;<strong>PHP Version Selector<\/strong>&nbsp;link and select the desired PHP version from the list.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"278\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/image2-17-1024x278.png\" alt=\"How to Change and Check the PHP Version of a Domain on DirectAdmin Server?\" class=\"wp-image-8200\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/image2-17-1024x278.png 1024w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/image2-17-300x82.png 300w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/image2-17-768x209.png 768w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/image2-17.png 1188w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">5. Click the SAVE button. You will see the confirmation message \u201c<em>PHP versions saved<\/em>\u201c. The change will be in effect after about 1 minute.<br>6. After successfully saving the PHP version, you will get the following message:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"745\" height=\"568\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/image3-13.png\" alt=\"6. After successfully saving the PHP version, you will get the following message:\" class=\"wp-image-8201\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/image3-13.png 745w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/image3-13-300x229.png 300w\" sizes=\"(max-width: 745px) 100vw, 745px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">To check the PHP version your site is using you can create a file phpversion.php with the following content and open it in your web browser:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"993\" height=\"311\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/image1-14.png\" alt=\"To check the PHP version your site is using you can create a file phpversion.php with the following content and open it in your web browser:\" class=\"wp-image-8202\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/image1-14.png 993w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/image1-14-300x94.png 300w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/image1-14-768x241.png 768w\" sizes=\"(max-width: 993px) 100vw, 993px\" \/><\/figure>\n\n\n\n<p class=\"has-pale-cyan-blue-background-color has-background wp-block-paragraph\">Related:- <a href=\"https:\/\/www.infinitivehost.com\/knowledge-base\/how-to-install-imagick-extension-for-a-php-version-from-whm\/\">How To Install Imagick Extension For A PHP Version From WHM ?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1,332 Views Find Out And Change The Latest PHP Version For Your Site To change the PHP version for a siteThis helpful post will teach you how to upgrade or downgrade PHP for your website. Learn in detail how to upgrade PHP to provide your site the best possible speed. 1. Log into your&nbsp;DA&nbsp;account 2. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[71],"tags":[],"class_list":["post-8199","post","type-post","status-publish","format-standard","hentry","category-how-tos"],"_links":{"self":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=8199"}],"version-history":[{"count":3,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8199\/revisions"}],"predecessor-version":[{"id":8205,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8199\/revisions\/8205"}],"wp:attachment":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=8199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=8199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=8199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}