{"id":2066,"date":"2018-06-21T07:00:54","date_gmt":"2018-06-21T07:00:54","guid":{"rendered":"https:\/\/blog.ssdnodes.com\/blog\/?p=2066"},"modified":"2025-05-18T19:37:14","modified_gmt":"2025-05-18T19:37:14","slug":"how-to-install-centos-web-panel","status":"publish","type":"post","link":"https:\/\/www.ssdnodes.com\/blog\/how-to-install-centos-web-panel\/","title":{"rendered":"How to install CentOS Web Panel in CentOS 7"},"content":{"rendered":"<div id=\"preview1\" class=\"g-b g-b--t1of2 split split-preview\">\n<div id=\"preview\" class=\"preview-html\">\n<p><a href=\"http:\/\/centos-webpanel.com\/\" target=\"_blank\" rel=\"noopener\">CentOS Web Panel (CWP)<\/a> is a free web hosting panel for RPM-based distributions like CentOS, and provides an easy-to-use interface to manage your server. CWP comes with a huge variety of features\/services, and unlike other control panels, it can automatically install a LAMP stack with a Varnish cache. Some of its other features include:<\/p>\n<ul>\n<li>CSF firewall<\/li>\n<li>File system lock<\/li>\n<li>User management<\/li>\n<li>DNS management<\/li>\n<li>SSL generator<\/li>\n<li>System &amp; services monitoring<\/li>\n<li>File manager<\/li>\n<li>SQL services<\/li>\n<\/ul>\n<p>In this tutorial, we will look at how to install CentOS Web Panel in CentOS 7 and configure some of its services once the installation is complete.<\/p>\n<h2>Prerequisites to install CentOS Web Panel<\/h2>\n<ul>\n<li>A new VPS running CentOS 7.<\/li>\n<li>A DNS A record that points to your server\u2019s IP address based on the FQDN you want to use. For example, an A record named <code>test<\/code> would point to <code>test.DOMAIN.TLD<\/code>.<\/li>\n<\/ul>\n<div class=\"cta-inline\"><\/div>\n<h2><a id=\"Notes_19\"><\/a>Notes<\/h2>\n<ul>\n<li>This tutorial uses variables to represent user-specific configurations, such as server IP addresses, passwords, domain names, and more. Whenever you see one of these variables, you should replace them with your specific details.<\/li>\n<\/ul>\n<h2><a id=\"Step_1_Install_the_CentOS_Web_Panel_24\"><\/a>Step 1. Install the CentOS Web Panel<\/h2>\n<p>Luckily for you, the installation of Centos Web Panel is pretty easy. Just download the installation script and run it. The script will automatically install all the required packages for CWP, and at the end of the installation, you will be provided with an URL to login to the panel.<\/p>\n<p>On a freshly installed CentOS 7 system, <code>wget<\/code> is not available. Install it by issuing following command in the terminal:<\/p>\n<pre><code>$ sudo yum -y install wget\n<\/code><\/pre>\n<p>Next, update the system using <code>yum<\/code> and download the installation script. Make the script executable before running it.<\/p>\n<pre><code>$ sudo yum -y update\n$ sudo wget http:\/\/centos-webpanel.com\/cwp-el7-latest\n$ sudo chmod u+x cwp-el7-latest\n$ .\/cwp-el7-latest\n<\/code><\/pre>\n<p>The installation script will take some time to complete, and once it\u2019s done you will be provided with an URL to access the panel and your MySQL root password. Make sure you keep these details as you will need them at later stage:<\/p>\n<pre><code>#############################\n#      CWP Installed        #\n#############################\n\ngo to CentOS WebPanel Admin GUI at http:\/\/SERVER_IP:2030\/\n\nhttp:\/\/SERVER_IP:2030\nSSL: https:\/\/SERVER_IP:2031\n---------------------\nUsername: root\nPassword: PASSWORD\nMySQL root Password: MYSQL_PASSWORD\n\n#########################################################\n          CentOS Web Panel MailServer Installer          \n#########################################################\nSSL Cert name (hostname): HOSTNAME.DOMAIN.TLD\nSSL Cert file location \/etc\/pki\/tls\/ private|certs\n#########################################################\n\nvisit for help: www.centos-webpanel.com\nWrite down login details and press ENTER for server reboot!\nPress ENTER for server reboot!\n<\/code><\/pre>\n<p>Restart the server by pressing Enter key. Once the server boots up, access CWP from your favorite browser by entering either <code>http:\/\/SERVER_IP:2030<\/code> or <code>https:\/\/SERVER_IP:2031<\/code> into the address bar.<\/p>\n<p>Login to the panel using system\u2019s root account. You got the password in the previous step.<\/p>\n<p><strong><img decoding=\"async\" class=\"aligncenter size-full wp-image-2068\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2018\/06\/201806_cwp-step-01-1.jpg\" alt=\"How to install CentOS Web Panel: the login screen\" \/><\/strong><\/p>\n<p>Once you logged in successfully, you will be redirected to the dashboard where you can find system stats, running processes, file system stats, disk details, service details, and more. There will be some warnings as well in orange and red colors.<br \/>\nTo remove these warnings, set the root email first. Next, to enable the firewall, click the <code>Firewall<\/code> tab in the dashboard and start the firewall by clicking <code>Enable firewall<\/code> in the firewall manager section.<\/p>\n<h2><a id=\"Step_2_Change_the_hostname_81\"><\/a>Step 2. Change the hostname<\/h2>\n<p>Before proceeding further, let\u2019s edit the hostname by navigating to <code>Server settings -&gt; Change hostname<\/code> from the left sidebar.<\/p>\n<p><strong><img decoding=\"async\" class=\"aligncenter size-full wp-image-2070\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2018\/06\/201806_cwp-step-02-1.jpg\" alt=\"How to install CentOS Web Panel: changing the hostname\" \/><\/strong><\/p>\n<p>You can also allocate disk quotas, create cron jobs for users, or change the root password from the server settings menu.<\/p>\n<h2><a id=\"Step_3_Add_a_user_account_90\"><\/a>Step 3. Add a user account<\/h2>\n<p>At this stage, you are ready to add domains, but for that, you need to have at least one user account. You must create a user account that belongs to yourself and link this main account to the domain to add your site in a personal hosting server.<\/p>\n<p>Create a user account by navigating to <code>User Accounts -&gt; New Account<\/code> from the left menu bar. Provide all the details like domain name, username, password, and so on. Optionally you can tick shell access and autoSSL features.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"510\" height=\"512\" class=\"aligncenter size-full wp-image-2071\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2018\/06\/201806_cwp-step-03-1.jpg\" alt=\"How to install CentOS Web Panel: creating a new user account\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2018\/06\/201806_cwp-step-03-1.jpg 510w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2018\/06\/201806_cwp-step-03-1-300x300.jpg 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2018\/06\/201806_cwp-step-03-1-150x150.jpg 150w\" sizes=\"auto, (max-width: 510px) 100vw, 510px\" \/><\/strong><\/p>\n<p>You will be provided with Account details and Panel URL for this new user.<\/p>\n<pre><code>Account Details\n========================================\nServer IP: SERVER_IP\nWeb Panel Login:\nDomain: DOMAIN.TLD\nUsername: USERNAME\nPassword: PASSWORD\nAdmin Email: EMAIL@DOMAIN.TLD\n\nPanel URL:\nhttp:\/\/SERVER_IP:2082\nhttps:\/\/SERVER_IP:2083\n\nNameServers:\nns1.centos-webpanel.com\nns2.centos-webpanel.com\n<\/code><\/pre>\n<p>Login to the panel for this newly created user by using above information\/credentials. Remember that the port number for accessing users panel are at <code>2082\/2083<\/code> for <code>http\/https<\/code>, respectively.<\/p>\n<h2><a id=\"Step_4_optional_Install_Softaculous_122\"><\/a>Step 4 (optional). Install Softaculous<\/h2>\n<p><a href=\"https:\/\/www.softaculous.com\/\" target=\"_blank\" rel=\"noopener\">Softaculous<\/a> is a one-click script installer supported by most of the web panels.<\/p>\n<p>To install it, Navigate to <code>Script Installers-&gt;Scripts Manager<\/code> and then click the <code>Install Softaculous<\/code> button. The installation process will take a minute or two.<\/p>\n<p>Once the process is finished, you can configure Softaculous via <code>Install Softaculous<\/code>. You\u2019ll be able to take advantage of nearly 500 installation scripts that will make managing your server easier than always diving into the terminal.<\/p>\n<h2><a id=\"Step_5_Install_a_Lets_Encrypt_certificate_for_SSLenabled_CWP_131\"><\/a>Step 5. Install a Let\u2019s Encrypt certificate for SSL-enabled CWP<\/h2>\n<p>Let\u2019s wrap up this article by fetching a Let\u2019s Encrypt\u2019s SSL certificate for the hostname where CWP has been installed.<\/p>\n<p>Navigate to <code>Apache Settings-&gt;SSL Cert Manager<\/code> and look for the <code>AutoSSL<\/code> tab\/section. Then enter the username you created in Step 3, followed by the hostname\/domain you want to encrypt with SSL. Click the <code>Install SSL<\/code> button, and you should see a message confirming that it was installed successfully.<\/p>\n<p>To finalize the SSL certificate installation, you need to edit the <code>\/usr\/local\/cwpsrv\/conf\/cwpsrv.conf<\/code> configuration file. You can edit the file directly in CWP by navigating to <code>File management -&gt; Advanced File Manager<\/code>. Find the file, click on it, and hit the <code>edit<\/code> button. In the second server section, comment the existing SSL directives\u2014<code>ssl_certificate \u2026<\/code> and <code>ssl_certificate_key \u2026<\/code>\u2014and add the following:<\/p>\n<pre><code>server {\n  ...\n  ...\n  ssl_certificate \/etc\/pki\/tls\/certs\/DOMAIN.TLD.cert;\n  ssl_certificate_key \/etc\/pki\/tls\/private\/DOMAIN.TLD.key;\n  ...\n  ...\n}\n<\/code><\/pre>\n<p>Click the <code>Save file<\/code> button and close the CWP File Manager. Reboot the server by navigating to <code>CWP Settings -&gt; Reboot Server<\/code>. Wait for few minutes, and you will be able to connect to CWP via <code>https:\/\/DOMAIN.TLD:2087<\/code> OR <code>https:\/\/DOMAIN.TLD:2031<\/code>. You can check the Let\u2019s Encrypt certificate information by clicking the green icon from the address bar.<\/p>\n<p><strong><img decoding=\"async\" class=\"aligncenter size-full wp-image-2064\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2018\/06\/201806_cwp-step-06.jpg\" alt=\"How to install CentOS Web Panel: adding a Let's Encrypt SSL certificate\" \/><\/strong><\/p>\n<p>We\u2019ve checked how to install CWP and configured few services offered by it. You can now explore other features and services in <a href=\"http:\/\/wiki.centos-webpanel.com\/\" target=\"_blank\" rel=\"noopener\">CWP wiki<\/a>. If you are interested in hosting a domain on your CentOS VPS, then give CWP a try!<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we&#8217;ll show you how to install CentOS Web Panel on your CentOS VPS so you can perform complex Linux admin tasks via a free web interface.<\/p>\n","protected":false},"author":20,"featured_media":2117,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[18,30],"tags":[243],"class_list":["post-2066","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops","category-tutorials","tag-centos"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/posts\/2066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/comments?post=2066"}],"version-history":[{"count":2,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/posts\/2066\/revisions"}],"predecessor-version":[{"id":13060,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/posts\/2066\/revisions\/13060"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/media\/2117"}],"wp:attachment":[{"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/media?parent=2066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/categories?post=2066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/tags?post=2066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}