How to fix php 7.2 503 Service Unavailable Litespeed Error

Thanks to EA4 (EasyApache 4), WHM cPanel now allows multiple php versions to be installed simultaneously. Here is a peculiar example of getting php 7.2 enabled on a cpanel server with LiteSpeed and grsec kernel enabled on server.

Assumption: Here we are assuming a scenario where we have WHM cPanel server installed on Centos 6 and configured with ASL (Atomic Secured Linux) available from

When ASL is enabled, server will be booted into ASL kernel powered by grsecurity modules and rules.

The procedure to enable php 7.2 from WHM would be to login to WHM -> EasyApache 4 -> Customize – PHP versions -> Enable 7.2

Once PHP 7.2 is enabled on server, you will need to enable in Litespeed. To do so, login to Litespeed web interface by visiting your server url with port 7080

Once logged in login to Configuration -> Server -> External App -> Add

Then you will need to add Script Handler so click on Script Handler -> Add. Make sure to configure handler type as “LiteSpeed SAPI” and handler name as “[Server Level]: lsphp72”

Save and restart LiteSpeed web server. Now when you configure php 7.2 for a particular account from WHM -> MultiPHP Manager and access the website in browser, you will notice error “503 Service Unavailable, Please try again later”

On debugging you will notice logs in /usr/local/apache/logs/error_logs as follows:

connection to [/tmp/lshttpd/APVH_xxxxxxx_Suphp72.sock.825] on request #0, confirmed, 1, associated process: 14544, running: 1, error: Connection reset by peer!
2018-01-26 09:45:21.065 [NOTICE] [xxxxxxx:59282] No request delivery notification has been received from LSAPI process group [14544], possible run away process.
2018-01-26 09:45:21.066 [NOTICE] [xxxxxxxx:59282] Retry with new process group.
2018-01-26 09:45:21.066 [NOTICE] Graceful stop process group lead by pid: 14544
2018-01-26 09:45:21.067 [INFO] [APVH_xxxxxxx_Suphp72:] PID: 23289, add child process pid: 14593, procinfo: 0x4e5e970
2018-01-26 09:45:21.155 [INFO] [xxxxxxxx:59282] connection to [/tmp/lshttpd/APVH_xxxxxx_Suphp72.sock.413] on request #0, confirmed, 1, associated process: 14593, running: 1, error: Connection reset by peer!
2018-01-26 09:45:21.155 [NOTICE] [xxxxxxx:59282] Max retries has been reached, 503!
2018-01-26 09:45:21.155 [NOTICE] [xxxxxxx:59282] oops! 503 Service Unavailable
2018-01-26 09:45:21.155 [NOTICE] [xxxxxxx:59282] Content len: 0, Request line: ‘GET /~xxxxxxxx/ HTTP/1.1’
2018-01-26 09:45:21.155 [NOTICE] [xxxxxxx:59282] Redirect: #1, URL: /index.php
2018-01-26 09:45:21.155 [INFO] [xxxxxxx:59282] abort request…, code: 4
2018-01-26 09:45:21.155 [INFO] [xxxxx:59282] File not found [/home/xxxxx/public_html/503.shtml]

Further tailing /var/log/messages, you will notice errors similar to:

