How to host your own WordPress Sites on a VPS using LiteSpeed.

[ad_1]

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

[ad_2]
1 Comment
  1. I had bad experience with cyberpanel (lot of bugs). I switched to runcloud. I would also consider xCloud now.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer