{"id":1226,"date":"2021-10-12T09:15:36","date_gmt":"2021-10-12T08:15:36","guid":{"rendered":"https:\/\/zerothcode.com\/blog\/?p=1226"},"modified":"2021-10-12T09:15:36","modified_gmt":"2021-10-12T08:15:36","slug":"install-centos-web-panel-centos-7-x","status":"publish","type":"post","link":"https:\/\/zerothcode.com\/blog\/install-centos-web-panel-centos-7-x\/","title":{"rendered":"How to install CentOS Web Panel on CentOS 7.x"},"content":{"rendered":"<p><strong>This article will guide you on how to install CentOS Web Panel on CentOS 7.x<\/strong><\/p>\n<p>CentOS web panel is a free and open-source web hosting control panel for CentOS Servers. It provides a powerful web interface through which you can manage your CentOS server and its services.<\/p>\n<p>With Centos web panel, you can manage user accounts, Apache virtual hosts, DNS entries, MySQL databases, Email accounts, and much more. Apart from it, CentOS web panel is also used to create and manage shared hosting servers.<\/p>\n<p><strong>Table of Contents<\/strong><\/p>\n<p>Step 1: Connect to your server and update all the install packages<br \/>\nStep 2: Install dependencies<br \/>\nStep 3: Setting the Hostname and FQDN<br \/>\nStep 4: Download and Install the latest version of CentOS web panel<br \/>\nStep 5: CentOS web panel login<br \/>\nStep 6: CentOS Web Panel Configuration<\/p>\n<h3>Pre-requisites<\/h3>\n<ol>\n<li>You must have a clean\/fresh CentOS 7.x OS,<\/li>\n<li>You must have root access or access to a user with Sudo privileges.<\/li>\n<li>A valid hostname set on your server&#8217;s primary IP address.<\/li>\n<li>Minimum 1 GB RAM is required to install the CentOS web panel. If you want to enjoy full functionality such as Anti-virus scan of emails, then you should have 4GB + RAM on your server.<\/li>\n<\/ol>\n<p><strong>Note:<\/strong>\u00a0Once the CWP is installed on your CentOS Servers then you can\u2019t uninstall or remove CWP, the only option is to rebuild your server.<\/p>\n<h3>Step 1: Connect to your server and update all the install packages<\/h3>\n<p>You can connect to your server through SSH as a root user or as a user with Sudo privileges. To do this, enter the following command in the terminal.<\/p>\n<p><strong>ssh root@IP_address -p Port_number<\/strong><\/p>\n<p><strong>Note:<\/strong>\u00a0Replace the IP address and port number with your actual server IP address and SSH port number.<\/p>\n<p>Once you are logged in to the server, you have to type the following commands in the terminal to update all of your currently installed packages to their latest available versions.<\/p>\n<p><strong>yum -y update<\/strong><\/p>\n<p>This process may take 10 &#8211; 15 minutes to complete it.<\/p>\n<h3>Step 2: Install dependencies<\/h3>\n<p>You will have to enable the required package for the CentOS web panel by installing the Development Tools bundle. Type the following command in the terminal to allow it to.<\/p>\n<p><strong>yum -y groupinstall &#8216;Development Tools&#8217;<\/strong><\/p>\n<p>This process may take a few minutes to complete it.<\/p>\n<p>After then enter the following command in the terminal to enable EPEL package repository on your system. It is a Fedora Special Interest Group that creates, maintains, and manages a high-quality set of additional packages for Enterprise Linux, CentOS and more.<\/p>\n<p><strong>yum -y install epel-release <\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Step 3: Setting the Hostname and FQDN<\/h3>\n<p>Please be informed that a hostname should be an\u00a0<strong>FQDN (Fully Qualified Domain Name)<\/strong>. It is essential to use a subdomain as the hostname such as\u00a0demo.yourdomainname.com, not the primary domain name such as\u00a0yourdomainname.com. You can check the hostname of your server by using the following command in the terminal.<\/p>\n<p><strong>hostname<\/strong><\/p>\n<p>You can change or set a new hostname by the following command.<\/p>\n<p><strong>hostnamectl set-hostname [hostname which you want to set]<\/strong><\/p>\n<p>Once you change it, you also need to update the hosts file of your system. Enter the following command in the terminal to update the hosts files.<\/p>\n<p><strong>echo &#8220;IP_address hostname_yourdomainname hostname&#8221; &gt;&gt; \/etc\/hosts<\/strong><\/p>\n<p><strong>Note:<\/strong>\u00a0Once you change or set a new hostname for your server, you need to reboot your server for the changes to take effect.<\/p>\n<h3>Step 4: Download and Install the latest version of CentOS web panel<\/h3>\n<p>Please make a practice to download the latest version of CentOS web panel from their official site\u00a0<strong>(<a class=\"vglnk\" href=\"http:\/\/centos-webpanel.com\/\" rel=\"nofollow\">http:\/\/centos-webpanel.com\/<\/a>)<\/strong>. You can use\u00a0<strong>WGet<\/strong>\u00a0command to download the newest version of centos web panel from their official website to your system.<\/p>\n<p>To change the directory to \/usr\/local\/src\/ and download the latest version of the CentOS web panel, run the following command in the terminal.<\/p>\n<p><strong>cd \/usr\/local\/src\/<br \/>\nwget <a class=\"vglnk\" href=\"http:\/\/centos-webpanel.com\/cwp-el7-latest\" rel=\"nofollow\">http:\/\/centos-webpanel.com\/cwp-el7-latest<\/a><\/strong><\/p>\n<p>Once the file is downloaded, we will go further towards running it using a shell. Enter the following command in the terminal to install CentOS web panel through a script.<\/p>\n<p><strong>sh cwp-el7-latest<\/strong><\/p>\n<p>The installation process may take 30 &#8211; 40 minutes because it needs to compile apache and PHP from source.<\/p>\n<p>Once the installation is completed, a list of credentials will be appeared to access the panel. Make sure to\u00a0<strong>copy or write down the MySQL password<\/strong>\u00a0and press enter to\u00a0<strong>reboot<\/strong>\u00a0your server.<\/p>\n<p><img decoding=\"async\" title=\"01-mysql_login_details\" src=\"https:\/\/manage.accuwebhosting.com\/kb-images\/CentOS-Web-Panel\/01-mysql_login_details.png\" alt=\"01-mysql_login_details\" width=\"800\" \/><\/p>\n<h3>Step 5: CentOS web panel login<\/h3>\n<p>Once the server is online after reboot, Open your web browser and navigate the following url.<\/p>\n<p><a class=\"vglnk\" href=\"http:\/\/server_ip:2030\/\" rel=\"nofollow\">http:\/\/Server_IP:2030<\/a><\/p>\n<p>Or<\/p>\n<p><a class=\"vglnk\" href=\"https:\/\/server_ip:2031\/\" rel=\"nofollow\">https:\/\/Server_IP:2031<\/a><\/p>\n<p>Use the User Name as root and the password would be your server\u2019s root password.<\/p>\n<p><img decoding=\"async\" title=\"02-login-page-of-centos-web-panel\" src=\"https:\/\/manage.accuwebhosting.com\/kb-images\/CentOS-Web-Panel\/02-login-page-of-centos-web-panel.png\" alt=\"02-login-page-of-centos-web-panel\" width=\"800\" \/><\/p>\n<p><strong>Important Note:<\/strong>\u00a0If you are unable to login due to incorrect credentials and getting the message\u00a0<strong>\u201cEncryption error!\u201d or \u201cLogin fail\u201d<\/strong>, try changing your root password by using the command<\/p>\n<p><strong>passwd<\/strong><\/p>\n<p>Upon successful authentication and providing with right login credentials, you will be directed towards dashboard of CentOS Web Panel as shown below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"03-dashboard-of-CentOS-web-panel\" src=\"https:\/\/manage.accuwebhosting.com\/kb-images\/CentOS-Web-Panel\/03-dashboard-of-CentOS-web-panel.png\" alt=\"03-dashboard-of-CentOS-web-panel\" width=\"800\" height=\"823\" \/><\/p>\n<p>That\u2019s all. We hope this article will help you to understand CWP installation on CentOS 7, please share your feedback and comments.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article will guide you on how to install CentOS Web Panel on CentOS 7.x CentOS web panel is a<\/p>\n","protected":false},"author":2,"featured_media":1227,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[51],"tags":[],"yst_prominent_words":[],"class_list":["post-1226","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"_links":{"self":[{"href":"https:\/\/zerothcode.com\/blog\/wp-json\/wp\/v2\/posts\/1226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zerothcode.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zerothcode.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zerothcode.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/zerothcode.com\/blog\/wp-json\/wp\/v2\/comments?post=1226"}],"version-history":[{"count":2,"href":"https:\/\/zerothcode.com\/blog\/wp-json\/wp\/v2\/posts\/1226\/revisions"}],"predecessor-version":[{"id":1229,"href":"https:\/\/zerothcode.com\/blog\/wp-json\/wp\/v2\/posts\/1226\/revisions\/1229"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zerothcode.com\/blog\/wp-json\/wp\/v2\/media\/1227"}],"wp:attachment":[{"href":"https:\/\/zerothcode.com\/blog\/wp-json\/wp\/v2\/media?parent=1226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zerothcode.com\/blog\/wp-json\/wp\/v2\/categories?post=1226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zerothcode.com\/blog\/wp-json\/wp\/v2\/tags?post=1226"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/zerothcode.com\/blog\/wp-json\/wp\/v2\/yst_prominent_words?post=1226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}