Jan 26 11:05:19 xxxxxxx kernel: [1331781.378288] PAX: terminating task: /opt/cpanel/ea-php72/root/usr/bin/lsphp(lsphp):25821, uid/euid: 591/591, PC: 0000036c959c2010, SP: 000003d92b1a9c28
Jan 26 11:05:19 xxxxxxx kernel: [1331781.381445] PAX: bytes at PC: 53 41 57 41 56 41 55 55 48 8b df 48 83 ec 50 48 8b 43 10 48
Jan 26 11:05:19 xxxxxxx kernel: [1331781.383039] PAX: bytes at SP-8: 0000036c92aa5460 00000000004c3253 000003d92b1a9cc0 00000000040b3d70 0000000004187f20 0000036c92a01900 0000036c92a01900 0000036c92a01909 000003d92b1a9cc0 0000000000000004 0000000000000000
Jan 26 11:05:19 xxxxxxx kernel: [1331781.386756] grsec: From xxxxxxx: denied resource overstep by requesting 64 for RLIMIT_CORE against limit 0 for /opt/cpanel/ea-php72/root/usr/bin/lsphp[lsphp:25821] uid/euid:591/591 gid/egid:589/589, parent /opt/cpanel/ea-php72/root/usr/bin/lsphp[lsphp:25820] uid/euid:591/591 gid/egid:589/589
Jan 26 11:05:19 xxxxxxx PAM-hulk[25770]: Brute force detection active: 580 LOGIN DENIED — EXCESSIVE FAILURES — IP TEMP BANNED
Jan 26 11:05:19 xxxxxxx kernel: [1331781.391657] grsec: From xxxxxxx: denied resource overstep by requesting 120 for RLIMIT_CORE against limit 0 for /opt/cpanel/ea-php72/root/usr/bin/lsphp[lsphp:25821] uid/euid:591/591 gid/egid:589/589, parent /opt/cpanel/ea-php72/root/usr/bin/lsphp[lsphp:25820] uid/euid:591/591 gid/egid:589/589
Jan 26 11:05:19 xxxxxxx kernel: [1331781.396551] grsec: From xxxxxxx: denied resource overstep by requesting 176 for RLIMIT_CORE against limit 0 for /opt/cpanel/ea-php72/root/usr/bin/lsphp[lsphp:25821] uid/euid:591/591 gid/egid:589/589, parent /opt/cpanel/ea-php72/root/usr/bin/lsphp[lsphp:25820] uid/euid:591/591 gid/egid:589/589
Jan 26 11:05:19 xxxxxxx kernel: [1331781.401450] grsec: From xxxxxxx: denied resource overstep by requesting 232 for RLIMIT_CORE against limit 0 for /opt/cpanel/ea-php72/root/usr/bin/lsphp[lsphp:25821] uid/euid:591/591 gid/egid:589/589, parent /opt/cpanel/ea-php72/root/usr/bin/lsphp[lsphp:25820] uid/euid:591/591 gid/egid:589/589
Jan 26 11:05:19 xxxxxxx kernel: [1331781.406601] grsec: From xxxxxxx: bruteforce prevention initiated for the next 30 minutes or until service restarted, stalling each fork 30 seconds. Please investigate the crash report for /opt/cpanel/ea-php72/root/usr/bin/lsphp[lsphp:25821] uid/euid:591/591 gid/egid:589/589, parent /opt/cpanel/ea-php72/root/usr/bin/lsphp[lsphp:25820] uid/euid:591/591 gid/egid:589/589


The error is likely due to the fact that the grsec kernel which is installed on server from ASL, is assuming php 7.2 as insecure and hence, restricting it. This means that PHP is trying to violate the kernels memory protection features.  Unfortunately, PHP 7 needs to operate in this insecure manner.  To allow PHP to operate this way, follow the steps below:

The solution here is to configure the system to allow php to run insecurely. This can be achieved by :

  • Stopping Litespeed webserver on the server using command:

cd /usr/local/lsws/bin

./lswsctrl stop

  • Then give the command:

paxctl -m /opt/cpanel/ea-php72/root/usr/bin/lsphp

  • If you receive error similar to “file /opt/cpanel/ea-php72/root/usr/bin/lsphp does not have a PT_PAX_FLAGS program header, try conversion” then try following solution

paxctl -c /opt/cpanel/ea-php72/root/usr/bin/lsphp

  • and finally restart Litespeed webserver using command:

./lswsctrl restart

Accessing your website now configured with php 7.2 version on a cPanel server with Litespeed and ASL (Automic Secure Linuc) or grsec kernel should now work sucessfully.



