How to install OpenLiteSpeed and CyberPanel on a new (Ubuntu) EC2 Instance

Step 1: Launch an Ubuntu EC2 Instance

  1. Go to the AWS Management Console and navigate to EC2.
  2. Launch a new instance:
    • Select an Ubuntu Amazon Machine Image (AMI).
    • Choose an instance type (e.g., t2.micro for free tier).
    • Configure security group rules to allow HTTP (port 80), HTTPS (port 443), and SSH (port 22).

Step 2: Update and Upgrade Ubuntu

  1. Connect to your instance via SSH: ssh -i "your-key.pem" ubuntu@your-ec2-public-ip
  2. Update and upgrade the system: sudo apt update && sudo apt upgrade -y

Step 3: Install CyberPanel

  1. Install wget and download the CyberPanel installer: sudo apt install wget -y wget -O installer.sh https://cyberpanel.net/install.sh
  2. Run the installer: sudo bash installer.sh
  3. Follow the prompts:
    • Choose 1 for CyberPanel installation with OpenLiteSpeed.
    • Select 1 to install the full package.
    • Set a default MySQL password or allow the installer to generate one.

If you run into “If you don’t have direct access to root user, please run sudo su – command (do NOT miss the – at end or it will fail) and then run installation command again.“, do this…

First, issue the sudo su - command (be sure to include the dash)

Second, issue the following command: bash /home/ubuntu/installer.sh

Step 4: Configure OpenLiteSpeed

Once the installation is complete:

  1. Access OpenLiteSpeed’s WebAdmin console:
    • Open your browser and navigate to: http://your-ec2-public-ip:7080
    • Default credentials:
      • Username: admin
      • Password: Use the password displayed at the end of the installation process.
  2. Secure the WebAdmin panel:
    • Go to Listeners > Admin Listener > SSL and enable HTTPS.

Step 5: Configure Security Groups

Update your EC2 instance’s security group to allow necessary ports:

  • 22 SSH (optional)
  • 80 HTTP
  • 443 HTTPS
  • 7080 CyberPanel Dashboard
  • 8090 Web Admin Panel

Step 6: Access CyberPanel

  1. Open your browser and go to: https://your-ec2-public-ip:8090
  2. Log in with the following credentials:
    • Username: admin
    • Password: (same as your MySQL password or one displayed during installation)

Step 7: Optional Post-Installation Steps

  1. Enable HTTPS: Use CyberPanel to install Let’s Encrypt SSL for your websites.
  2. Configure DNS: Point your domain to your EC2 instance by setting up DNS records.
  3. Create Websites: Use CyberPanel to create and manage websites, databases, and email accounts.

Troubleshooting Tips

  • If you cannot access the web interfaces, ensure the security group rules allow traffic on required ports.
  • Check service statuses:bashCopy codesudo systemctl status lscpd sudo systemctl status lsws

You’re all set! CyberPanel with OpenLiteSpeed is now installed on your Ubuntu EC2 instance.

Elementor Logo

Elementor Credentials

Crocoblock logo

Crocoblock Subscription Key