{"id":8419,"date":"2023-02-15T11:47:13","date_gmt":"2023-02-15T11:47:13","guid":{"rendered":"https:\/\/www.bodhost.com\/kb\/?p=8419"},"modified":"2026-02-26T14:02:45","modified_gmt":"2026-02-26T14:02:45","slug":"how-to-make-a-single-php-version-out-of-directadmin","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/how-to-make-a-single-php-version-out-of-directadmin\/","title":{"rendered":"How to Make a Single PHP Version Out of DirectAdmin?"},"content":{"rendered":"\r\n<p class=\"wp-block-paragraph\">In this article, we will show you How to Compile a Single PHP Version from DirectAdmin.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">We all know that there are multiple PHP versions available on a hosting platform. Users had to put all of these versions together, which took a long time. However, using DirectAdmin&#8217;s SSH access, it is easy to create a single PHP version, saving time.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">In order to compile a single PHP version, follow these steps.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>1. <\/strong>You need to log in to DirectAdmin Via SSH.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-verse\"><strong>Note - <\/strong>Have a basic view of the PHP versions that are available?<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>2.<\/strong> Now you need to Enter the Command.<\/p>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\r\n<p class=\"wp-block-paragraph\">grep -P &#8216;php[\\d]_&#8217; \/usr\/local\/directadmin\/custombuild\/options.conf<\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">On the screen, you can see a list of PHP versions that are available.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>3.<\/strong> You should choose a PHP version (if PHP 7.3) and attempt to run the code. (This is the version to use.)<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\r\n<p class=\"wp-block-paragraph\">1 cd \/usr\/local\/directadmin\/custombuild<br \/>2 .\/build set php1_release 7.3<br \/>3 .\/build update<br \/>4 .\/build php_expert 7.3 php-fpm<br \/>5 .\/build rewrite_confs<\/p>\r\n<\/div><\/div>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">DirectAdmin will only compile the single PHP version you specified in the code with it.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">We hope that you now have a good understanding of How to make a single PHP version out of DirectAdmin.If you continue to have problems with the protocol outlined above, please contact the <strong><a href=\"https:\/\/www.bodhost.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">bodHOST<\/a><\/strong> Team for constructive assistance 24&#215;7. Also, check out the latest <a href=\"https:\/\/www.bodhost.com\/cpanel-webhosting\" target=\"_blank\" rel=\"noreferrer noopener\">cPanel Web Hosting<\/a> Plans.<\/p>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\r\n<p class=\"wp-block-paragraph\"><strong>Read Also:<\/strong> <a href=\"https:\/\/www.bodhost.com\/kb\/php-script-to-test-mysql-database-connectivity\/\" target=\"_blank\" rel=\"noreferrer noopener\">PHP Script to Test MySQL Database Connectivity<\/a><\/p>\r\n<\/blockquote>\r\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will show you How to Compile a Single PHP Version from DirectAdmin. We all know that there are multiple PHP versions available on a hosting platform.&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/how-to-make-a-single-php-version-out-of-directadmin\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":22,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[666],"tags":[1383,1239],"class_list":["post-8419","post","type-post","status-publish","format-standard","hentry","category-general","tag-directadmin","tag-php-version"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Set a Custom PHP Version Outside Direct Admin - bodHOST<\/title>\n<meta name=\"description\" content=\"In this article, we have given you if command where you can use to make a single PHP version out of DirectAdmin. For more information visit our website.\" \/>\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.bodhost.com\/kb\/how-to-make-a-single-php-version-out-of-directadmin\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Set a Custom PHP Version Outside Direct Admin - bodHOST\" \/>\n<meta property=\"og:description\" content=\"In this article, we have given you if command where you can use to make a single PHP version out of DirectAdmin. For more information visit our website.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/how-to-make-a-single-php-version-out-of-directadmin\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-15T11:47:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:02:45+00:00\" \/>\n<meta name=\"author\" content=\"Vincer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vincer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-make-a-single-php-version-out-of-directadmin\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-make-a-single-php-version-out-of-directadmin\\\/\"},\"author\":{\"name\":\"Vincer\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/f3852d74aeac480763235276b5faddd0\"},\"headline\":\"How to Make a Single PHP Version Out of DirectAdmin?\",\"datePublished\":\"2023-02-15T11:47:13+00:00\",\"dateModified\":\"2026-02-26T14:02:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-make-a-single-php-version-out-of-directadmin\\\/\"},\"wordCount\":233,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"keywords\":[\"DirectAdmin\",\"PHP Version\"],\"articleSection\":[\"General Discussion\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-make-a-single-php-version-out-of-directadmin\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-make-a-single-php-version-out-of-directadmin\\\/\",\"name\":\"Set a Custom PHP Version Outside Direct Admin - bodHOST\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2023-02-15T11:47:13+00:00\",\"dateModified\":\"2026-02-26T14:02:45+00:00\",\"description\":\"In this article, we have given you if command where you can use to make a single PHP version out of DirectAdmin. For more information visit our website.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-make-a-single-php-version-out-of-directadmin\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-make-a-single-php-version-out-of-directadmin\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-make-a-single-php-version-out-of-directadmin\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"General Discussion\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/general\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Make a Single PHP Version Out of DirectAdmin?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/f3852d74aeac480763235276b5faddd0\",\"name\":\"Vincer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g\",\"caption\":\"Vincer\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/vinayak\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Set a Custom PHP Version Outside Direct Admin - bodHOST","description":"In this article, we have given you if command where you can use to make a single PHP version out of DirectAdmin. For more information visit our website.","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.bodhost.com\/kb\/how-to-make-a-single-php-version-out-of-directadmin\/","og_locale":"en_US","og_type":"article","og_title":"Set a Custom PHP Version Outside Direct Admin - bodHOST","og_description":"In this article, we have given you if command where you can use to make a single PHP version out of DirectAdmin. For more information visit our website.","og_url":"https:\/\/www.bodhost.com\/kb\/how-to-make-a-single-php-version-out-of-directadmin\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2023-02-15T11:47:13+00:00","article_modified_time":"2026-02-26T14:02:45+00:00","author":"Vincer","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Vincer","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/how-to-make-a-single-php-version-out-of-directadmin\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-make-a-single-php-version-out-of-directadmin\/"},"author":{"name":"Vincer","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/f3852d74aeac480763235276b5faddd0"},"headline":"How to Make a Single PHP Version Out of DirectAdmin?","datePublished":"2023-02-15T11:47:13+00:00","dateModified":"2026-02-26T14:02:45+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-make-a-single-php-version-out-of-directadmin\/"},"wordCount":233,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"keywords":["DirectAdmin","PHP Version"],"articleSection":["General Discussion"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/how-to-make-a-single-php-version-out-of-directadmin\/","url":"https:\/\/www.bodhost.com\/kb\/how-to-make-a-single-php-version-out-of-directadmin\/","name":"Set a Custom PHP Version Outside Direct Admin - bodHOST","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"datePublished":"2023-02-15T11:47:13+00:00","dateModified":"2026-02-26T14:02:45+00:00","description":"In this article, we have given you if command where you can use to make a single PHP version out of DirectAdmin. For more information visit our website.","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-make-a-single-php-version-out-of-directadmin\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/how-to-make-a-single-php-version-out-of-directadmin\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/how-to-make-a-single-php-version-out-of-directadmin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"General Discussion","item":"https:\/\/www.bodhost.com\/kb\/category\/general\/"},{"@type":"ListItem","position":2,"name":"How to Make a Single PHP Version Out of DirectAdmin?"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/f3852d74aeac480763235276b5faddd0","name":"Vincer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g","caption":"Vincer"},"url":"https:\/\/www.bodhost.com\/kb\/author\/vinayak\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/8419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=8419"}],"version-history":[{"count":16,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/8419\/revisions"}],"predecessor-version":[{"id":14031,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/8419\/revisions\/14031"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=8419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=8419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=8419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}