Question from here.
Simple Guide: Setup VPS with CyberPanel, PHP 8.2, and Redis
Step 1:
Buy a VPS (there're a lot of providers)
Step 2:
Login and Update your vps
ssh root@<your-vps-ip>
sudo apt update && sudo apt upgrade -y
Step3:
Install cyberpanel
cd /home
wget -O installer.sh https://cyberpanel.net/install.sh
sudo chmod +x installer.sh
sudo ./installer.sh
Step 4:
Allow ports for cyberpanel, litespeed, http, https
sudo ufw allow 8090/tcp
sudo ufw allow 7080/tcp
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw reload
Step 5:
Verify your cyberpanel and litespeed are online
https://<your-vps-ip>:8090
https://<your-vps-ip>:7080
Step 6:
Install php8.2 and redis
sudo apt install lsphp82 lsphp82-mysql lsphp82-common lsphp82-curl lsphp82-gd lsphp82-imagick lsphp82-xml lsphp82-xmlrpc lsphp82-mbstring lsphp82-soap lsphp82-zip lsphp82-bcmath lsphp82-intl php8.2-redis redis-server -y
sudo systemctl enable redis-server
sudo systemctl start redis-server
Step 7:
Configure php in openlitespeed (port7080)
Server Conf > External Apps > Set lsphp path: /usr/local/lsws/lsphp82/bin/lsphp
Step 8:
Restart your litespeed server and enjoy!
sudo systemctl restart lsws
I had bad experience with cyberpanel (lot of bugs). I switched to runcloud. I would also consider xCloud now.