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.
![](https://s3.amazonaws.com/s3.bonben365.com/files/2023/j5tso0dj1THHklv89cHAO2BPs28EZd9ZqNE9tlxotTyNWfsYsSKiNB4s6CyG.jpg)
When you access the CyberPanel using the new port. The connection could not establish.
![J4HaV3nLicwtwzy8qL5ggzIJFhNBNFmwP5YfSmfIYqdsOKXM1gQYF3DVS7gl](https://s3.amazonaws.com/s3.bonben365.com/files/2023/J4HaV3nLicwtwzy8qL5ggzIJFhNBNFmwP5YfSmfIYqdsOKXM1gQYF3DVS7gl.jpg)
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.
![xMSihRrZTYbtrfTrqIZX01ZmKrKbtMwltmBdPSae0XUlIGbdInU9furcSqiH](https://s3.amazonaws.com/s3.bonben365.com/files/2023/xMSihRrZTYbtrfTrqIZX01ZmKrKbtMwltmBdPSae0XUlIGbdInU9furcSqiH.jpg)
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.
![NYzWFaEeQgKFHlkafRGEbAda0E4Wukp5RAxaXtIWrfyWYo6CF37mlH8zuTiv](https://s3.amazonaws.com/s3.bonben365.com/files/2023/NYzWFaEeQgKFHlkafRGEbAda0E4Wukp5RAxaXtIWrfyWYo6CF37mlH8zuTiv.jpg)
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: