{"id":510,"date":"2019-09-12T09:00:03","date_gmt":"2019-09-12T03:30:03","guid":{"rendered":"https:\/\/www.merahost.org\/blog\/?p=510"},"modified":"2026-10-23T12:32:32","modified_gmt":"2026-10-23T07:02:32","slug":"easiest-way-to-install-directadmin","status":"publish","type":"post","link":"https:\/\/merahost.org\/blog\/easiest-way-to-install-directadmin\/","title":{"rendered":"How to Install &amp; Configure DirectAdmin on an AlmaLinux \/ Ubuntu VPS (Step-by-Step 2026 Guide)"},"content":{"rendered":"<div class=\"mh-direct-answer\" style=\"background:#1e293b;border-left:4px solid #10b981;border-radius:8px;padding:20px 24px;margin-bottom:32px;color:#e2e8f0\">\n<p style=\"margin:0 0 10px 0;font-size:13px;text-transform:uppercase;letter-spacing:0.08em;color:#38bdf8;font-weight:700\">Quick Answer: The Fastest Way to Install DirectAdmin<\/p>\n<p style=\"margin:0;font-size:16px;line-height:1.65;color:#f8fafc\">\n        To install DirectAdmin on a freshly provisioned <strong>AlmaLinux 9, Rocky Linux, or Ubuntu 24.04 LTS VPS<\/strong>, log in as <code>root<\/code> via SSH, install <code>curl<\/code> and <code>tar<\/code>, retrieve the automated setup script with <code>curl -O https:\/\/www.directadmin.com\/setup.sh<\/code>, make it executable via <code>chmod 755 setup.sh<\/code>, and execute it using your license key: <code>.\/setup.sh auto<\/code>. The automated installer compiles necessary dependencies, configures the CustomBuild engine, generates your default admin credentials, and provisions SSL certificates for port <code>2222<\/code> in under 15 minutes.\n    <\/p>\n<\/div>\n<p>As cPanel licensing costs have surged over recent years, <strong>DirectAdmin<\/strong> has cemented its reputation as the premier lightweight, lightning-fast, and cost-effective web hosting control panel for enterprise Linux servers. Consuming as little as <strong>250 MB of idle RAM<\/strong>\u2014compared to 1.5 GB+ for legacy alternatives\u2014DirectAdmin delivers incredible density, responsive page loads, and modular software compilation via its battle-tested <strong>CustomBuild 2.0<\/strong> engine.<\/p>\n<p>Whether you are setting up a private staging server or deploying a multi-tenant client hosting cluster, installing DirectAdmin on a clean Virtual Private Server (VPS) is straightforward. In this comprehensive 2026 guide, we walk you through server prerequisites, step-by-step automated installation on modern Enterprise Linux, essential CustomBuild performance tuning, CSF firewall hardening, and SSL provisioning.<\/p>\n<h2>DirectAdmin Hardware &amp; Operating System Prerequisites<\/h2>\n<p>Before launching the installation script, verify that your VPS satisfies these baseline technical requirements:<\/p>\n<table style=\"width:100%;border-collapse:collapse;margin:28px 0;background:#1e293b;color:#e2e8f0;font-size:14px;border-radius:10px;overflow:hidden;border:1px solid #334155\">\n<thead>\n<tr style=\"background:#0f172a;color:#38bdf8;text-align:left;border-bottom:2px solid #334155\">\n<th style=\"padding:14px 18px;font-weight:700\">Resource Component<\/th>\n<th style=\"padding:14px 18px;font-weight:700\">Minimum Baseline<\/th>\n<th style=\"padding:14px 18px;font-weight:700\">Recommended for Production<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"background:#1e293b;border-bottom:1px solid #2a374a\">\n<td style=\"padding:12px 18px;color:#ffffff;font-weight:600\">Operating System<\/td>\n<td style=\"padding:12px 18px;color:#e2e8f0\">AlmaLinux 8\/9, Rocky Linux 9, Ubuntu 22.04 LTS<\/td>\n<td style=\"padding:12px 18px;color:#34d399;font-weight:600\">AlmaLinux 9 (64-bit) or Ubuntu 24.04 LTS<\/td>\n<\/tr>\n<tr style=\"background:#152238;border-bottom:1px solid #2a374a\">\n<td style=\"padding:12px 18px;color:#ffffff;font-weight:600\">CPU Cores<\/td>\n<td style=\"padding:12px 18px;color:#e2e8f0\">1 vCPU (1.5 GHz+)<\/td>\n<td style=\"padding:12px 18px;color:#34d399;font-weight:600\">2 to 4 vCPUs (Dedicated KVM Threads)<\/td>\n<\/tr>\n<tr style=\"background:#1e293b;border-bottom:1px solid #2a374a\">\n<td style=\"padding:12px 18px;color:#ffffff;font-weight:600\">System Memory (RAM)<\/td>\n<td style=\"padding:12px 18px;color:#e2e8f0\">1 GB RAM + 2 GB Swap file<\/td>\n<td style=\"padding:12px 18px;color:#34d399;font-weight:600\">4 GB to 8 GB ECC RAM<\/td>\n<\/tr>\n<tr style=\"background:#152238;border-bottom:1px solid #2a374a\">\n<td style=\"padding:12px 18px;color:#ffffff;font-weight:600\">Disk Storage<\/td>\n<td style=\"padding:12px 18px;color:#e2e8f0\">20 GB SSD Storage<\/td>\n<td style=\"padding:12px 18px;color:#34d399;font-weight:600\">50 GB+ High-Speed Pure NVMe RAID-10<\/td>\n<\/tr>\n<tr style=\"background:#1e293b;border-bottom:1px solid #2a374a\">\n<td style=\"padding:12px 18px;color:#ffffff;font-weight:600\">Networking<\/td>\n<td style=\"padding:12px 18px;color:#e2e8f0\">1 Static IPv4 Address<\/td>\n<td style=\"padding:12px 18px;color:#34d399;font-weight:600\">1 Static IPv4 + \/64 IPv6 Block with FQDN Hostname<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Step 1: VPS Pre-Flight Configuration &amp; Hostname Setup<\/h2>\n<p>Begin by connecting to your clean VPS via SSH using root privileges. DirectAdmin requires a fully qualified domain name (FQDN) that resolves to your server&#8217;s public IP address (for example, <code>server1.yourdomain.com<\/code>). Avoid setting the hostname to a root domain.<\/p>\n<div style=\"background:#0f172a;border:1px solid #334155;border-radius:8px;padding:20px;margin:24px 0;font-family:monospace;font-size:13px;color:#94a3b8\">\n<span style=\"color:#38bdf8\"># 1. Update OS package repositories<\/span><br \/>\ndnf update -y  <span style=\"color:#64748b\"># On AlmaLinux \/ Rocky \/ RHEL<\/span><br \/>\n<span style=\"color:#64748b\"># or: apt update &amp;&amp; apt upgrade -y (on Ubuntu\/Debian)<\/span><\/p>\n<p><span style=\"color:#38bdf8\"># 2. Set permanent FQDN hostname<\/span><br \/>\nhostnamectl set-hostname server1.yourdomain.com<\/p>\n<p><span style=\"color:#38bdf8\"># 3. Install foundational build dependencies<\/span><br \/>\ndnf install -y tar gcc gcc-c++ make flex bison openssl-devel perl-CPAN perl-ExtUtils-MakeMaker perl-Data-Dumper curl wget\n<\/div>\n<h2>Step 2: Execute the Automated DirectAdmin Installer<\/h2>\n<p>DirectAdmin provides a universal installer script that automatically detects your Linux distribution, configures repository mirrors, compiles CustomBuild dependencies, and establishes internal database structures:<\/p>\n<div style=\"background:#0f172a;border:1px solid #334155;border-radius:8px;padding:20px;margin:24px 0;font-family:monospace;font-size:13px;color:#94a3b8\">\n<span style=\"color:#38bdf8\"># Download the universal setup script<\/span><br \/>\nwget -O setup.sh https:\/\/www.directadmin.com\/setup.sh<br \/>\nchmod 755 setup.sh<\/p>\n<p><span style=\"color:#38bdf8\"># Run the automated installer with your license key<\/span><br \/>\n.\/setup.sh auto\n<\/div>\n<p><em>Note: If you have a specific license key or client ID, pass it as an argument: <code>.\/setup.sh 'YOUR_DA_KEY'<\/code>. The installer will proceed through automated package compilation. On an NVMe-powered KVM VPS, this process completes in approximately 8 to 14 minutes.<\/em><\/p>\n<p>Once installation finishes, your terminal will display your unique management URL and randomly generated <code>admin<\/code> credentials:<\/p>\n<div style=\"background:#0f172a;border:1px solid #334155;border-radius:8px;padding:20px;margin:24px 0;font-family:monospace;font-size:13px;color:#34d399\">\nDirectAdmin is now installed.<br \/>\nTo access your web control panel, open your browser to:<br \/>\nhttps:\/\/server1.yourdomain.com:2222 or https:\/\/YOUR_SERVER_IP:2222<\/p>\n<p>The following credentials have been created:<br \/>\nUsername: admin<br \/>\nPassword: [Generated_Secure_Password]\n<\/div>\n<h2>Step 3: CustomBuild 2.0 Optimization (LiteSpeed &amp; PHP 8.x)<\/h2>\n<p>The true power of DirectAdmin is <strong>CustomBuild<\/strong> (located at <code>\/usr\/local\/directadmin\/custombuild\/<\/code>). It allows you to switch your entire web server stack\u2014from traditional Apache to high-performance OpenLiteSpeed or LiteSpeed Enterprise\u2014with a few terminal commands.<\/p>\n<div style=\"background:#0f172a;border:1px solid #334155;border-radius:8px;padding:20px;margin:24px 0;font-family:monospace;font-size:13px;color:#94a3b8\">\n<span style=\"color:#38bdf8\"># Navigate to CustomBuild<\/span><br \/>\ncd \/usr\/local\/directadmin\/custombuild<\/p>\n<p><span style=\"color:#38bdf8\"># Switch web server from Apache to OpenLiteSpeed for turbo performance<\/span><br \/>\n.\/build set webserver openlitespeed<br \/>\n.\/build set php1_mode lsphp<br \/>\n.\/build set php1_release 8.3<br \/>\n.\/build set php2_mode lsphp<br \/>\n.\/build set php2_release 8.2<\/p>\n<p><span style=\"color:#38bdf8\"># Enable HTTP\/3 (QUIC) and automated Let&#8217;s Encrypt SSL<\/span><br \/>\n.\/build set letsencrypt yes<\/p>\n<p><span style=\"color:#38bdf8\"># Compile the new web server stack<\/span><br \/>\n.\/build update<br \/>\n.\/build openlitespeed<br \/>\n.\/build php n<br \/>\n.\/build rewrite_confs\n<\/div>\n<p><!-- Conversion CTA Block --><\/p>\n<div class=\"mh-blog-conversion-card\" style=\"background:linear-gradient(135deg,#081325 0%,#0f172a 100%);border-radius:12px;padding:32px;margin:40px 0;position:relative\">\n<div style=\"display:inline-block;color:#10b981;font-size:12px;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;padding:4px 12px;border-radius:9999px;margin-bottom:14px\">\n        MeraHost VPS Automation\n    <\/div>\n<h3 style=\"font-size:22px;font-weight:800;color:#ffffff;margin:0 0 10px 0\">Deploy Pre-Configured DirectAdmin VPS in 60 Seconds<\/h3>\n<p style=\"color:#94a3b8;font-size:15px;line-height:1.6;margin:0 0 22px 0\">\n        Skip manual compilation and licensing headaches. MeraHost KVM Cloud VPS instances come with 1-click DirectAdmin OS templates pre-tuned with LiteSpeed, pure NVMe RAID-10 storage, and automated daily backups.\n    <\/p>\n<div style=\"display:flex;gap:14px;flex-wrap:wrap\">\n        <a href=\"https:\/\/merahost.org\/vps\/\" style=\"display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,#059669 0%,#047857 100%);color:#ffffff;text-decoration:none;font-weight:700;font-size:14px;padding:12px 24px;border-radius:8px\">Deploy KVM Cloud VPS &rarr;<\/a><a href=\"https:\/\/merahost.org\/web-hosting\/\" style=\"display:inline-flex;align-items:center;gap:8px;color:#f1f5f9;text-decoration:none;font-weight:600;font-size:14px;padding:12px 20px;border-radius:8px\">Explore Managed Hosting (\u20b999\/mo) &rarr;<\/a>\n    <\/div>\n<\/div>\n<h2>Step 4: Hardening Security with CSF Firewall &amp; Port 2222 SSL<\/h2>\n<p>Running a bare server exposed to the public internet requires immediate security hardening. Install ConfigServer Security &amp; Firewall (CSF), which integrates seamlessly into the DirectAdmin dashboard:<\/p>\n<div style=\"background:#0f172a;border:1px solid #334155;border-radius:8px;padding:20px;margin:24px 0;font-family:monospace;font-size:13px;color:#94a3b8\">\n<span style=\"color:#38bdf8\"># Install CSF and Login Failure Daemon (LFD)<\/span><br \/>\ncd \/usr\/local\/directadmin\/custombuild<br \/>\n.\/build update<br \/>\n.\/build csf<\/p>\n<p><span style=\"color:#38bdf8\"># Provision a valid Let&#8217;s Encrypt SSL certificate for DirectAdmin port 2222<\/span><br \/>\n\/usr\/local\/directadmin\/scripts\/letsencrypt.sh request_single server1.yourdomain.com 4096<\/p>\n<p><span style=\"color:#38bdf8\"># Restart DirectAdmin to enforce secure HTTPS access<\/span><br \/>\nsystemctl restart directadmin\n<\/div>\n<p>With CSF active, your server automatically blocks brute-force SSH attacks, monitors port scans, and restricts unauthorized access while providing an intuitive GUI firewall management interface directly inside DirectAdmin.<\/p>\n<h2>Frequently Asked Questions<\/h2>\n<div class=\"mh-faq-accordion\" style=\"margin:28px 0\">\n<details style=\"background:#1e293b;border:1px solid #334155;border-radius:8px;padding:16px 20px;margin-bottom:14px;color:#e2e8f0\">\n<summary style=\"font-weight:700;color:#ffffff;cursor:pointer;font-size:16px\">How much RAM does DirectAdmin use compared to cPanel?<\/summary>\n<p style=\"margin-top:12px;font-size:14px;line-height:1.6;color:#cbd5e1\">\n            DirectAdmin is written in C++ and has an ultra-compact memory footprint, consuming around 200 MB to 350 MB of idle RAM. In contrast, cPanel typically requires 1.2 GB to 2 GB of idle RAM just for background services. This makes DirectAdmin significantly faster on smaller VPS instances.\n        <\/p>\n<\/details>\n<details style=\"background:#1e293b;border:1px solid #334155;border-radius:8px;padding:16px 20px;margin-bottom:14px;color:#e2e8f0\">\n<summary style=\"font-weight:700;color:#ffffff;cursor:pointer;font-size:16px\">Can I migrate accounts from cPanel to DirectAdmin automatically?<\/summary>\n<p style=\"margin-top:12px;font-size:14px;line-height:1.6;color:#cbd5e1\">\n            Yes. DirectAdmin includes a built-in cPanel-to-DirectAdmin migration tool. You simply upload standard cPanel backup archives (<code>backup-*.tar.gz<\/code>) to the <code>\/home\/admin\/user_backups<\/code> directory and restore them via the DirectAdmin interface with automatic translation of databases, mailboxes, and DNS records.\n        <\/p>\n<\/details>\n<details style=\"background:#1e293b;border:1px solid #334155;border-radius:8px;padding:16px 20px;margin-bottom:14px;color:#e2e8f0\">\n<summary style=\"font-weight:700;color:#ffffff;cursor:pointer;font-size:16px\">Can I change the default DirectAdmin port from 2222?<\/summary>\n<p style=\"margin-top:12px;font-size:14px;line-height:1.6;color:#cbd5e1\">\n            Yes. You can edit <code>\/usr\/local\/directadmin\/conf\/directadmin.conf<\/code> and change the <code>port=2222<\/code> parameter to a custom port number. Remember to allow the new port in your CSF firewall configuration before restarting the DirectAdmin service.\n        <\/p>\n<\/details>\n<details style=\"background:#1e293b;border:1px solid #334155;border-radius:8px;padding:16px 20px;margin-bottom:14px;color:#e2e8f0\">\n<summary style=\"font-weight:700;color:#ffffff;cursor:pointer;font-size:16px\">Does DirectAdmin support WordPress LiteSpeed Cache (LSCache)?<\/summary>\n<p style=\"margin-top:12px;font-size:14px;line-height:1.6;color:#cbd5e1\">\n            Yes, natively. By compiling OpenLiteSpeed or LiteSpeed Enterprise via CustomBuild, your DirectAdmin server supports full server-level LSCache integration, micro-caching, and HTTP\/3 QUIC out of the box.\n        <\/p>\n<\/details>\n<\/div>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-left kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;left&quot;,&quot;id&quot;:&quot;510&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;3&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;3.7&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;3.7\\\/5 - (3 votes)&quot;,&quot;size&quot;:&quot;20&quot;,&quot;title&quot;:&quot;How to Install \\u0026amp; Configure DirectAdmin on an AlmaLinux \\\/ Ubuntu VPS (Step-by-Step 2026 Guide)&quot;,&quot;width&quot;:&quot;90&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 20px; height: 20px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 20px; height: 20px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 20px; height: 20px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 20px; height: 20px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 20px; height: 20px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 90px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 20px; height: 20px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 20px; height: 20px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 20px; height: 20px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 20px; height: 20px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 20px; height: 20px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 16px;\">\n            3.7\/5 - (3 votes)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Quick Answer: The Fastest Way to Install DirectAdmin To install DirectAdmin on a freshly provisioned AlmaLinux 9, Rocky Linux, or Ubuntu 24.04 LTS VPS, log in as root via SSH, install curl and tar, retrieve the automated setup script with curl -O https:\/\/www.directadmin.com\/setup.sh, make it executable via chmod 755 setup.sh, and execute it using your &#8230; <a title=\"How to Install &amp; Configure DirectAdmin on an AlmaLinux \/ Ubuntu VPS (Step-by-Step 2026 Guide)\" class=\"read-more\" href=\"https:\/\/merahost.org\/blog\/easiest-way-to-install-directadmin\/\" aria-label=\"Read more about How to Install &amp; Configure DirectAdmin on an AlmaLinux \/ Ubuntu VPS (Step-by-Step 2026 Guide)\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":1044,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77],"tags":[121,50],"class_list":["post-510","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-installation","tag-merahost"],"_links":{"self":[{"href":"https:\/\/merahost.org\/blog\/wp-json\/wp\/v2\/posts\/510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/merahost.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/merahost.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/merahost.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/merahost.org\/blog\/wp-json\/wp\/v2\/comments?post=510"}],"version-history":[{"count":2,"href":"https:\/\/merahost.org\/blog\/wp-json\/wp\/v2\/posts\/510\/revisions"}],"predecessor-version":[{"id":1053,"href":"https:\/\/merahost.org\/blog\/wp-json\/wp\/v2\/posts\/510\/revisions\/1053"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/merahost.org\/blog\/wp-json\/wp\/v2\/media\/1044"}],"wp:attachment":[{"href":"https:\/\/merahost.org\/blog\/wp-json\/wp\/v2\/media?parent=510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merahost.org\/blog\/wp-json\/wp\/v2\/categories?post=510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merahost.org\/blog\/wp-json\/wp\/v2\/tags?post=510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}