We often get asked “How do you do it, your website seems so fast”. Well obviosuly being in the business, we have learnt a lot of tricks over the years and we also have quite a lot at our disposal to make sure vpsnine.com loads quickly! This is something that our customers can also do and indeed should be doing. Site speed is so important from a usability point of even and it is even a factor in Google SEO rankings. Some of it requires some knowledge of PHP , Linux or other System Administration skills, but I am going to list some of the points here
- Host your server or VPS in the best location for your audience.
If your audience is in Singapore then clearly a Singapore server makes sense. However many companies these days aim at a global audience, just like we do. So we locate our main servers in Europe as the EU has great ping times to most parts of the world.
- Get a server or VPS with 1Gbps speeds , SSD and a reliable network. These all make a difference collectively. While shared hosting is ok for a small site, it is not going to give you the performance and speed you need as your site grows.
- Use Cpanel. It may seem counter productive as cPanel does add quite a bit if overhead, but it really is the best way to ensure you have a stable and secure hosting environment. cPanel auto applies all the latest security patches and configuration changes for you and you can be sure it works!
- Use mod_pagespeed – this is really great at speeding up lots of little things in your html that overall can make your site load faster. It does require a bit of fine tuning of filters and other options.
- Use a php accelerator like xCache with you can easily enable in cPanel
- Use memcached for php session information and to cache certain content that you get from your database. This is usually very site specific and make require some php knowledge to get it going.
- Tune mysqld – there are often small tweaks that can be made to improve performance.
- Check different Apache/php loading methods. Fast Cgi is often the fastest, but for security and other reasons you may need to use suphp.
- Do not do dns lookups anywhere, either in Apache configuration or your scripts. It does slow down your website and you generally do not need to process that in real-time.
- Use Cloudflare – with their network of well over 30 edge locations world wide, if you have a global audience, there is not better way to get enhanced security and speed all in one go. Essentially someone will connect to a location very close to them and Cloudflare’s magic will accelerate the data served to that client.
- Monitor it. Use a service like Pingdom or Host-Tracker to alert you if your site goes down or response time is too high. The best way to do this is to configure the service to look for a keyword that comes from your database. There are cases when your site looks like its up, but the content is in fact not loading due to a coding error or database issue, so this ensures you know about issues.
There are naturally other factors to the magic sauce and some trade secrets that we will keep under our white hats for now.
Of course we at VPSNine are here to help you if you need to benefit from any of the above. Depending on the plan you have with us we will be able to assist, contact our sales team to find out more.