开发者

How to change cpanel default port?

I have one server and on that server cpanel is running on 2083 port. I need this url for configure my other service. I want to change port 2083 to 8088. Where i have to make changes. I checked my httpd.conf in that they wrote

RewriteCond %{HTTP_HOST} ^cpanel\.
RewriteCond %{HTTPS} on
RewriteRule ^/(.*) https://127.0.0.1:2083/$1 [P]

So is there any change wha开发者_Go百科t i have to do in this file to change cpanel.

I checked cpanel/APACHE_CONFIG but i didnt get any hint.


changing port number in cpanel.config didn't work for me

So I used the internal port redirection i.e route all traffic on port 8088 internally to port 2083.

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 8088 -j REDIRECT --to-port 2083


You can modify the file at /var/cpanel/cpanel.config

You can find this value:

port=2082

I believe this is the default cPanel port that can be changed.


You can change the cPanel port in /var/cpanel/cpanel.config file. Search for this line
--------------------
port=2082
----------------------
After changing the port, then run these two commands for it to take effect:

# /usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings
# /etc/init.d/httpd restart

via : http://linuxworldweb.blogspot.co.uk/2012/01/how-to-change-cpanel-port.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