WordPress with LiteSpeed Cache (Powered OpenLiteSpeed) Setup on AWS EC2

1. What is OpenLiteSpeed?

OpenLiteSpeed is the open source edition of Lite Speed web server. This is available free of cost for personal and professional uses. You can also use OpenLiteSpeed Enterprises version of LiteSpeed web server which is paid.

OpenLiteSpeed server is basically optimized and enhanced version of apache2 which provide:

  1. Event-Driven Architecture
  2. Understands Apache Rewrite Rules
  3. Friendly Admin Interfaces
  4. Built for Speed and Security
  5. Intelligent Cache Acceleration
  6. PageSpeed Optimization
  7. PHP LiteSpeed SAPI
  8. One-Click Installation
  9. WordPress Acceleration

OpenLiteSpeed server improve your website performance and provide faster speed. It also support HTTP/ 3, Gzip Compression, Brotli Compression for static files.

For More Details Go To – http://openlitespeed.org/

2. What is AWS EC2 (Amazon Elastic Compute Cloud)?

AWS EC2 is a web service that provides secure, resizable cloud computing and designed to make web scalable for developers. AWS EC2 provide complete control of your resources.

Features: –

  1. Innovative and Secured
  2. As Per Need and Choice
  3. High Performance Storage
  4. Enhanced Networking
  5. Memory Optimized
  6. Accelerated Computing

For More Details: http://aws.amazon.com/ec2/

3. Create AWS EC2 For WordPress


  1. AWS Account having Console Access

Here we are going to explain you, how we can create an aws ec2 instance with OpenLiteSpeed Server.

Step 1:

Login into AWS Console and go to Services -> EC2.

Step 2:

Click on “Launch Instance” button to create new instance.

Step 3:

Follow Below Steps

  1. Choose AMI
  2. Choose Instance Type
  3. Configure Instance
  4. Add Storage
  5. Add Tags
  6. Configure Security Group
  7. Review and Launch

1. Choose AMI:

AMI is a prebuild template contains software configuration. Like in our case Ubuntu and OpenLiteSpeed Server.

AMI Selection: AWS Marketplace -> Application Development -> Select Ubuntu in Operating System

Select “WordPress with LiteSpeed Cache (Powered OpenLiteSpeed)” from listed items as above attached screen grab and continue.

2. Choose Instance Type:

Choose instance type based on your website traffic and uses. In simple words instance type is computer configuration like RAM, CPU Core etc…

AWS provide a wide range of prebuild instances configuration.

Like – T2, T3

In Some Cases AWS provide t2.micro for free of uses for a year or 750 hours in a month.

Click on “Next: Configure Instance Details”:

3. Configure Instance

Here you can modify few settings of your instance (For Now just check “Protect against accidental termination”).

Click on “Next: Add Storage”:

4. Add Storage (EBS Volume)

Add Storage for your ec2 instance based on you requirement, for free tier eligible customer t2.micro AWS provide up to 30GB storage for free.

Click on “Next: Add Tags”

5. Add Tags

Tags are used for organize your resources, and cost allocation tags to track your AWS costs on a detailed level. Tags are case Sensitive Key-Value Pair.

For Example:

Key – Name

Value – XpertzMate

Note : During tag addition you need to create it will provide you “tagname.pem” file which is used for SSH login in into ec2 server.

Click on “Next: Configure Security Group”

6. Configure Security Group:

Security group manage inbound and outbound traffic of ec2 instance for OpenLiteSpeed server we need below (In attached Screen Grab) ports in security rules.

7. Review and Launch

Finally Review your instance details and if everything is fine for you then launch instance which create a brand new AWS EC2 Instance contains OpenLiteSpeed web server with WordPress.

List of created instance:

Go to Services -> EC2 Here you can find all created instances with their details.

References :

  1. http://aws.amazon.com/ec2/
  2. http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Instances.html
  3. http://aws.amazon.com/marketplace
  4. http://openlitespeed.org/


  1. I do not even know the way I stopped up right here, however I thought this publish was once good. Lyndsey Kahaleel Punke

  2. Hello. This article was extremely remarkable, especially since I was searching for thoughts on this issue last Tuesday. Marjory Ephrayim Heise

  3. There is perceptibly a bundle to know about this. I suppose you made some nice points in features also. Lorry Roddie Menzies

  4. What a information of un-ambiguity and preserveness of valuable knowledge concerning unpredicted emotions. Ethelin Hamid Holzman

  5. I am not a person that is quickly pleased, however today, I am. You have actually offered me with a great deal to take into consideration in relation to this topic. I appreciated your viewpoint and how very closely it matches my own. I just wished to say, Thank you for writing this.

  6. I take pleasure in, cause I found exactly what I was having a look for. Ava Ruddie Garibald

Comments are closed.