CyberHosting

How Can I Change Default Port CP ?

Hello,

How can i change default port on CyberPanel ? From 8090 to 4545 (for example) ?

I can change webadmin console easily, but i don't know how to change default port on CyberPanel

Thank you

Comments

  • It is not possible now, but planning to make it configurable during installation.

  • @usmannasir said:
    It is not possible now, but planning to make it configurable during installation.

    Thank you then :)

  • is this something that is looked into?
  • @Numeriku whats wrong with the current port ?
  • To file:
    /usr/local/lscp/conf/bind.conf
    add:
    *:YOUR_PORT
    and in any file in
    /usr/local/CyberCP/
    change hard-coded port 8090 to YOUR_PORT:
    grep 8090 /usr/local/CyberCP -rl |grep -v ".php\|.css\|.js\|.pem\|.html\|.png\|site-packages"|xargs -i sed -i 's/8090/YOUR_PORT/'
  • The /usr/local/lscp/conf/bind.conf file is empty by default. Is it normal?
  • Type your comment> @notcastey said:
    > To file:
    > /usr/local/lscp/conf/bind.conf
    > add:
    > *:YOUR_PORT
    > and in any file in
    > /usr/local/CyberCP/
    > change hard-coded port 8090 to YOUR_PORT:
    > grep 8090 /usr/local/CyberCP -rl |grep -v ".php\|.css\|.js\|.pem\|.html\|.png\|site-packages"|xargs -i sed -i 's/8090/YOUR_PORT/'
    >
    >

    this is super cool , didn't even know that

    but another issue is that if you changed port , every time you upgrade , it will revert back to 8090
  • Type your comment> @notcastey said:
    > To file:
    > /usr/local/lscp/conf/bind.conf
    > add:
    > *:YOUR_PORT
    > and in any file in
    > /usr/local/CyberCP/
    > change hard-coded port 8090 to YOUR_PORT:
    > grep 8090 /usr/local/CyberCP -rl |grep -v ".php\|.css\|.js\|.pem\|.html\|.png\|site-packages"|xargs -i sed -i 's/8090/YOUR_PORT/'
    >
    >

    For anyone trying this, just remember to add port number to firewall and systemctl restart lscpd
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!