{"id":16811,"date":"2025-04-04T19:28:42","date_gmt":"2025-04-04T17:28:42","guid":{"rendered":"https:\/\/tremhost.com\/blog\/?p=16811"},"modified":"2025-04-04T19:28:42","modified_gmt":"2025-04-04T17:28:42","slug":"how-to-set-up-a-dedicated-server-with-cpanel","status":"publish","type":"post","link":"https:\/\/tremhost.com\/blog\/how-to-set-up-a-dedicated-server-with-cpanel\/","title":{"rendered":"How to set up a dedicated server with cPanel"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><h1>How to Set Up a Dedicated Server with cPanel<\/h1>\n<p>Setting up a dedicated server with cPanel\/WHM gives you complete control over your hosting environment while enjoying the ease of a powerful control panel. Follow these step-by-step instructions to prepare your dedicated server, install cPanel\/WHM, and configure it for optimal performance.<\/p>\n<hr \/>\n<h2>1. Prepare Your Dedicated Server<\/h2>\n<h3>a. Choose a Supported Operating System<\/h3>\n<ul>\n<li><strong>Recommended OS:<\/strong><br \/>\ncPanel\/WHM is compatible with CentOS, AlmaLinux, or CloudLinux. For a fresh installation, use one of these OS versions.<\/li>\n<li><strong>Fresh Install:<\/strong><br \/>\nEnsure your server has a minimal, clean installation to avoid conflicts with existing software.<\/li>\n<\/ul>\n<h3>b. Set a Fully Qualified Domain Name (FQDN)<\/h3>\n<ul>\n<li><strong>Set Hostname:<\/strong><br \/>\nUse a unique FQDN for your server. For example:<\/p>\n<pre><code class=\"language-bash\">hostnamectl set-hostname server.yourdomain.com\r\n<\/code><\/pre>\n<p>Replace <code>server.yourdomain.com<\/code> with your desired hostname.<\/li>\n<\/ul>\n<h3>c. Update Your System and Disable SELinux<\/h3>\n<ul>\n<li><strong>System Updates:<\/strong><br \/>\nFor CentOS\/AlmaLinux:<\/p>\n<pre><code class=\"language-bash\">yum update -y\r\n<\/code><\/pre>\n<\/li>\n<li><strong>Disable SELinux:<\/strong><br \/>\nEdit <code>\/etc\/selinux\/config<\/code> and change:<\/p>\n<pre><code class=\"language-plaintext\">SELINUX=enforcing\r\n<\/code><\/pre>\n<p>to<\/p>\n<pre><code class=\"language-plaintext\">SELINUX=disabled\r\n<\/code><\/pre>\n<p>Save the file and reboot the server:<\/p>\n<pre><code class=\"language-bash\">reboot\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<hr \/>\n<h2>2. Obtain a cPanel License<\/h2>\n<ul>\n<li><strong>Purchase a License:<\/strong><br \/>\nAcquire a valid cPanel license from cPanel\u2019s website or through your hosting provider. Your license is required during and after installation.<\/li>\n<\/ul>\n<hr \/>\n<h2>3. Install cPanel\/WHM<\/h2>\n<h3>a. Log in as Root<\/h3>\n<ul>\n<li><strong>SSH Access:<\/strong><br \/>\nConnect to your dedicated server via SSH as the root user.<\/li>\n<\/ul>\n<h3>b. Download the cPanel Installer<\/h3>\n<ul>\n<li><strong>Download Command:<\/strong><br \/>\nChange to the home directory and download the latest installer:<\/p>\n<pre><code class=\"language-bash\">cd \/home &amp;&amp; curl -o latest -L https:\/\/securedownloads.cpanel.net\/latest\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<h3>c. Run the Installer<\/h3>\n<ul>\n<li><strong>Start Installation:<\/strong><br \/>\nExecute the installer script:<\/p>\n<pre><code class=\"language-bash\">sh latest\r\n<\/code><\/pre>\n<p><em>Note:<\/em> The installation process may take 30\u201360 minutes depending on your server&#8217;s performance and internet speed.<\/li>\n<\/ul>\n<hr \/>\n<h2>4. Configure WHM<\/h2>\n<h3>a. Access WHM<\/h3>\n<ul>\n<li><strong>Open Browser:<\/strong><br \/>\nOnce installation is complete, navigate to:<\/p>\n<pre><code>https:\/\/your-server-ip:2087\r\n<\/code><\/pre>\n<p>Replace <code>your-server-ip<\/code> with your server\u2019s IP address.<\/li>\n<\/ul>\n<h3>b. Log in to WHM<\/h3>\n<ul>\n<li><strong>Use Credentials:<\/strong><br \/>\nLog in using the root username and password.<\/li>\n<\/ul>\n<h3>c. Complete the Initial Setup Wizard<\/h3>\n<ul>\n<li><strong>Follow the Wizard:<\/strong><br \/>\nThe WHM wizard will guide you through:<\/p>\n<ul>\n<li>Accepting the End-User License Agreement (EULA)<\/li>\n<li>Entering your cPanel license information (if prompted)<\/li>\n<li>Configuring basic settings such as networking, nameservers, and contact details<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>d. Secure Your Installation<\/h3>\n<ul>\n<li><strong>Security Settings:<\/strong><br \/>\nWithin WHM, set up firewall rules, enable automatic updates, and configure additional security measures to protect your server.<\/li>\n<\/ul>\n<hr \/>\n<h2>5. Final Steps and Testing<\/h2>\n<ul>\n<li><strong>Verify cPanel Access:<\/strong><br \/>\nLog in to cPanel for a test domain to ensure the installation is functioning correctly.<\/li>\n<li><strong>Configure DNS:<\/strong><br \/>\nUpdate your domain&#8217;s DNS settings to point to your dedicated server.<\/li>\n<li><strong>Monitor and Maintain:<\/strong><br \/>\nRegularly check logs, update software, and monitor server performance to maintain a secure and efficient hosting environment.<\/li>\n<\/ul>\n<hr \/>\n<h2>Final Thoughts<\/h2>\n<p>Setting up a dedicated server with cPanel\/WHM provides you with a robust hosting platform that is both powerful and user-friendly. By following these steps\u2014preparing your server, obtaining a cPanel license, installing the software, and configuring WHM\u2014you\u2019re well on your way to managing your hosting environment with ease.<\/p>\n<p>Ready to manage your dedicated server like a pro? Get started with these steps and enjoy the flexibility, control, and enhanced performance that come with a dedicated server powered by cPanel\/WHM.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Set Up a Dedicated Server with cPanel Setting up a dedicated server with cPanel\/WHM gives you complete control over your hosting environment while enjoying the ease of a powerful control panel. Follow these step-by-step instructions to prepare your dedicated server, install cPanel\/WHM, and configure it for optimal performance. 1. Prepare Your Dedicated Server [&hellip;]<\/p>\n","protected":false},"author":1772,"featured_media":16798,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"tdm_status":"","tdm_grid_status":"","footnotes":""},"categories":[163],"tags":[],"class_list":{"0":"post-16811","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-hosting"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts\/16811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/users\/1772"}],"replies":[{"embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/comments?post=16811"}],"version-history":[{"count":1,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts\/16811\/revisions"}],"predecessor-version":[{"id":16812,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts\/16811\/revisions\/16812"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/media\/16798"}],"wp:attachment":[{"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/media?parent=16811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/categories?post=16811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/tags?post=16811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}