DRE
Well-known member
Who here uses Knownhost and if you do would you share how your server was configured and optimized for Xenforo? I'm moving to KnownHost and it will officially be my first Managed VPS. I have mostly used Shared Hosting in the past but today I bought their SSD-2 plan because it has the 2GB RAM I need to keep my site running smoothly. I used @Azhria Lilu Affliliate link. She once helped me move from shared hosting to VPS in the past whenever I had issues so my site has actually been hosted under KnownHost before. My site went down while I was being hosted by her though and they could not figure out why. You would think 'Uh then why would you go with KnownHost again?' This is my answer and drastic solution to my database issues but I need more RAM to do it. I currently have 780mb of RAM in shared hosting by @Slavik He says my site was using too much RAM and that I needed at least 2GB or RAM. Even so, I really, really wanted to get KnownHost's $35 a month managed SSD VPS Hosting with cPanel plan because it looked like a steal of a deal. It comes with 1024MB Guaranteed RAM, 15GB RAID10 SSD Storage, 2000GB Bandwidth, unlimited domains, full root access, 24/7 / 365 support with free backups, 1-click installers...
Besides my database issue I think some of the reasons for needing more resources is that my site has been getting aggressively indexed by Baidu search engine spiders. I have 480 members, 180,000 messages site with an average of 10 people online at a time and around 180 guests, most of which are those annoying Chinese bots. I have told my issue to several prospective hosts and out of all the hosts I asked, I liked the answer by Mathew from KnownHost the best: http://forums.knownhost.com/threads/blocking-traffic-from-china.2552/#post-14264
Because he was very detailed and seemed knowledgeable in his answer I decided to take the plunge. I went with the 2GB RAM option not just because of Slavik's suggestion but also because it's recommended for @LuckyRiver free upcoming Poker addon for Xenforo that he mentioned in my Casino Addon Request thread.
Although 2GB of RAM may help solve some of my issues as well as doing all those anti-bot steps Mathew outlined I also want something extra to speed up my site. I looked at G-WAN, learned that it's possibly snake-oil then looked at HHVM but @Mike Edge told me it's too buggy. I even talked to Facebook HpHp and they said they haven't tried it on any paid forum software solutions yet so there really isn't any known paid forum software running on HHVM. That left me with almost choosing Knownhost's $12 Litespeed option. I've done a lot of googling and learned that Litespeed outperforms nginx in a lot of different setups. Only negative is that it isn't free (although OpenLiteSpeed is). Here's a comparison: http://nocfusion.com/web-server-selection-apache-litespeed-lighttpd-or-nginx/
So instead of buying Litespeed I've decided to ask Knownhost to configure my server with Nginx as a Front End Proxy for Apache since Nginx is free. Already created a thread about it. I was going to do this myself through DigitalOcean unmanaged VPS since they had a nice $20 package. After much advice and especially after @Parminder Singh Chahal advice in that Nginx thread I decided to just get managed VPS. Knownhost is twice as much than the plan I could've went with at Digital Ocean but at least it's 25% less than the 'semi-dedicated' plan I had before at MDDHosting.
Besides my database issue I think some of the reasons for needing more resources is that my site has been getting aggressively indexed by Baidu search engine spiders. I have 480 members, 180,000 messages site with an average of 10 people online at a time and around 180 guests, most of which are those annoying Chinese bots. I have told my issue to several prospective hosts and out of all the hosts I asked, I liked the answer by Mathew from KnownHost the best: http://forums.knownhost.com/threads/blocking-traffic-from-china.2552/#post-14264
KH-Mathew said:Hi Dre,
Support can install Nginx as a reverse proxy to Apache for you. While Litespeed is definitely a powerful and fast web server I have seen very good results from nginx. Before throwing software at it make sure that your site is optimized though. This includes using expires headers to force caching. Even if you have to set the expires time very low due to the site being very dynamic and images changing a fairly low expires time can save you some bandwidth if customers are reloading pages, changing to pages that require a full page load but reuse headers/footers etc. Minify all css and Javascript and use a CDN for jQuery when possible. Make sure that if you are displaying an image at 120x120px via css that the actual image size is not 2000x2000. I have seen a site that loaded a 15M index page that was reduced to ~1M after properly resizing images. This will help with bandwidth as well as page loads. We use the the Nginx Admin plugin for cPanel from http://nginxcp.com/.
For regulating bot traffic you can use robots.txt. Any legitimate search engine bots should adhere to this . You can also use mod_security to filter traffic based on many attributes. You can check the referrer and user agent using modsec and block based on this. Referrer and User Agent are not extremely reliable since the client can spoof these but it does offer some mode of protection from the weakest attacks. More in depth use of the modsec regex engine will allow blocks based on matches to sketchy request URI's. Config Server has a modsec plugin for cPanel here http://www.configserver.com/cp/cmc.html . Config Server's plugin ties in with their firewall too so that multiple modsec infractions will trigger a perm block by the firewall. It does take some in depth knowledge of how request URI's are used to exploit scripts and the use of regular expressions to fully leverage the power of modsec, but the base definitions lists are pretty powerful. Just be prepared to need some tweaking to keep from blocking legitimate traffic such as google bot.
As for the coupon codes, email sales@knownhost.com to find out more about that. I know there are some coupons that apply to VPS and Dedicated servers but not SSD.
Because he was very detailed and seemed knowledgeable in his answer I decided to take the plunge. I went with the 2GB RAM option not just because of Slavik's suggestion but also because it's recommended for @LuckyRiver free upcoming Poker addon for Xenforo that he mentioned in my Casino Addon Request thread.
Yes!
Screenshot of latest blowfish authentication and forum avatar test on XF 1.2 final release :
But keep in mind, you will need at least 1gb, recommended is 2gb. I've have only tested the game on Ubuntu 11.04 64bits and Centos 5. Windows platform should work since development is done on Windows.
Although 2GB of RAM may help solve some of my issues as well as doing all those anti-bot steps Mathew outlined I also want something extra to speed up my site. I looked at G-WAN, learned that it's possibly snake-oil then looked at HHVM but @Mike Edge told me it's too buggy. I even talked to Facebook HpHp and they said they haven't tried it on any paid forum software solutions yet so there really isn't any known paid forum software running on HHVM. That left me with almost choosing Knownhost's $12 Litespeed option. I've done a lot of googling and learned that Litespeed outperforms nginx in a lot of different setups. Only negative is that it isn't free (although OpenLiteSpeed is). Here's a comparison: http://nocfusion.com/web-server-selection-apache-litespeed-lighttpd-or-nginx/
So instead of buying Litespeed I've decided to ask Knownhost to configure my server with Nginx as a Front End Proxy for Apache since Nginx is free. Already created a thread about it. I was going to do this myself through DigitalOcean unmanaged VPS since they had a nice $20 package. After much advice and especially after @Parminder Singh Chahal advice in that Nginx thread I decided to just get managed VPS. Knownhost is twice as much than the plan I could've went with at Digital Ocean but at least it's 25% less than the 'semi-dedicated' plan I had before at MDDHosting.