{"id":12530,"date":"2021-11-26T06:44:11","date_gmt":"2021-11-26T06:44:11","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=12530"},"modified":"2021-11-27T08:13:02","modified_gmt":"2021-11-27T08:13:02","slug":"compile-single-php-version-directadmin","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/compile-single-php-version-directadmin\/","title":{"rendered":"How to Compile a Single PHP Version from DirectAdmin?"},"content":{"rendered":"<p>There are multiple PHP versions that are available on a hosting platform. Usually, users have to compile all these versions at once, which consumes a lot of time. However, it is possible to compile a single PHP version via SSH access of DirectAdmin and save time.<\/p>\n<h2>To Compile a Single PHP Version<\/h2>\n<p>1. Log in to DirectAdmin via SSH access.<\/p>\n<p>First, you need to know the PHP versions available.<\/p>\n<p>2. Enter the command:<\/p>\n<pre class=\"lang:default decode:true \">  grep -P 'php[\\d]_' \/usr\/local\/directadmin\/custombuild\/options.conf\r\n<\/pre>\n<p>A list of available PHP versions will appear.<\/p>\n<p>3.\u00a0Pick a PHP version (in this case, PHP version 7.3) and run this code. (Here the version is using)<\/p>\n<pre class=\"lang:default decode:true\">cd \/usr\/local\/directadmin\/custombuild\r\n.\/build set php1_release 7.3\r\n.\/build update\r\n.\/build php_expert 7.3 php-fpm\r\n.\/build rewrite_confs\r\n<\/pre>\n<p>With it, DirectAdmin will compile only the single PHP version that you mentioned in the code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are multiple PHP versions that are available on a hosting platform. Usually, users have to compile all these versions at once, which consumes a lot of time. However, it is possible to compile a single PHP version via SSH access of DirectAdmin and save time. To Compile a Single PHP Version 1. Log in [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1777,41],"tags":[2742,2741,191,1179,1448],"class_list":["post-12530","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-directadmin","category-howtos","tag-compile-php","tag-compile-php-version-directadmin","tag-php-version","tag-ssh-access","tag-ssh-commands"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Compile a Single PHP Version from DirectAdmin?<\/title>\n<meta name=\"description\" content=\"This article will help DirectAdmin users compile a single PHP version instead of wasting time on compiling all of the versions.\" \/>\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\/compile-single-php-version-directadmin\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Compile a Single PHP Version from DirectAdmin?\" \/>\n<meta property=\"og:description\" content=\"This article will help DirectAdmin users compile a single PHP version instead of wasting time on compiling all of the versions.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/compile-single-php-version-directadmin\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-26T06:44:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-27T08:13:02+00:00\" \/>\n<meta name=\"author\" content=\"Prasad Khartadkar\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prasad Khartadkar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated 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\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/compile-single-php-version-directadmin\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/compile-single-php-version-directadmin\/\",\"name\":\"How to Compile a Single PHP Version from DirectAdmin?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"datePublished\":\"2021-11-26T06:44:11+00:00\",\"dateModified\":\"2021-11-27T08:13:02+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\"},\"description\":\"This article will help DirectAdmin users compile a single PHP version instead of wasting time on compiling all of the versions.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/compile-single-php-version-directadmin\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/compile-single-php-version-directadmin\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/compile-single-php-version-directadmin\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Compile a Single PHP Version from DirectAdmin?\"}]},{\"@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\/c9138a9488172a8d0aa2d4f40878d83e\",\"name\":\"Prasad Khartadkar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"caption\":\"Prasad Khartadkar\"},\"description\":\"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Compile a Single PHP Version from DirectAdmin?","description":"This article will help DirectAdmin users compile a single PHP version instead of wasting time on compiling all of the versions.","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\/compile-single-php-version-directadmin\/","og_locale":"en_GB","og_type":"article","og_title":"How to Compile a Single PHP Version from DirectAdmin?","og_description":"This article will help DirectAdmin users compile a single PHP version instead of wasting time on compiling all of the versions.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/compile-single-php-version-directadmin\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2021-11-26T06:44:11+00:00","article_modified_time":"2021-11-27T08:13:02+00:00","author":"Prasad Khartadkar","twitter_misc":{"Written by":"Prasad Khartadkar","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/compile-single-php-version-directadmin\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/compile-single-php-version-directadmin\/","name":"How to Compile a Single PHP Version from DirectAdmin?","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"datePublished":"2021-11-26T06:44:11+00:00","dateModified":"2021-11-27T08:13:02+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e"},"description":"This article will help DirectAdmin users compile a single PHP version instead of wasting time on compiling all of the versions.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/compile-single-php-version-directadmin\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/compile-single-php-version-directadmin\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/compile-single-php-version-directadmin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Compile a Single PHP Version from DirectAdmin?"}]},{"@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\/c9138a9488172a8d0aa2d4f40878d83e","name":"Prasad Khartadkar","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","caption":"Prasad Khartadkar"},"description":"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/"}]}},"views":295,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/12530","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\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=12530"}],"version-history":[{"count":1,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/12530\/revisions"}],"predecessor-version":[{"id":12531,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/12530\/revisions\/12531"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=12530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=12530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=12530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}