Christmas & New Year 2018 100% Money Back Web hosting Offer & IPhone X to win :

Xmas & New Year Offer
Xmas & New Year Offer

Webhost.UK.Net has always got some really exciting offers and gift for Christmas & New Year. Guess what we got this year.. First time in Web hosting history get 100% MoneyBack + plus a chance to win amazing prizes as our gift for Christmas 2017 & New Year 2018.
End of year Christmas and New year 2018 is giving you the best chance to start your Online Business, purchase any of our Web hosting plan from Shared Hosting, Reseller Hosting, Cloud VPS Hosting , Managed dedicated Servers, WordPress Hosting, Ecommerce Hosting etc..
and get first time in Web hosting history 100% Money Back,plus a chance to Win iPhone X, Galaxy S8, Google Pixel 2, PlayStation4, Xbox ,Laptop or iPad Air to our lucky winners.

Here are the Discounts available on Different Web hosting Categories Buy any of the Package Below and get 100% MoneyBack :

Coupon Code : “100%MONEYBACK”

1) Linux Shared Hosting & Windows Shared Hosting
2) Linux Reseller Hosting & Windows Reseller Hosting
3) Ecommerce Shared Hosting
4) Linux VPS Hosting & Windows VPS hosting
5) Linux Dedicated Servers & Windows Dedicated Servers
6) Cloud VPS hosting

lucky winners will be chosen through RANDOM.ORG who can choose any gadget from iPhone X, Galaxy S8, Google Pixel 2, PlayStation4, Xbox ,Laptop or iPad Air. We also have First and Second Runner up price that gets free Shared, Reseller or VPS hosting free for life! This offer is valid till January 15th 2016 and the winner will be announced on January 21nd 2017 on our blog, forum, Facebook and Twitter.

Terms and Conditions of the Offer (TOS):

1) Customer placing new order is only eligible for the lucky draw.
2) Customer should be UK or US Resident to be eligible for the lucky draw.
3) Customer should place order using Coupon code to be eligible for the lucky draw.
4) Credit Amount is non Refundable
5) 100% Credit amount received by customers as per the offer Clients can only use 25% Off the amount each time they review there service or upgrade it. So they can use credit amount 4 times during renewal or upgrade of package.
6) Credit amount cannot be used for Domain renewal/Registration, SSL, IP and other addon services ( this amount can strictly be used for web hosting service renewal only)

Note : Credit Amount will be added manually to the accounts by our billing team after order verification.

Shared Hosting starting from just £14.99 per year – Order Now
Reseller Hosting starting from just £9.99 per month – Order Now E-commerce Hosting starting from just £99.99 per year – Order Now
VPS Hosting starting from just £39.00 per month – Order Now
Cloud Hosting starting from just £25.99 per month – Order Now
Dedicated Server starting from just £94.00 per month – Order Now


Features available with WebHostUK Hosting Plans:

  • 24x7x365 days instant support through live chat and helpdesk.
  • Free Data Transfer
  •  Free RVSkin for WHM/Cpanel
  • Softaculous integrated with Cpanel
  • Free Attracta SEO Tools integrated with cPanel
  • Free WHMCS Billing software (On Selected Reseller Plans)
  • Free Dedicated IPs (On E-commerce, VPS, Dedicated Servers & Selected Reseller Plans)
  • Free Enom Reseller account (Reseller Plans)
  • Free SSL Certificate (On E-commerce and Selected Reseller Plans)
  • Private Nameservers
  • Price-Freeze
  • 99.9% Uptime Guarantee
  • No Contracts
  • 30 Day Money-Back Guarantee (Applicable on Shared hosting and Reseller Hosting)

The Christmas & New Year Offer is valid till January 15th 2018 only! So why wait? Order now, get huge discounts and win a chance to get exotic gadget of your choice! Merry Christmas & A Happy New Year!

