How to setup SSL certificate and SPDY on ubuntu nginx using «Let’s Encrypt»

You might say «Why do we need to do that at all?» Good question!

  1. All passwords and credit cards data entered by users on your websites can be exposed to a third party so it would be wise to encrypt your connection using ssl certificate.
  2. Nowadays it is good practice to use SPDY (speedy) protocol which is an extension to HTTPS protocol and removes the limit of 6 concurrent connection from one browser that persists in HTTP & HTTPS. With that limit removed all static data like images, scripts and styles is loaded simultaneously (much faster).

Continue reading

How to install vsftpd on ubuntu 14.04 on DigitalOcean droplet

Ok, as for me I don’t like ftp since I’ve discovered ssh. But not all of my customers have discovered ssh and most of them never will. So when I ask my customers to move to DigitalOcean hosting I probably should provide ftp access to their sites.

Continue reading

WordPress asks for ftp credentials. What should I do?

Perhaps if you are reading this article you are facing the situation depicted on the picture above.

Usually I get such credential request from WordPress on the local developer’s machines and on servers that I setup manually using SSH. Don’t really remember if I’ve ever faced it on shared hosting accounts that are accessed via FTP.

Continue reading

How to search and replace php-serialized value inside MySQL database

For the last couple of months two of my customers asked me to clone the sites I made for them. By «clone» I mean that they liked their sites so much that they decided to setup some other sites using the same set of themes and plugins and just change content a bit.

So they asked me to create exact copy of their sites but under different domain names.

Continue reading

How to set up WordPress on Ubuntu 14.04 with Nginx at DigitalOcean

This is a step by step how-to.

This how-to is based on the folowing prerequisites:

  1. You’ve already signed-up at DigitalOcean (if not, grab a link, you’ll get $10 of credit with it).
  2. You’ve already purchased a domain name and it is directed to, ns2…, ns3… (if not, don’t worry, we’ll get to that).
  3. You can access remote server using ssh (windows users will need PuTTY software, for linux users including Mac OSX it’s a built in feature).

Ok, let’s begin. Continue reading