{"id":9248,"date":"2021-02-01T12:04:30","date_gmt":"2021-02-01T12:04:30","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=9248"},"modified":"2024-04-24T06:38:41","modified_gmt":"2024-04-24T05:38:41","slug":"change-php-version-directadmin-server","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/","title":{"rendered":"How to Change and Check the PHP Version of a Domain on DirectAdmin Server?"},"content":{"rendered":"<p>Finding it difficult to deal with PHP errors on your website? Planning to downgrade\/upgrade PHP Version for your website? You have landed on the right place. In this guide, you will learn to change PHP version on DirectAdmin Server.<\/p>\n<p>Now, let\u2019s check the steps to change the PHP version for your website using DirectAdmin Panel.<\/p>\n<h3>Steps to Change PHP Version for DirectAdmin Server without Cloudlinux<\/h3>\n<p>1. Login to your <strong>DirectAdmin<\/strong> account.<\/p>\n<p>2. In the top-right corner, select the <strong>domain<\/strong> for which the PHP version needs to be changed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-11410\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/select-domain-min-1024x116.jpg\" alt=\"\" width=\"1024\" height=\"116\" \/><\/p>\n<p>3. In the right-side bar, you will get to see the PHP version installed on the domain along with other basic details for that account. Here click on <strong>Change<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-11412\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/change-min-1024x494.jpg\" alt=\"\" width=\"1024\" height=\"494\" \/><\/p>\n<p>4. Select the PHP version that you want to install from the drop-down menu and click on the <strong>Save<\/strong> button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11413\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/select-php-version-min.jpg\" alt=\"\" width=\"367\" height=\"242\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11414\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/save-min.jpg\" alt=\"\" width=\"367\" height=\"193\" \/><\/p>\n<p>5. You will get a success message once the PHP version is saved as below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11424\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/php-version-saved-min.jpg\" alt=\"\" width=\"447\" height=\"553\" \/><\/p>\n<p>In this way, you can change the PHP version for your domain from DirectAdmin server without Cloudlinux.<\/p>\n<h3>Steps to Change PHP Version for DirectAdmin Server with Cloudlinux<\/h3>\n<p>1. Login to your <strong>DirectAdmin<\/strong> account.<\/p>\n<p>2. In the top-right corner, select the domain for which the PHP version needs to be changed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-11410\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/select-domain-min-1024x116.jpg\" alt=\"\" width=\"1024\" height=\"116\" \/><\/p>\n<p>3. Go to the <strong>Extra Features<\/strong> section and click on <strong>Select PHP version<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-11411\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/extra-fetaures-min-1024x156.jpg\" alt=\"\" width=\"1024\" height=\"156\" \/><\/p>\n<p>4. It will redirect you to the page of <strong>Select PHP version<\/strong>, where you can select the PHP version you want to install from the drop-down menu to change the PHP version.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-11415\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/selec-php-version-page-min-1024x384.jpg\" alt=\"\" width=\"1024\" height=\"384\" \/><\/p>\n<p>5. Then click on <strong>Set as current<\/strong> besides the drop-down to set the selected PHP version.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-11416\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/set-as-current-min-1024x188.jpg\" alt=\"\" width=\"1024\" height=\"188\" \/><\/p>\n<h3>Steps to Check the PHP Version for Your Website<\/h3>\n<p>1. At first, create a file with any name in the home directory of the domain. For this, go to <strong>System Info &amp; Files<\/strong> and click on <strong>File Manager<\/strong>. Here click on <strong>public_html<\/strong> folder in the left-side bar.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11417\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/file-manager-min.jpg\" alt=\"\" width=\"417\" height=\"171\" \/><\/p>\n<p>2. Then click on <strong>New -&gt; Text File -&gt; PHP<\/strong>. Enter the name of the file and click on <strong>Create<\/strong>. For example, we will create <strong>phpinfo.php<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11418\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/new-text-file-min.jpg\" alt=\"\" width=\"450\" height=\"334\" \/><\/p>\n<p>3. You will get a success message once the file is created as below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-11419\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/success-msg-min-1024x586.jpg\" alt=\"\" width=\"1024\" height=\"586\" \/><\/p>\n<p>Here, the file path will be <strong>\/home\/hostingideas.in\/public_html\/phpinfo.php<\/strong><\/p>\n<p>4. Right-click on the file and click on <strong>Edit<\/strong>. Then add the below line of code in the file and click on <strong>Save<\/strong>:<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\nphpinfo();\n?&gt;<\/pre>\n<p><code><br \/>\n<!--?php phpinfo(); ?--><\/code><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11420\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/edit-min.jpg\" alt=\"\" width=\"375\" height=\"319\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-11421\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/add-code-min-1024x475.jpg\" alt=\"\" width=\"1024\" height=\"475\" \/><\/p>\n<p>5. You will get a success message, once the code is saved as below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-11422\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/code-saved-msg-min-1024x597.jpg\" alt=\"\" width=\"1024\" height=\"597\" \/><\/p>\n<p>6. Then browse <strong>www.hostingideas.in\/phpinfo.php<\/strong> for testing the current PHP Version. You will see the PHP Info webpage with all the PHP variables and settings.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11423\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/php-info-min.jpg\" alt=\"\" width=\"627\" height=\"745\" \/><\/p>\n<p>Your URL will be yourdomainname.com\/phpinfo.php<\/p>\n<p>Now, you can change PHP version on Direactadmin Server for your websites and also, check the current PHP verification on the website with these simple steps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Finding it difficult to deal with PHP errors on your website? Planning to downgrade\/upgrade PHP Version for your website? You have landed on the right place. In this guide, you will learn to change PHP version on DirectAdmin Server. Now, let\u2019s check the steps to change the PHP version for your website using DirectAdmin Panel. [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1777],"tags":[1787,1784,1780,1786,1785],"class_list":["post-9248","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-directadmin","tag-change-php-version","tag-change-the-php-verion-on-directadmin-server","tag-directadmin","tag-directadmin-server","tag-php-version-change"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Change the PHP Version of a Domain on DirectAdmin Server?<\/title>\n<meta name=\"description\" content=\"The article represents steps to change and check the PHP version of a domain on DirectAdmin server.\" \/>\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.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Change the PHP Version of a Domain on DirectAdmin Server?\" \/>\n<meta property=\"og:description\" content=\"The article represents steps to change and check the PHP version of a domain on DirectAdmin server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-01T12:04:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-24T05:38:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/select-domain-min-1024x116.jpg\" \/>\n<meta name=\"author\" content=\"Pallavi Godse\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pallavi Godse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/\",\"name\":\"How to Change the PHP Version of a Domain on DirectAdmin Server?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/select-domain-min-1024x116.jpg\",\"datePublished\":\"2021-02-01T12:04:30+00:00\",\"dateModified\":\"2024-04-24T05:38:41+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"description\":\"The article represents steps to change and check the PHP version of a domain on DirectAdmin server.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/#primaryimage\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Change and Check the PHP Version of a Domain on DirectAdmin Server?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\",\"name\":\"Pallavi Godse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g\",\"caption\":\"Pallavi Godse\"},\"description\":\"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/pallavi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Change the PHP Version of a Domain on DirectAdmin Server?","description":"The article represents steps to change and check the PHP version of a domain on DirectAdmin server.","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.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/","og_locale":"en_GB","og_type":"article","og_title":"How to Change the PHP Version of a Domain on DirectAdmin Server?","og_description":"The article represents steps to change and check the PHP version of a domain on DirectAdmin server.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2021-02-01T12:04:30+00:00","article_modified_time":"2024-04-24T05:38:41+00:00","og_image":[{"url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/select-domain-min-1024x116.jpg","type":"","width":"","height":""}],"author":"Pallavi Godse","twitter_misc":{"Written by":"Pallavi Godse","Estimated reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/","name":"How to Change the PHP Version of a Domain on DirectAdmin Server?","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/select-domain-min-1024x116.jpg","datePublished":"2021-02-01T12:04:30+00:00","dateModified":"2024-04-24T05:38:41+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"description":"The article represents steps to change and check the PHP version of a domain on DirectAdmin server.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-php-version-directadmin-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Change and Check the PHP Version of a Domain on DirectAdmin Server?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945","name":"Pallavi Godse","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g","caption":"Pallavi Godse"},"description":"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/pallavi\/"}]}},"views":1932,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=9248"}],"version-history":[{"count":4,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9248\/revisions"}],"predecessor-version":[{"id":15527,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9248\/revisions\/15527"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=9248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=9248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=9248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}