A tutorial that will guide you about how to enable CloudFlare with Railgun for your website.
Cloudflare is a CDN that allows to enhance your website performance, speed and latency with the help of their distributed network across the globe!
Cloudflare offers a premium feature called as Railgun which helps improving the website load times, especially for dynamic websites such as WordPress devloped websites, Drupal, Joomla etc.
Railgun ensures that the connection between your origin server and the Cloudflare network is as fast as possible. It is a premium plugin from Cloudflare which is available as a paid feature. However, we at WebHostUK, being an exclusive Cloudflare partner, offer Railgun for free for websites hosted on our server.
Below tutorial will explain you how to enable Cloudflare with Railgun on our servers.
Once your order is processed and your account is enabled, you will gain cpanel access to your account, where Cloudflare tool is available under “Software” section as visible in below screenshot:
Click on Cloudflare and it will then redirect you to Cloudflare setup wizard
You can use any of your existing Cloudflare account or create a new one. If you already have an account with Cloudflare, then please make sure that the domain (for which you are intending to add Railgun) is not existing in your Cloudflare account. If it is so, kindly delete it from your Cloudflare.com portal login.
To integrate Cloudflare, you have two options:
i. Partial setup also known as CNAME setup of website with Cloudflare : In this setup, your domain will use our nameservers and the CNAME of “www” prefix of your domain will be resolving to Cloudflare alias domain name.
Pro’s of CNAME Cloudflare setup : DNS zones are configured on our server which means, you do not need to do any manual DNS changes for your domain or its MX records or subdomains. These DNS records are automatically configured in DNS zones on our servers.
Con’s of CNAME Cloudflare setup : Since only “www” prefix is configured with Cloudflare alias hostname, Cloudflare with Railgun for the respective website will only work if domain is accessed with www prefix. If the website is not accessed with www prefix, Railgun will not work. So you will have to force redirect your website to its www prefix using rules in .htaccess
ii. CloudFlare DNS Managed setup or full setup : In Cloudflare DNS managed setup, your domain will use Cloudflare nameservers which means all host records including “A”, “MX”, “NS”, “SPF”, “DKIM” etc are all hosted on Cloudflare servers. Cloudflare will control DNS for your domain and we no longer have any DNS control for your websites or its subdomains.
Pro’s of Cloudflare DNS managed setup: Cloudflare with Railgun will work for domain with or without “www” prefix. This eliminates the need of any such redirect of website from non-www url to www url
Con’s of Cloudflare DNS managed setup: Since Cloudflare will manage your DNS, you will need to manually add MX, SPF or DKIM records in Cloudflare DNS portal. Whenever you create any subdomain, its entry will also need to be manually added in Cloudflare DNS portal.
Once you have enabled Cloudflare for your domain using any of “cname or cloudflare dns managed setup” as explained above, you will now need to request for enabling Railgun for your domain. In order to request enabling “Railgun” for your domain, you will need to submit a request at : https://www.webhostuk.co.uk/railgun-request.php
Your submitted request will raise a support ticket under your account, and our 24/7 support team will then enable Railgun for your requested domain and update you via your support ticket.
How to check if Cloudflare with Railgun is working for your website?
1. Adding cloudflare for your domains which will protect your domains from Unwanted Traffic/Attack/Bot Access
2. Add robots.txt to understand Search engines to crawl your sites.There are lot of Crawl bots which will give unwanted traffic to your websites which will also cause Overloading on servers like (EP hits)
So create an robots.txt file under your public_html and place the below code :
If you want to add any other search engines to crawl your site you can add it in the above code
Follow the Above steps for all your domains which is an recommended thing !
For WordPress Users kindly change the File permission of 2 files under your WordPress root wp-cron.php and xmlrpc.php to Permission 000
You can change it from your cPanel > Filemanager As these 2 files will cause overloading on servers by giving unwanted traffic
Add Heart Beat Plugin to control the admin-ajax.php Once installed WP Admin > Settings > Heartbeat Control > Disable the heartbeat for All 3 Options and click save
Add loginizer which will protect your sites from WP Login attacks (These attacks on most common your websites will be facing daily) So its best way to change your WP Admin portal URL (VERY RECOMMENDED)
Keep your WP Core,Plugins,Themes Up to date
Remove any Un-used themes or plugins
Don’t use Jetpack Plugin as it will Eat the Resource
Number of visitors on website – An Entry Process should not be confused with the number of visitors you can have on your website as it takes just fractions of a second to complete.
For Eg. if we have restrict 25 entry processes that doesn’t mean that only 25 people can visit your website at a time. It’s because there is very rare possibility of 25 people browsing your website at the same fraction of a second.
When a visitor browses any web page of your website, the web server would start serving the request. While this request is being served, it will use one entry process.
Once this request has been served, the web server would no longer use an entry process and the entry process count would get decreased by 1.
Please note that cron jobs, shell scripts and other commands also use entry process for the duration of the time they are running.
Why such restrictions – Entry process limitations to ensure that no single user consumes all server resources and to prevent DDoS attacks against the web server.
Entry process will limit the number of concurrent connections to web server, thus preventing our server against malicious traffic.
When you use all allotted entry processes (25), new visitors would experience a 508 error.
This tutorial takes us to the basics of installing WordPress in a web host. There are literally 10+ methods by which you can install a deployable WordPress site. Factors such as your operating system, intended usage (local or live) and hosting environment lead to several ways of installing WordPress.
Softaculous is an application installer that automates setting up various management systems.
In this case, it will install WordPress and its database after just a few pieces of information from yourself.
It’s a quick and easy way to set up a website without having to learn a single line of code.
1. Login to cPanel.
2. From cPanel, scroll to the Softaculous Apps Installer and click WordPress.
3. Install WordPress, from the Softaculous script window, click the Install Now button in the description. The Softaculous software will usually have the most recent version of WordPress available.
In the next screen, you will need to input all of your website’s settings. Let me break them down a bit for you:
Software Setup In this section, you’ll choose whether your site uses SSL protocols or not. This is done by selecting which “http:” version you want to use from the drop down options. You’ll also pick your domain. If you only have one domain name, it will be displayed automatically. Otherwise, you’ll have to select it from the list.
Site Settings This is the basic information of your website. You’ll put in your site’s name and a short description. This will be used by most themes as well as the WordPress system for identification purposes. It will also play a part in search engine optimization, so make sure the information is something you want seen in sites like Google.
Admin Account Input the admin username and password you want to use to log into WordPress. I suggest never using the name “admin” as the administrator username. It’s the first thing bots and hackers will try when attempting to access your website. Make it something completely unique to you.
Admin Email Address This address is only used by WordPress itself and is not available publicly. Plugins you install may also use this address to send you messages or updates. It can also be used for password recovery should you forget or lose your login credentials.
Choose Language This is set as English by default. However, you have the option of using many different language types for WordPress. Choose one that is ideal for you and your website.
Select Plugins Softaculous often comes with a couple of Plugins readily available should you choose. GreenGeeks displays “Loginizer” and “WPForms Lite.” These two plugins are very helpful for those who want to protect the login screen and create forms such as what you would use for contact information. Click the check boxes to activate or deactivate these optional plugins.
Advanced Options Advanced options are for those who have a firm grasp of databases, upgrades and backup control. You can customize these elements if you wish, but I would suggest new users to leave these settings.
Select Theme WordPress comes with a few themes readily available. These files dictate how your website appears. In Softaculous, you can choose from a wide variety of layouts. Simply click the one you want to install with WordPress and Softaculous will do the rest. Please note that you can change themes at any time and as often as you like.
Under the install button, you can enter your email address. You will get an email when the install is complete.
Softaculous will then analyze your information and settings while installing the WordPress.
And a few seconds later – bam! You have a fully functional WordPress installation.
Bookmark this URL so you can find it easier at a later date.
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).
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:
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.
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:
It is greatly valuable and gives full benefits as per or even more than it costs.
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.
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.
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.
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
Its summer time and the most exclusive and hottest web hosting deal for this summer is out there..
Get a chance to win Apple iPhone 6s and play Pokémon GO on your favourite phone to catch them all!
Signup with any of our web hosting plans as available on https://www.webhostuk.co.uk and get a chance to win a brand new Apple iPhone 6s, and play your favourite Pokémon GO to catch all of them. Additionally blast your summer with guaranteed 10% discount on any of our web hosting plans that you choose to signup.
* Enter coupon code “PokeMonGo” to get 10% exclusive discount and a chance to win brand new Apple iPhone 6s (16 GB), and proceed with payment.
* Once your order is processed, you will qualify for Apple iPhone 6s lucky draw which will be organized on Saturday of every week at 11:00 am GMT
* This is a limited offer and valid till 31st of August 2016.
Terms & Conditions:
* Only the orders which are placed from 21st of July 2016 to 31st of August 2016 and which use the coupon code “PokeMonGo” are eligible for iPhone 6s lucky draw.
* All customers who order any web hosting plan and make the payment for that order during the period mentioned above, automatically take part in the competition, provided they are at least 18 years of age as on 21st July 2016.
* One lucky winner chosen using a random lucky draw on Saturday of every week, will win a brand new Apple iPhone 6s 16 Gb.
* We will be contacting the lucky winner and the winner will have to claim his free iPhone 6s within one week. Failing to do so, will void his claim on free iPhone 6s he has won.
* The contact information provided during the order should be accurate as it will be used to contact the winner. Personal data shall not be disclosed to third parties under any circumstances.
* The lucky draw is to be held on Saturday of every week at 11:00 am GMT. The person who has won Apple iPhone 6s using above offer, will not be eligible for any other free Apple iPhone 6s to be offered in lucky draw afterwards.
* Cash payments as well as transfer of prizes to third parties is not possible.
* The colour of Apple iPhone 6s mobile handset may vary, depending on the availability of stock.
* WebhostUK Ltd reserves the right to discontinue or terminate the offer at any time without prior notice and without stating reasons. This particularly applies if proper implementation cannot be guaranteed due to technical or legal reasons. In such cases, participants are not entitled to make any claims whatsoever.
* WebhostUK Ltd further reserves the right to disqualify participant from the competition. This particularly applies in the event of violation of the Promotion Terms and Conditions or if participants make use of manipulation or any other unfair means of help.
* WebhostUK Ltd can also retrospectively disqualify participants, revoke prizes and reclaim them.