Bobcares

Litespeed

PDF Header PDF Footer

Webhosts are always looking for ways to serve their sites faster. With a little bit of tweaking and testing, you can get amazing results from Apache, the current leader of the pack. But more often, people are looking for ways to improve the performance of their sites without having to get their hands dirty. For those of you running Apache that is installed along with your Control Panel, LiteSpeed is an alternative you should definitely check out.

LiteSpeed Web Server has superior performance in terms of both raw speed and scalability. Our benchmarks demonstrate that it is more than 6 times faster than Apache. When serving static content, LiteSpeed surpasses well-respected content accelerators including thttpd, boa and TUX. When it comes to dynamic content, LiteSpeed is more than 50% faster in PHP content delivery than Apache with mod_php. — LiteSpeedTech.com

LiteSpeed can act as a drop in replacement for Apache. They have worked hard to make it completely Apache interchangeable, so you won’t have to worry about asking your customers to rework their sites. They probably won’t even notice a difference, except of course when their sites start loading faster! If you find that LiteSpeed does not support some of the features Apache does, you could run Apache on another port, just to handle those pages. They have described the work around on this page

LiteSpeed is currently compatible with all of the popular Control Panels available today, including cPanel, Plesk, DirectAdmin etc. So if you are using one of these control panels, you can find the steps to install LiteSpeed on these servers in their Wiki here.

I decided not to take their word for it and tested it on one of our cPanel servers. I followed the steps here. The installation went smooth and I rebuilt the LiteSpeed PHP binary to match the current one on the server. The LiteSpeed WHM plugin allows for easy switching between Apache and LiteSpeed, so I was able to do a bit of benchmarking. I used “ab” to run requests on a simple phpinfo page, and the results were quite apparent:

With Apache:

Concurrency Level:      150
Time taken for tests: 122.802873 seconds
Complete requests: 5000
Failed requests: 0
Write errors: 0
Total transferred: 217621032 bytes
HTML transferred: 216280000 bytes
Requests per second: 40.72 [#/sec] (mean)
Time per request: 3684.086 [ms] (mean)
Time per request: 24.561 [ms] (mean, across all concurrent requests)
Transfer rate: 1730.58 [Kbytes/sec] received

With LiteSpeed:

Concurrency Level:      150
Time taken for tests: 5.439277 seconds
Complete requests: 5000
Failed requests: 0
Write errors: 0
Total transferred: 192875000 bytes
HTML transferred: 192155000 bytes
Requests per second: 919.24 [#/sec] (mean)
Time per request: 163.178 [ms] (mean)
Time per request: 1.088 [ms] (mean, across all concurrent requests)
Transfer rate: 34628.50 [Kbytes/sec] received

I guess the numbers speak for themselves 🙂

The catch of-course, is that LiteSpeed is not free. Well, the Standard(free) Edition does allow a maximum of 5 virtual hosts in the httpd.conf file(yes, it uses the same httpd.conf you use for Apache), but thats way too low. If you have more than 5 sites you will have to purchase an Enterprise Edition license, either on a leased or owned basis. You can find out more about the differences here. So if slow load times are whats bothering your customers the most, LiteSpeed is definitely the solution for you.


About the Author:

Hamish works as a Senior Software Engineer in Bobcares. He joined Bobcares in July 2004, and is an expert in Control panels and Operating systems used in the Web Hosting industry. He is highly passionate about Linux and is a great evangelist of open-source. When he is not on his xbox, he is an avid movie lover and critic.


0 Comments

Get featured on the Bobcares blog and share your expertise with a global tech audience.

WRITE FOR US
server management

Spend time on your business, not on your servers.

TALK TO US

Or click here to learn more.

Speed issues driving customers away?
We’ve got your back!

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF