{"id":16813,"date":"2025-04-04T19:30:30","date_gmt":"2025-04-04T17:30:30","guid":{"rendered":"https:\/\/tremhost.com\/blog\/?p=16813"},"modified":"2025-04-04T19:30:30","modified_gmt":"2025-04-04T17:30:30","slug":"how-to-configure-cpanel-on-a-new-server","status":"publish","type":"post","link":"https:\/\/tremhost.com\/blog\/how-to-configure-cpanel-on-a-new-server\/","title":{"rendered":"How to configure cPanel on a new server"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><h1>How to Configure cPanel on a New Server<\/h1>\n<p>Once cPanel\/WHM is installed on your server, proper configuration is key to ensuring your hosting environment runs smoothly and securely. Follow these steps to configure cPanel on your new server:<\/p>\n<hr \/>\n<h2>1. Access WHM<\/h2>\n<ul>\n<li><strong>Log in to WHM:<\/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 server&#8217;s actual IP address. Log in using your root credentials.<\/li>\n<\/ul>\n<hr \/>\n<h2>2. Complete the Initial Setup Wizard<\/h2>\n<ul>\n<li><strong>Launch the Setup Wizard:<\/strong><br \/>\nWhen you first log in, WHM will prompt you to run the Initial Setup Wizard. This wizard helps configure basic settings.<\/li>\n<li><strong>Accept the EULA:<\/strong><br \/>\nReview and accept the End-User License Agreement.<\/li>\n<li><strong>Enter Contact Information:<\/strong><br \/>\nProvide a valid email address for administrative and security notifications.<\/li>\n<li><strong>Configure Nameservers:<\/strong><br \/>\nSet up your primary and secondary nameservers. You can use your own domain names (e.g., <code>ns1.yourdomain.com<\/code> and <code>ns2.yourdomain.com<\/code>) or the default options provided by your provider.<\/li>\n<li><strong>Select the IP Address:<\/strong><br \/>\nIf your server has multiple IP addresses, choose the one you want to use for your hosting accounts.<\/li>\n<li><strong>Finalize and Save:<\/strong><br \/>\nComplete the wizard to apply these settings.<\/li>\n<\/ul>\n<hr \/>\n<h2>3. Configure Basic Server Settings<\/h2>\n<ul>\n<li><strong>Server Time and Locale:<\/strong><br \/>\nIn WHM, navigate to <strong>Server Configuration &gt; Tweak Settings<\/strong> to set the correct time zone and locale settings for your server.<\/li>\n<li><strong>Hostname:<\/strong><br \/>\nVerify that your server hostname is set correctly. You can check or change it under <strong>Networking Setup &gt; Change Hostname<\/strong>.<\/li>\n<li><strong>Mail Settings:<\/strong><br \/>\nConfigure your mail server options under <strong>Service Configuration &gt; Exim Configuration Manager<\/strong> to optimize mail delivery and spam control.<\/li>\n<\/ul>\n<hr \/>\n<h2>4. Set Up Security Measures<\/h2>\n<ul>\n<li><strong>Configure the Firewall:<\/strong><br \/>\nUse WHM\u2019s built-in tools or install a firewall like CSF (ConfigServer Security &amp; Firewall) to secure your server.<\/p>\n<ul>\n<li>Go to <strong>Plugins &gt; ConfigServer Security &amp; Firewall<\/strong> to configure rules and monitor traffic.<\/li>\n<\/ul>\n<\/li>\n<li><strong>SSH Hardening:<\/strong><br \/>\nEnsure your SSH settings are secure by disabling root login and using key-based authentication. This can be done via your server\u2019s SSH configuration outside of WHM.<\/li>\n<li><strong>Security Advisor:<\/strong><br \/>\nRun the <strong>Security Advisor<\/strong> tool in WHM to receive recommendations on improving server security.<\/li>\n<\/ul>\n<hr \/>\n<h2>5. Optimize Performance and Resource Allocation<\/h2>\n<ul>\n<li><strong>Service Manager:<\/strong><br \/>\nUnder <strong>Service Configuration &gt; Service Manager<\/strong>, enable or disable services based on your server\u2019s needs to optimize resource usage.<\/li>\n<li><strong>Apache &amp; PHP Settings:<\/strong><br \/>\nConfigure Apache settings (e.g., worker processes, timeout settings) and PHP versions\/modules via <strong>Software &gt; MultiPHP Manager<\/strong> and <strong>MultiPHP INI Editor<\/strong> to ensure compatibility with your websites.<\/li>\n<\/ul>\n<hr \/>\n<h2>6. Create Hosting Packages and Accounts<\/h2>\n<ul>\n<li><strong>Set Up Packages:<\/strong><br \/>\nGo to <strong>Packages &gt; Add a Package<\/strong> to define hosting plans with specific resource limits (disk space, bandwidth, email accounts, etc.). This helps streamline account creation.<\/li>\n<li><strong>Create cPanel Accounts:<\/strong><br \/>\nUnder <strong>Account Functions &gt; Create a New Account<\/strong>, set up individual hosting accounts for your clients or websites. Ensure that domain names, usernames, and passwords are correctly configured.<\/li>\n<\/ul>\n<hr \/>\n<h2>7. Regular Maintenance and Monitoring<\/h2>\n<ul>\n<li><strong>Update Software:<\/strong><br \/>\nRegularly update cPanel\/WHM and server software to the latest versions via <strong>cPanel Updates<\/strong> in WHM.<\/li>\n<li><strong>Monitor Logs and Performance:<\/strong><br \/>\nUse WHM\u2019s monitoring tools under <strong>Server Status<\/strong> to keep an eye on server performance, resource usage, and any potential issues.<\/li>\n<\/ul>\n<hr \/>\n<h2>Final Thoughts<\/h2>\n<p>Properly configuring cPanel on a new server sets the foundation for a secure, efficient, and manageable hosting environment. By completing the initial setup, fine-tuning basic settings, implementing robust security measures, and optimizing performance, you\u2019re well on your way to providing a reliable hosting solution.<\/p>\n<p>Ready to get started? Log in to WHM and follow these steps to fully configure your new cPanel server for success!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Configure cPanel on a New Server Once cPanel\/WHM is installed on your server, proper configuration is key to ensuring your hosting environment runs smoothly and securely. Follow these steps to configure cPanel on your new server: 1. Access WHM Log in to WHM: Open your web browser and navigate to: https:\/\/your-server-ip:2087 Replace your-server-ip [&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-16813","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\/16813","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=16813"}],"version-history":[{"count":2,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts\/16813\/revisions"}],"predecessor-version":[{"id":16815,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts\/16813\/revisions\/16815"}],"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=16813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/categories?post=16813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/tags?post=16813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}