Guidelines to Install VPS Digital Ocean
As you can see, since last week, I did not publish new post because I have moved to Digital Ocean after a trial month. In the last few years I’ve used a lot of hosting providers. If you aren’t aware, I’ve been with HostGator for years, but after the last few months, I’ve been noticing their VPS services were slow. As my previous hosting contract was coming to an end and my friend has recommended Digital Ocean, I decided to take a look and was instantly surprised. DigitalOcean was just what I was looking for. Until now I’ve never actually found any that have been able to satisfy my needs at the right price. In this post, I’m going to let you guys know why I switched and why Digital Ocean is my host of choice right now.
What’s about Digital Ocean
Basically, what Digital Ocean provides, is a VPS (Virtual Private Server), they offers cloud servers with SSD storage. They are pretty new, much like a younger brother to major VPS providers like Linode etc. Digital Ocean is more of a DIY host, where you need to decide what OS you want, configure SSH access, build a firewall, install the various languages you need, and so forth.
What makes Digital Ocean different? That’s why I moved to Digital Ocean
A Brief Note on Cost Differences
Where in the world today can you get a SSD storage machine on a Tier-1 Network with 1 TB Data transfer pre-packaged for $5? Its only at Digital Ocean. Can you believe that?? Me neither!! I don’t know how they can afford to do it like that, but they just got a customer for life! Every other provider with comparable solutions, charge you at least 6-8 times as much, AND in most cases you get either a slower machine, or a sandboxed solution, basically not being true VPS. But Digital Ocean does, now I’m using Digital Ocean.
Tranfer all my website in just 30 minutes
I’m a Linux user since 2007, that’s why I can create a droplet, install Ubuntu, install LAMP stack with Vanish then complete tranfer all my website from Hostgator to Digital Ocean in 30 minutes. Don’t worry, you can do like that with a ton of Digital Ocean articles which help new user can manage their VPS.
When it comes to my servers and development projects, I’m a control freak. If I think making a tweak might improve performance, I want to be able to try it. For example, once I had the site setup on DigitalOcean, I quickly installed the awesome mod_pagespeed module by Google into Apache and began testing and tweaking to further improve my response time. Now, my website’s Pagespeech score is 93 instead 71 when I was hosted on HostGator.
Another thing that makes them a worth try is the ease at which you can do backups. They call it Snapshots and a snapshot is an image of the system at the point a snapshot is generated. Simple shutdown the droplet, click Take snapshot and you are done. But the problem is that you have to take the VPS down to be able to take snapshots.
Service Support
Digital Ocean’ Support has been terrific. So far, I had absolutely no problems with them. Even when I encounter a problem, I open up a support ticket and a reply comes in about 6 – 8 minutes. I’m running my website on Digital Ocean for a month without technical issues, but I’m satisfying with their support sevice.
Guidelines to setup a perfect VPS
As you see, I use WordPress as my website. So I will building a VPS with Ubuntu, Apache, PHP, MySQL (LAMP), I’m not use Nginx because Nginx is not appropriate server for for WordPress.
I created a new droplet with the lowest plan, and kicked it to Ubuntu 12.04 x64. Digital Ocean emails you the root password for the machine after it’s kicked (doesn’t take long at all), and then you’re on your way. I started by installing Apache, MySQL, and PHP one at a time using apt-get.
To make it dead simple you can choose WordPress on Ubuntu 12.10 under Create > Select Image > Applications
Server Control Panel: CPanel or ZPanel?
Not like another hosting providers, they give you use CPanel as webhost control panel for free. If you want to using it, you must pay $200 annually, that’s why I choosed ZPanel as alternative webhost control panel. It’s free and powerful but had some limitations.
At this time, ZPanel only officially supported Ubuntu 12.04 LTS, CentOS 6.4 and Windows. If you want to install it on another Linux distro or OS, you must do it by yourself.
ZPanel not support Nginx, Varnish as well.
It hasn’t officially automatic scripts installer.
…
Install ZPanel is very easy. Just follow Digital Ocean’s article How To Install and Configure ZPanel on an Ubuntu 12.04 VPS on their Help & Community section. Because ZPanel setup phpMyAdmin, FPT Account, Autobackup, VHOST, securing PHP with Suhosin … you will get a high quality as fast-food VPS ready to deploy your website.
I followed some good tutorials provided by Digital Ocean:
How to Set Up a Host Name with DigitalOcean
How To Install and Configure Varnish with Apache on Ubuntu 12.04
How To Set Up Mod_Rewrite
How to Get Started With mod_pagespeed with Apache on an Ubuntu and Debian Cloud Server
How To Configure Logging And Log Rotation In Apache On An Ubuntu VPS
Server Optimization articles
Security articles
Many configurations right? But I configured exactly as I want and I don’t depend wait for any staff support to install or configure a new feature in my host.
Common VPS issues and tips
MySQL Problems!
I read about this problem first, so I can setup VPS running without it by simple tricks. The Digital Ocean images have no swap space allocated by default. That’s cause of MySQL problem when your VPS run out memory. Luckily this seemed to be a common question for Digital Ocean. They have a step by step by step guide for setting it up on Ubuntu 12.04.
Setting up Your VPS Firewall
Digital Ocean doesn’t provide firewalling as a service. A good way to manage firewall setup on Ubuntu is to use Uncomplicated Firewall that configures iptables for you. he server will allow port 22, 80, and 443 access from anywhere, while limiting connections to 22 in an attempt at least somewhat mitigate the roving machinery that will at some point try to brute-force an SSH login:
# apt-get install ufw
# ufw enable
# ufw logging low
# ufw limit 22/tcp
# ufw allow 80/tcp
# ufw allow 443/tcp
Digital Ocean gives you console access to running boxes via their website. This bypasses firewall restrictions on the box – i.e. you can change the rule set above to allow SSH access from your IP address only:
# ufw delete limit 22/tcp
ufw allow from aaa.bbb.ccc.ddd to any port 22
Backup your website on the cloud
Digital Ocean give you backup feature as a piggybacking service as 20% of your hosting plan. If you want create a VPS snapshot image, you need power of it then wait for image creating process finish before turn on your website. Because I’m running Ubuntu, why am I not use Dropbox to backup complete website to cloud in real time? I found the way to run, config, setup Dropbox via command line by use dropbox.py. Just read about it on Using the Official Dropbox Command Line Interface.
Remember don’t sync all your Dropbox data to server by use exclude command. Encrypt all other data to prevent piracy eyes.
Your data are very important. Don’t lose yourself or trust about their service, do it by yourself.
Take a look with Digital Ocean
Unfortunately, Digital Ocean not offer trial plan. You need pay before use their service.
Digital Ocean Plan
As NARGA’s reader, I give you a promo code that $10 free credit with Digital Ocean (enough for around 2 months service) sign up with the link below to reveal the Digital Ocean Voucher Code for 2014.
Conclusion
DigitalOcean offers an extremely fast cloud technology allowing its users to manage their infrastructure in a more efficient manner. With its flexible API, high-performance SSD storage and the capability to choose the closest data center location, DigitalOcean has successfully made its name in the market in no time. Needless to say I am very satisfied with the result.
Source: http://www.narga.net/why-moved-digitalocean-guidelines-setup-perfect-vps/
Related posts:
VPS DigitalOcean Review Pros & Cons
DigitalOcean Review 2014
DigitalOcean Promo Code 2013
DigitalOcean promo code May, 2014