Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2007
    Posts
    138

    Default whm and cpanel ports

    Is there a way to change the default ports that cpanel and whm run on? In my searching, I see that in the cpanel.config file, the cpanel port can be changed but I could not find anything about whm. Thanks.

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by sirdopes View Post
    Is there a way to change the default ports that cpanel and whm run on? In my searching, I see that in the cpanel.config file, the cpanel port can be changed but I could not find anything about whm. Thanks.
    Changing of the cPanel port is NOT recommended and has the potential to break things... oh ya, and it's not supported either .

    At this time, there is no method by which to change the default ports. However, if your users are having firewall issues and you are running cPanel 11.23 or later, they can make use of the reverse proxy (cpanel.example.com and whm.example.com where example.com is their domain and you have mod_proxy installed on your Apache server).

  3. #3
    Member sneader's Avatar
    Join Date
    Aug 2003
    Location
    La Crosse, WI
    Posts
    894
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Hi David. The new cPanel proxy feature is working great for all new customers that I create. Can you tell me how to enable it for an existing customer?

    - Scott

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by sneader View Post
    Hi David. The new cPanel proxy feature is working great for all new customers that I create. Can you tell me how to enable it for an existing customer?

    - Scott
    To do this, ensure this setting is checked:

    Code:
    Add proxy VirtualHost to httpd.conf to automatically redirect unconfigured cpanel, webmail, webdisk and whm subdomains to the correct port (requires mod_rewrite and mod_proxy)
    Also, just verify the following setting is also checked:

    Code:
    Automatically create cpanel, webmail, webdisk and whm proxy subdomain DNS entries for new accounts. When this is initially enabled it will add appropriate proxy subdomain DNS entries to all existing accounts. (Use /scripts/proxydomains to reconfigure the DNS entries manually)
    Then click "save" at the bottom of the Tweak Settings page.

  5. #5
    Member sneader's Avatar
    Join Date
    Aug 2003
    Location
    La Crosse, WI
    Posts
    894
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Thanks for the quick reply. It seems that all I had to do was to edit the customer's existing DNS zone, and create a DNS "A record" entry for "cpanel" for the existing customer, and point it to the IP of the server, and it instantly started working for them.

    However, in Tweak Settings, indeed I have this checked:

    "Automatically create cpanel, webmail, webdisk and whm proxy subdomain DNS entries for new accounts. When this is initially enabled it will add appropriate proxy subdomain DNS entries to all existing accounts. (Use /scripts/proxydomains to reconfigure the DNS entries manually)" (added red for emphasis)

    I do not believe that this is working, as my existing customers did not get the correct DNS entries... as evidenced by me having to manually create it for the one customer that wanted it.

    But maybe I don't understand the last part (Use /scripts/proxydomains to reconfigure the DNS entries manually) -- what is that about?

    - Scott

  6. #6
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by sneader View Post
    Thanks for the quick reply. It seems that all I had to do was to edit the customer's existing DNS zone, and create a DNS "A record" entry for "cpanel" for the existing customer, and point it to the IP of the server, and it instantly started working for them.

    However, in Tweak Settings, indeed I have this checked:

    "Automatically create cpanel, webmail, webdisk and whm proxy subdomain DNS entries for new accounts. When this is initially enabled it will add appropriate proxy subdomain DNS entries to all existing accounts. (Use /scripts/proxydomains to reconfigure the DNS entries manually)" (added red for emphasis)

    I do not believe that this is working, as my existing customers did not get the correct DNS entries... as evidenced by me having to manually create it for the one customer that wanted it.
    You may want to have our technical analysts take a look at that (see link in my signature)

    Quote Originally Posted by sneader View Post
    But maybe I don't understand the last part (Use /scripts/proxydomains to reconfigure the DNS entries manually) -- what is that about?

    - Scott
    That's if the user had a pre-existing webmail. subdomain that is of no relation to our recently added reverse proxy functionality. If the user removes these or you want to override their configuration (not necessarily a good idea if they're actively using cpanel. webmail. or whm. for some reason) - that's what that script is for.

  7. #7
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    [b]/scripts/proxydomains[b] allows one to setup the Proxy Access on any arbitrary domain hosted on the server. The default settings only install the necessary records on the primary domain of an account. /scripts/proxydomains allows one to perform the same on Addon, Parked and Sub domains.

Similar Threads & Tags
Similar threads

  1. How to open some ports from my Whm Cpanel?
    By plimper in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-24-2010, 12:12 AM
  2. WHM / Cpanel Ports
    By diffkiller in forum Diskussion auf Deutsch
    Replies: 1
    Last Post: 08-12-2009, 04:22 PM
  3. new cpanel whm ports?
    By a66fm in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-22-2008, 08:29 PM
  4. Cpanel and WHM on other ports?
    By Promethyl in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-21-2005, 12:15 PM
  5. Ports used by CPanel WHM
    By DHL in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-26-2002, 11:54 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube