{"id":16800,"date":"2025-04-04T19:19:43","date_gmt":"2025-04-04T17:19:43","guid":{"rendered":"https:\/\/tremhost.com\/blog\/?p=16800"},"modified":"2025-04-04T19:19:43","modified_gmt":"2025-04-04T17:19:43","slug":"how-to-set-up-a-cpanel-vps","status":"publish","type":"post","link":"https:\/\/tremhost.com\/blog\/how-to-set-up-a-cpanel-vps\/","title":{"rendered":"How to set up a cPanel VPS"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><h1>How to Set Up a cPanel VPS<\/h1>\n<p>Setting up a cPanel VPS gives you a powerful, user-friendly control panel to manage your websites, email, DNS, and more. Here\u2019s a step-by-step guide to help you configure your VPS with cPanel\/WHM.<\/p>\n<hr \/>\n<h2>1. Prepare Your VPS<\/h2>\n<h3>a. Use a Supported Operating System<\/h3>\n<ul>\n<li><strong>Recommended OS:<\/strong><br \/>\nEnsure your VPS is running a supported OS such as CentOS 7\/8, AlmaLinux 8, or CloudLinux.<\/li>\n<li><strong>Fresh Installation:<\/strong><br \/>\nFor best results, start with a minimal, clean installation.<\/li>\n<\/ul>\n<h3>b. Set a Fully Qualified Domain Name (FQDN)<\/h3>\n<ul>\n<li><strong>Example Command:<\/strong>\n<pre><code class=\"language-bash\">hostnamectl set-hostname server.yourdomain.com\r\n<\/code><\/pre>\n<\/li>\n<li><strong>Note:<\/strong><br \/>\nReplace <code>server.yourdomain.com<\/code> with a valid hostname for your VPS.<\/li>\n<\/ul>\n<h3>c. Update Your System<\/h3>\n<ul>\n<li><strong>Update Packages:<\/strong>\n<pre><code class=\"language-bash\">yum update -y\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<h3>d. Disable SELinux<\/h3>\n<ul>\n<li><strong>Edit SELinux Config:<\/strong><br \/>\nOpen <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<\/li>\n<li><strong>Reboot the Server:<\/strong>\n<pre><code class=\"language-bash\">reboot\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<hr \/>\n<h2>2. Verify Prerequisites<\/h2>\n<ul>\n<li><strong>Clean Environment:<\/strong><br \/>\nEnsure there are no conflicting control panels or services installed.<\/li>\n<li><strong>cPanel License:<\/strong><br \/>\nHave a valid cPanel license ready. You can purchase one through cPanel or your hosting provider.<\/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 VPS as the root user.<\/li>\n<\/ul>\n<h3>b. Download the Installer<\/h3>\n<ul>\n<li><strong>Download Command:<\/strong>\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>\n<pre><code class=\"language-bash\">sh latest\r\n<\/code><\/pre>\n<\/li>\n<li><strong>Duration:<\/strong><br \/>\nThe installation process may take 30\u201360 minutes depending on your server and connection speed.<\/li>\n<\/ul>\n<hr \/>\n<h2>4. Configure WHM<\/h2>\n<h3>a. Access WHM<\/h3>\n<ul>\n<li><strong>URL Format:<\/strong><br \/>\nOpen your web browser and 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 VPS\u2019s IP address.<\/li>\n<\/ul>\n<h3>b. Log in to WHM<\/h3>\n<ul>\n<li><strong>Credentials:<\/strong><br \/>\nUse the root username and password.<\/li>\n<\/ul>\n<h3>c. Complete the Initial Setup Wizard<\/h3>\n<ul>\n<li><strong>Steps Include:<\/strong>\n<ul>\n<li>Accepting the End-User License Agreement (EULA)<\/li>\n<li>Entering your cPanel license details (if prompted)<\/li>\n<li>Configuring basic settings such as network information, nameservers, and contact details<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>d. Secure Your Installation<\/h3>\n<ul>\n<li><strong>Additional Security:<\/strong><br \/>\nUse WHM\u2019s security tools to configure firewalls, automatic updates, and other security measures.<\/li>\n<\/ul>\n<hr \/>\n<h2>Final Thoughts<\/h2>\n<p>By following these steps, you\u2019ll have a fully functional cPanel VPS that simplifies web hosting management and provides a robust environment for your websites and applications. With your VPS now running cPanel\/WHM, you can easily create and manage hosting accounts, configure email, and monitor server performance.<\/p>\n<p>Ready to manage your hosting like a pro? Set up your cPanel VPS today and take full control of your online presence!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Set Up a cPanel VPS Setting up a cPanel VPS gives you a powerful, user-friendly control panel to manage your websites, email, DNS, and more. Here\u2019s a step-by-step guide to help you configure your VPS with cPanel\/WHM. 1. Prepare Your VPS a. Use a Supported Operating System Recommended OS: Ensure your VPS is [&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-16800","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\/16800","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=16800"}],"version-history":[{"count":1,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts\/16800\/revisions"}],"predecessor-version":[{"id":16801,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts\/16800\/revisions\/16801"}],"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=16800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/categories?post=16800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/tags?post=16800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}