# Installing Cyberpanel

1. Login to the VPS using SSH
2. Update Ubuntu

```
apt update && sudo apt upgrade -y
```

3. If you get a screen about Kernel updating and services restarting press enter to proceed.
4. Run the following command to install the necessary tools for Cyberpanel

```
apt install wget curl swig autoconf automake libtool pkg-config gcc g++ make -y
```

5. Install `screen` tool to have things running even if the terminal is closed

```
apt install screen -y
```

6. Enter screen mode by typing `screen` and then press space
7. View the sshd\_config file to edit it

```
nano /etc/ssh/sshd_config
```

8. Search for `permitRootLogin` and change `prohibit-password` to `yes`
9. Remove the # before the word `permitRootLogin`
10. Press `ctrl` + `x` and then `y` and press enter to save the file and exit nano editor.
11. Set the root user password with command `passwd`
12. Restart the ssh service

```
systemctl restart ssh 
```

13. Logout of the SSH connection (by closing the terminal)
14. Login with the root user

```
sudo su -
```

15. Go to screen mode by entering the `screen` command and then pressing space
16. Install Cyberpanel with the following command

```
sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)
```

17. Enter `1` to select "Install CyberPanel"
18. Enter `1` to select OpenLiteSpeed
19. Enter `Y` to do a full installation
20. Enter `N` to skip installing remote MySQL
21. Press `enter` to install the latest MySQL
22. Enter `s` to set a password for the admin user of the CyberPanel
23. Enter the password and confirm it
24. Enter `Y` to install Memcached
25. Enter `n` to skip installing Redis
26. Type `no` to skip installing watchdog
27. After installation is complete, Cyberpanel should be running in IP:8090 port