If you need any help our want to know more about our offer feel free to email us at or contact our Live Chat support , we are available 24x7x365 days to assist you.





How to auto delete old emails for cPanel User


If your mailbox that is always going over-quota or filling up with mail like your default account or your spam box and you don’t want to have to keep logging in and deleting the emails manually below you can find the steps how to auto delete the emails.

  1. Log on to your cPanel Interface.
  2. Go to ”Advanced‘ section.
  3. Click on “Cron Jobs“.
  4. Select the specific time from the lists provided.
  5. You should enter the command to run in the “Command” field.
Note: You should make sure to enter the proper command and the full path to the file.

Check the relevant screen captures:

To do this enter the following information in the following fields:

Minute: 45
Hour: 06
Day: *
Month: *
Weekday: *

Command: /usr/bin/archivemail –quiet –delete –days 10 /home/{USER}/mail/inbox

Make sure you replace {USER} with your actual cPanel username.

Hit the Commit Changes button and wait until sometime after 6:45 AM (assuming you set it up to run at that time) and login to your default email account to see if your emails have been deleted

If everything looks good your default inbox will now have any emails that are older than 10 days automatically deleted

To login into your default email account you use your cpanel username and password

If you wanted to have all the emails deleted that are older than three days you would simply change the –days option to 3

