Table of Contents
Lost access to the CyberPanel with port 8090
CyberPanel default port is your serverip plus port number example: 10.20.30.40:8090 when you type it on your browser it will take you to the login page for CyberPanel.
But if you have changed the port like i did you may get an error or your CyberPanel may not load.

When you access the CyberPanel using the new port. The connection could not establish.

To restore the port to the default one. Let’s SSH to your server using a sudo user then run the following command to edit that file:
sudo nano /usr/local/lscp/conf/bind.conf
Use the nano editor to change the port to the default value 8090.

Save the file then restart the OpenLiteSpeed services.
sudo systemctl restart lsws && sudo systemctl restart lscpd
As you can see, the error was gone, and we can access the panel using the default port number.

Change Default Port for CyberPanel
If you want to change the default port (8090) to a custom port, you can follow the below post:
Not a reader? Watch this related video tutorial: