{"id":396,"date":"2024-03-24T21:59:49","date_gmt":"2024-03-24T21:59:49","guid":{"rendered":"https:\/\/vpswebhostingindia.in\/blog\/?p=396"},"modified":"2024-03-24T22:20:35","modified_gmt":"2024-03-24T22:20:35","slug":"how-to-change-aapanel-port-on-ubuntu","status":"publish","type":"post","link":"https:\/\/vpswebhostingindia.in\/blog\/how-to-change-aapanel-port-on-ubuntu\/","title":{"rendered":"How to Change the aaPanel port on Ubuntu \u2013 Ultimate Guide"},"content":{"rendered":"\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#introduction\">Introduction<\/a><\/li><li><a href=\"#2-different-methods-you-can-change-the-aa-panel-port\">2 Different methods you can change the aaPanel port:<\/a><ul><li><a href=\"#method-1-change-the-port-with-aa-panel-cli\">Method 1: Change the port with aaPanel CLI<\/a><\/li><li><a href=\"#method-2-change-the-port-from-the-aa-panel-admin-page\">Method 2: Change the port from the aaPanel admin page<\/a><\/li><\/ul><\/li><li><a href=\"#open-the-port-with-firewall\">Open the port with Firewall<\/a><\/li><li><a href=\"#check-aa-panel-with-the-new-port\">Check aaPanel with the new port<\/a><\/li><li><a href=\"#conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"introduction\">Introduction<\/h2>\n\n\n\n<p>In today\u2019s article, will show you how to change the <a href=\"https:\/\/www.aapanel.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">aaPanel<\/a> port to help increase the security of aaPanel or depending on certain needs, you need to change the default port.<\/p>\n\n\n\n<p>When installing aaPanel, the default port to use is <strong>8888<\/strong>. However, the developers of control panels recommend that users change and use a different port instead of the default port. To improve security as well as limit brute force attacks on your server, the developer of aaPanel has always warned about the potential danger with the default port when you have just installed the content.<\/p>\n\n\n\n<p class=\"has-white-color has-pale-ocean-gradient-background has-text-color has-background has-link-color wp-elements-719d3e3ae3b1b470c546ff76c1b79034\"><mark><strong>The current panel uses the default port [8888], which has security risks. Please modify the panel port in the panel settings<\/strong><\/mark><\/p>\n\n\n\n<p>So how to change the aaPanel port, please follow the below guide.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"2-different-methods-you-can-change-the-aa-panel-port\">2 Different methods you can change the aaPanel port:<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"method-1-change-the-port-with-aa-panel-cli\">Method 1: Change the port with aaPanel CLI<\/h3>\n\n\n\n<p>To change the aaPanel port, you need to SSH into your server with the highest privilege as root.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"606\" height=\"546\" src=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-32.png\" alt=\"\" class=\"wp-image-399\" srcset=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-32.png 606w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-32-300x270.png 300w\" sizes=\"auto, (max-width: 606px) 100vw, 606px\" \/><\/figure>\n\n\n\n<p>After SSH into the <a href=\"https:\/\/vpswebhostingindia.in\/vps_hosting\/\">VPS<\/a>, type <code><strong>bt<\/strong><\/code> to enter the <strong>aaPanel CLI<\/strong> menu. Next, press the number <code>8<\/code> corresponding to the <strong>Change panel port<\/strong> function and fill in the information as below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"411\" src=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-33-1024x411.png\" alt=\"\" class=\"wp-image-400\" srcset=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-33-1024x411.png 1024w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-33-300x121.png 300w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-33-768x309.png 768w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-33-1536x617.png 1536w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-33.png 1812w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>If you receive a message like the above, you have changed the port completely.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"method-2-change-the-port-from-the-aa-panel-admin-page\">Method 2: Change the port from the aaPanel admin page<\/h3>\n\n\n\n<p>This way, you just need to log in to the aaPanel admin page under the default path                        <code>http:\/\/<\/code>server-<code>ip:8888\/<\/code> to login. <\/p>\n\n\n\n<p>After logging in to aaPanel, you can change the port by going to<\/p>\n\n\n\n<p><strong>Settings <\/strong>=&gt; <strong>Modify <\/strong>=&gt; <strong>Port <\/strong>=&gt; <strong>Confirm<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"501\" src=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-34-1024x501.png\" alt=\"\" class=\"wp-image-401\" srcset=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-34-1024x501.png 1024w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-34-300x147.png 300w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-34-768x376.png 768w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-34.png 1181w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"open-the-port-with-firewall\">Open the port with Firewall<\/h2>\n\n\n\n<p>By default, aaPanel will be using the CSF firewall, so after you change the port, you need to open this new port on CSF to access aaPanel. For example, I change the new port to 2021, the steps to open the port are as follows:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"952\" height=\"118\" src=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/1223.png\" alt=\"aaPanel port\" class=\"wp-image-411\" srcset=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/1223.png 952w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/1223-300x37.png 300w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/1223-768x95.png 768w\" sizes=\"auto, (max-width: 952px) 100vw, 952px\" \/><\/figure>\n\n\n\n<p>Command annotation:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Command 1: Open the CSF configuration file<\/li>\n\n\n\n<li>Command 2: Press <code><strong>i<\/strong><\/code> to edit the file content.<\/li>\n\n\n\n<li>Command 3: Press <code><strong>:x<\/strong><\/code> to save the content after editing.<\/li>\n\n\n\n<li>Command 4: Reload CSF to receive configuration.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"993\" height=\"728\" src=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-36.png\" alt=\"\" class=\"wp-image-403\" srcset=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-36.png 993w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-36-300x220.png 300w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-36-768x563.png 768w\" sizes=\"auto, (max-width: 993px) 100vw, 993px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"check-aa-panel-with-the-new-port\"><strong>Check aaPanel with the new port<\/strong><\/h2>\n\n\n\n<p>After successfully changing and opening the port with CSF, you can access aaPanel with the new port to see if it works well. After changing, I was able to access the new port 2021 as shown below:<\/p>\n\n\n\n<p><code>http:\/\/<\/code>server-<code>ip:2021\/<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1006\" height=\"542\" src=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-37.png\" alt=\"\" class=\"wp-image-404\" srcset=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-37.png 1006w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-37-300x162.png 300w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/03\/image-37-768x414.png 768w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p>So, in this article, showed you how to change the default port of aaPanel with just a few simple steps. Changing the port seems like a simple job, but it gives you more safety and peace of mind in the process of using and operating VPS. If you find this helpful article, please share it widely<a href=\"https:\/\/azdigi.com\/pro-vps\/\" rel=\"nofollow noopener\" target=\"_blank\"><strong>.<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In today\u2019s article, will show you how to change the aaPanel port to help increase the security of aaPanel or depending on certain needs, you need to change the default port. When installing aaPanel, the default port to use is 8888. However, the developers of control panels recommend that users change and use a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":408,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"_eb_attr":"","footnotes":""},"categories":[30,31],"tags":[],"class_list":["post-396","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aapanel","category-aapanel-port"],"_links":{"self":[{"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/posts\/396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/comments?post=396"}],"version-history":[{"count":5,"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/posts\/396\/revisions"}],"predecessor-version":[{"id":412,"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/posts\/396\/revisions\/412"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/media\/408"}],"wp:attachment":[{"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/media?parent=396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/categories?post=396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/tags?post=396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}