If you wanted to have all emails inside your mail directory including sent mail, spam, etc. that are older than 30 days deleted…
/usr/bin/archivemail –quiet –delete –days 30 /home/{USER}/mail/*

If you had an email account named info @ and wanted to have all the emails in that inbox that are older than seven days deleted…
/usr/bin/archivemail –quiet –delete –days 7 /home/{USER}/mail/{}/info/inbox

If you had an email account named info @ and wanted to have all the emails in your sent-mail folder that are older than twenty-one days deleted…
/usr/bin/archivemail –quiet –delete –days 21 /home/{USER}/mail/{}/info/sent-mail

Don’t forget to change {} to your actual domain name !

You can look in your mail directory via your ftp client or the online file manager to see where your mailboxes are located.

NOTE: We *CANNOT* recover mail deleted in this manner, so please use this tutorial at your own risk


POP and IMAP email settings for Outlook

To add your email account to Outlook, Outlook on the web,, or the Mail and Calendar apps for Windows 10, you’ll need several pieces of information including the type of account, the incoming and outgoing server names, and the SSL and port settings.

Your email provider can give you these settings, but we’ve provided the settings for the most popular email providers below.

Below you will find POP and IMAP server settings

You can find your server settings below. If your provider isn’t listed, visit your email provider’s website and contact their technical support.


You have to enable IMAP or POP access at before you can add your account to any other applications.

  1. IMAP incoming server:
  2. IMAP port:    993 
  3. IMAP SSL:    Yes
  4. SMTP outgoing server:
  5. SMTP port:    587
  6. SMTP SSL or TLS:    TLS
  7. POP incoming server:
  8. POP port:    995
  9. POP SSL:    Yes

If you’d like us to add your email provider, please leave us a comment below with the name of your provider. We can’t add every provider, but we will try to add popular ones on a regular basis.

  1. IMAP incoming server:
  2. IMAP port:    993
  3. IMAP encryption (SSL/TLS):    TLS

  4. SMTP outgoing server:
  5. SMTP port:    587
  6. SMTP encryption:    STARTTLS
  7. POP incoming server:
  8. POP port:    995
  9. POP encryption (SSL/TLS):    TLS

If you’d like us to add your email provider, please leave us a comment below with the name of your provider. We can’t add every provider, but we will try to add popular ones on a regular basis.


  1. IMAP incoming server:
  2. IMAP port:    993
  3. IMAP SSL:    Yes
  4. SMTP outgoing server:
  5. SMTP port:    465 or 587
  6. SMTP SSL or TLS:    SSL
  7. POP incoming server:
  8. POP port:    995
  9. POP SSL:    Yes

If you’d like us to add your email provider, please leave us a comment below with the name of your provider. We can’t add every provider, but we will try to add popular ones on a regular basis.


Godaddy Cloud Hosting closed ? Need Godaddy Alternative .. VS Godaddy
Godaddy Alternative

From last couple of days we are having inquires about our Cloud VPS hosting, looking for Godaddy Alternative . After checking out we came to know that Godaddy Cloud hosting is closing,  godaddy has recently emailed their customers about the closer of  Cloud web hosting service. As per the emailed received by a customer who have migrated to us below is the statement by Godaddy:

We’re discontinuing GoDaddy Cloud Servers.

Please retrieve or back up your content before December 31, 2017.After this date, your GoDaddy Cloud Server account will no longer be supported and your
servers will not be accessible. Here’s everything you need to know to get prepared:
• Bitnami apps and images won’t be supported after 2017/11/15.
• All other images and servers won’t be supported after 2017/12/31.
• Prior to these dates, you’ll still be able to build new servers, test,
clone and destroy servers.
• Your billing cycle and billing rate won’t change.


Customers who are looking for Godaddy Alternative , WebhostUK LTD welcomes you to check our Plans at :  Cloud VPS Hosting

To add to your Happiness use Coupon code WHUK10 to get 10% OFF.

We offer FREE Migration and true 24x7x365 days Support.


FREE WildCard SSL Certificate ?

FREE wildcard SSL
FREE wildcard SSL

Yes your read it right, soon your wait for FREE Wildcard SSL is going to be reality ? You will ask me who is offering FREE Wildcard SSL , its again the good guys from Let’s Encrypt.

Recently I came across there blog post which says they are planing the launch of WildCard SSL by Jan 2018 , and the best part is they are planing to offer is FREE of Cost.

We at WebhostUK LTD are already offering Let’s Encrypt SSL on all our servers, we are already a Let’s Encrypt recommended webhost and really excited about the new launch.

Let’s Encrypt says :

Let’s Encrypt is currently securing 47 million domains via our fully automated DV certificate issuance and management API. This has contributed heavily to the Web going from 40% to 58% encrypted page loads since Let’s Encrypt’s service became available in December 2015. If you’re excited about wildcard availability and our mission to get to a 100% encrypted Web, we ask that you contribute to our summer fundraising campaign.”

Wildcard certificates will be offered free of charge via our upcoming ACME v2 API endpoint. We will initially only support base domain validation via DNS for wildcard certificates, but may explore additional validation options over time. We encourage people to ask any questions they might have about wildcard certificate support on our community forums.”

Reference  :


Excellent Web hosting Service Award by HostAdvice

WebHost.UK.Net - Excellent Service Award from HostAdvice
WebHost.UK.Net – Excellent Service Award from HostAdvice

Yet again Webhost.UK.Net has proved that its one of the best Web hosting place to host your website incase you are looking for best support and service for your online business, to prove that we have got “Excellent Web hosting Award 2017 🙂 “.This time we signed up with HostAdvice one of the renowned name in Web hosting Review industry, they are well known for true user reviews for web hosting companies. We got around 11 positive reviews in just few months. Looking at our ALL Positive feedback from our existing web hosting customers HostAdvice tried to test the authentication of reviews we have received by testing our company support. Below are the comments HostAdvice Team

WebHost.UK.Net have received 11 positive user reviews and as a part of our quality checks we have decided to send a hidden customer to you and check if you guys are really providing decent services, like the user reviews say.

I am happy to tell you that you’ve passed all of our tests with great
success and have been awarded with our “Badge of Excellence” award.”

We would like to thank the efforts taken by HostAdvice team to validate reviews and test the Web Hosting company individually. Its a pride moment for us to be award as “Excellent Webhosting Award 2017 ” by HostAdvice. We would like to thank the whole Team of HostAdvice.

How to Speed Up Magento Site Performance

Speed up Magento
Speed up Magento

Magento is one of the most widely used eCommerce platforms today that people to choose to grown their online business. In this post, we will discuss tips on how to speed up Magento performance to ensure you don’t lose any sales due to high abandonment rate or an unsatisfying user experience.

Magento’s intuitive administration interface features powerful marketing tools, a catalog-management engine and is SEO optimized to give merchants the power to create sites that provide an unrivaled and rich online shopping experience for their customers, tailored to their unique business needs.

When it comes to choosing an eCommerce CMS, you could go with WooCommerce which is an extension of WordPress, Shopify, Volusion, and a number of other ones.

Lot of businesses choose Magento is because it is a very robust platform with a high level of functionality and customizability, it is highly scalable, meaning there would be no need to change to a different platform later on as you scale up.

Enable Magento caching

This is of course the first step in optimization: Enable all the available caches in the Magento Admin Panel. When all other settings are in place and the site is ready to go live, navigate to System → Cache Management. Select everything and then under the drop-down select Enable and click Submit.

Latest Version

It is very important that you are always running the latest version of Magento as updates generally contain bug fixes and performance improvements. There are three main steps when it comes to upgrading a Magento installation.

1. Install a fresh version the Magento file tree
2. Run the installer from the file tree on top of the outdated database
3. Move over themes and custom extensions from the old version to the current version.

Magento upgrade is a little more work as compare WooCommerce or Shopify upgrade, but Customer Paradigm has a good in-depth tutorial on how to fully upgrade Magento.

Content Delivery Network

Implementing a CDN with Magento is one of the easiest ways to instantly see decreased load times, By doing  this you can ensure you are serving your product images, javascript, CSS from multiple locations around the globe so they are delivered faster to your clients.

Magento and Magento 2 CDN Integration with KeyCDN is very simple. Both can be setup with HTTP and HTTPS configurations.

Setting Up a Flat Catalog

You probably know that Magento uses EAV database structure for categories, products. In some cases this solution is not the best or fastest. Enabling the flat catalog for categories and products merges product data into one table, thereby improving performance by responding to MySQL queries faster.

On the Admin menu, select System → Configuration. Then in the panel on the left under Catalog, select Catalog

Under Frontend change Use Flat Catalog Category and Use Flat Catalog Product to Yes.

When complete, click the Save Config button.

Clear the cache. The recommended way to do this is to delete everything from the /var/cache directory. You can also do it by navigating to System → Cache Management and clicking on Flush Cache Storage which is equivalent to deleting all the cache.

Optimize Images

Very few stores are optimizing images which is quite important considering that images change on every page load. Optimizing your product images can dramatically increase the speed of your pages as this decreases their download times.

You can compress them before uploading them using a tool like PhotoShop or there are a number of extensions you can use to auto-optimize them.


GTMetrix also has a Magento extension called GTspeed. It includes image optimization as well as CSS/JS concatenation and minification. Take a look at the difference on a stock Magento install. After installing the plugin, take a look at the difference on a stock Magento install:

How to Optimize and Speed Up WordPress Websites

Speedup wordpress
Speedup wordpress

How to speed up WordPress surely is a hot topic these days. Slow page load speeds are especially crippling for eCommerce sites. Almost 90 per cent of shoppers who are dissatisfied with a site’s performance are less likely to buy from the same site again, while a one second delay decreases customer satisfaction.

Why should you speed up WordPress?

There are many reasons that ring alarm bells, some of which might even cause major concerns for you:

Search engines (like Google) rank websites with fast-loading times higher than the slow-loading ones. So, if you want to improve your position in the SERPs, improving speed should be one of your priorities.

Studies have shown that site-loading speed of more than 2 seconds usually results in about 47 percent of visitors bouncing off the website. So, to keep about half of your visitors interested, you should speed up your WordPress.

Online buyers are the most impatient lot; they expect the page to load within a second. So, if you are running an ecommerce store on WordPress then you better get ready to make major improvements so your business can be more profitable.

Test the loading time of your website?

First things first, you need to analyze the current load time for your website. Keep in mind that this speed may differ from page to page, as it depends on various factors, namely:

  • the size of that particular page
  • how many requests it generates
  • whether it is cached or not
  • and lastly, what kind of content (static or dynamic) it hosts.


The homepage of a website is usually used as a benchmark to test the load time. In order to check the speed of a website, the following three tools are used extensively across the web:

  • PageSpeed Insights (this doesn’t really report the page loading time, but does highlight the elements that you can tweak to speed up WordPress)
Use a Fast WordPress Theme

You need to start with a fast and well-coded WordPress theme or framework. If you choose a theme packed with lots of additional features that you don’t need, it’ll negatively impact your site performance.

Design that has been coded badly, or uses images throughout the design, will add unnecessary weight to your page. It is not uncommon for some WordPress themes to be a few megabytes in size. Such a design could add a few seconds to your page loading time.

The default WordPress themes are incredibly well-coded, light-weight, very fast and easily customizable. If you can handle a little bit of code or hire a developer, Choose a design that has been optimized for desktops, tablets and mobile devices. Search engines favor responsive designs as they ensure all pages have the same URL, however adaptive designs that were created specifically for mobile phones can improve a mobile user’s experience considerably (it is not uncommon for an adaptive design to reduce page size by over one megabyte).

Install A Caching Plugin

Second most effective way (the first being choosing a good web host) to improve your site’s load times is to install a caching plugin.

Caching involves storing parts of your site so they only need to be loaded once instead of every time a user visits your site. Caching is especially helpful for your return visitors, as well as others who visit several pages of your site. when a caching plugin is active on your site, it servers users cached copies of your pages.

It greatly reduces MySQL database access, no. of PHP requests, server access for static resources, and even HTTP requests (in case of combining multiple files into one).

As soon as you install a plugin like W3 Total Cache or WP Super Cache, you’ll be able to tell that your site loads faster.

WP Super Cache is a more user-friendly alternative and you don’t need to be a server expert to set it up. It offers a variety of caching features:

  • Page Cache
  • Minify
  • Object Cache
  • Database Cache
  • Browser Cache
  • CDN

Initially, you don’t want everything enabled. You can still safely enable everything except Minify and CDN (unless you want to use a CDN).

Minify breaks some other heavily JS-based plugins unless you specifically tweak it. On the other hand, you should tweak the Browser Cache settings to utilise the full potential of browser caching.

Use a Content Delivery Network (CDN)

Content Delivery Network is essentially a network of geographically dispersed servers. Each CDN node (also called Edge Servers) caches the static content of a site like the images, CSS/JS files and other structural components. The majority of an end-user’s page load time is spent on retrieving this content, and so it makes sense to provide these “building blocks” of a site in as many server nodes as possible, distributed throughout the world.

To minimize the distance between the visitors and your website’s server, a CDN stores a cached version of its content in multiple geographical locations (a.k.a., points of presence, or PoPs). Each PoP contains a number of caching servers responsible for content delivery to visitors within its proximity.

Setting up a CDN can take a few hours, but it’s usually one of the quickest ways to dramatically improve page-loading speed.

Enable Gzip Compression

Compressing files on your local computer can save a lot of disk space. Similarly, for the web, we can use GZIP compression. This maneuver will dramatically reduce the bandwidth usage and the time it takes to gain access to your website. GZIP compresses various files so that whenever a visitor tries to access your website; their browser will first have to unzip the website. This process brings down the bandwidth usage to a considerable extent.

You can use either a plugin like the GZip Ninja Speed Optimization or add the following codes in your .htaccess file.

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

Enable Gzip Compression

Why is Gzip compression important?

  • It increases the loading speed of a website by saving 50-80 percent bandwidth.
  • Thus, it helps to optimize your website.
  • It is widely installed on the web server such as in IIS, Apache and nginx.
  • In Apache, already a default setting in the module mod_deflate is present for Gzip compression.
  • Gzip compression is recommended for different text files such as:
    CSS and Javascript (extension .css and .js), HTML (.html) also all types of dynamic HTML (such as extension .php, .aspx), textfiles (extension .txt), and also Webservices, such as WSDL, REST and JSON.
  • It is greatly valuable and gives full benefits as per or even more than it costs.
Monitor Plugins

Before installing any plugin on website, ask yourself “Is this plugin necessary?”.

Plugins are one of the biggest causes of WordPress websites being slow. The more plugins you install without research, the more likely you will face performance issues; however the sheer number of plugins you have installed is not the reason a WordPress website can slow down.

Certain plugins are known for causing websites to be slow. There are many reasons for this including bad coding, calls to external servers and persistent calls and updating of your WordPress database. Pay close attention to how much CPU plugins use too. Many plugins can bottleneck your CPU due to persistent processes. If this happens, your whole server could go down.

One plugin I highly recommend you use is P3 Profiler. The plugin will show you exactly how much load time your plugins are adding. A breakdown is given which displays exactly how much load each plugin adds. It is the most effective way of seeing what plugins are slowing down your website.

Optimize Database

WordPress software, as you probably know, uses PHP and MySQL. PHP is a programming language that’s used in WordPress to access and display the information stored in a MySQL database.

WordPress database optimization is one of the essential tasks to keeping your WordPress blog speedy & healthy. You can optimize your WordPress MySQL database directly from PHPMyAdmin, or by using a plugin like WP-Optimize or WP-DBManager. These plugins are capable of deleting all your pending spam comments, trashed posts, auto-saved drafts, post revisions to name a few.

They can also perform general MySQL database optimization queries without you having to access PHPMyAdmin. A well optimized, fast responding database is a huge bonus for a database-driven software like WordPress.

 Minify and Combine CSS and Javascript

Every call to your CSS and Javascript files is an HTTP request. That means that when someone visits your web page, their computer sends a request for a file and then the server sends it back. The more requests there are to your server, the longer it will take for your pages to load.

There are a number of WordPress plugins available that will minify your CSS and Javascript files using either WP Minify or Better WordPress Minify.

PHP5 application Minify combines multiple CSS and Javascript files into a single file. Which greatly reduces the number of HTTP requests. Application also removes unnecessary whitespace and comments.

Optimize Images for Speed

Images bring life to your content and help boost engagement. Researchers have found that using colored visuals makes people 80% more likely to read your content

Optimizing images for the web not only makes your site load faster but it also improves its SEO – which, in itself, is a great reason to start optimizing today. Another major plus point is that once your images are optimized, you’ll save a ton of space on your site’s hosting server.

Before you upload a photo directly from your phone or camera, we recommend that you use photo editing software to optimize your images for web. In their original formats, these photos can have huge file sizes. But based on the image file format and the compression you choose in your editing software, you can decrease your image size by up to 5x.

Disable Directory Browsing

By default most web servers like Apache, NGINX and LiteSpeed have directory browsing enabled, it automatically displays an index page showing the contents of the directory.

From a security standpoint you don’t want this happening since you don’t want people to look around your site structure. Hackers can easily find potential exploits in themes and plugins by sniffing through those files.

If you open the following URL and find a bunch of files, then it means that directory browsing is disabled in your server.

URL: (where yourwebsite is the name of your WordPress site).

If the above link contains a list of folders, then this means directory browsing is enabled.

If directory browsing is enabled, it will look something like this:


Select the Right Web Hosting Provider for WordPress

Its one of most important point while look to wordpress website hosting. You need to make sure the Web hosting company specializes in WordPress Hosting , offers good security , Speed/ Performance and one of the best support required for WordPress Web hosting