Installing Nginx and PHP5-FPM

PHP
This article is a continuation of a previous article that outlined basic server setup of a Linode VPS running Ubuntu 14.04. If you missed it, please read the previous article. This article assumes you have a Linode VPS already setup and running with some common packages already installed so I won’t go into any of that stuff.

So we have a basic server configured now we need to install the most important aspect, the web server itself. I greatly prefer Nginx to Apache because of it’s much lower memory footprint / requirements. In the past I have used spawn-fcgi to run php as fastcgi to serve pages. I’ve since abandoned it for php5-fpm which is much simpler to get running and a lot less manual labor. If you prefer spawn-fcgi you can refer to my old blog at rubynginx.com for that guide.

Read more ›

Posted in Server Admin Tagged with: , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Setting up your linode

Linode
If you are not familiar with Linode, they are a provider of VPS (Virtual Private Servers) which is basically a semi-private version of shared hosting. You generally don’t have to share the box with hundreds of other people and even if you do you are guaranteed a certain share of the resources (CPU / RAM / etc). Not to mention the server hardware itself is extremely beast as far as power. You are in your own little private eco-system meaning you and only you have access to your machine (or slice of a machine rather). You will not experience the same horrible load times and transfer rates that you would get at companies like Go Daddy and Dreamhost (shudder). The only down side is you do not have a CPanel or Plesk panel (though you can install one if you wish, but I do not use them and will not go into that here) so you have to install and manage everything yourself. It’s not as hard as you might think if you can get used to searching Google and reading a lot of tutorials.

Command line can be a tricky beast for beginners, this blog aims to help ease some of that pain by sharing the procedures that I usually take when setting up my web server. Please be advised that with every new version of Linux the steps can vary a bit due to packages being upgraded or removed from the repositories.

This guide focuses on configuring the latest and greatest (at the time of this article) version of Ubuntu on a freshly provisioned Linode server. The exact system specs do not matter that much, you can use the lowest 1G plan if you like, the steps will be the same. I’m using the 2G plan that costs $20 a month. You can check out Linode’s prices and decide for yourself.

Read more ›

Posted in Server Admin Tagged with: , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

New Blog

This is my new programming blog.  My old one can be found at http://rubynginx.com but I have not updated it much lately.

I’ve recently strayed away from Ruby and Python as a whole and focused more on PHP, ExtJS and Mobile. The new blog will reflect more of that content and I will be doing a full refresh of my linode install from scratch with nginx + php,

Posted in Uncategorized