Web Server Articles

How to hide Nginx server headers on Ubuntu

Nginx is a fantastic web server choice, but it tends to be a bit too mouthy by default for my taste. By mouthy, I mean that out of the box, Nginx gives up a bit too much information about itself, the operating system it’s running on, and if you’re running […]

Symlinks with Nginx and PHP-FPM

Recently I’ve been putting time into rebuilding the server infrastructure for Holiday API. This has included hardening the system to be more fault tolerant and building out a new cluster of web servers. The biggest improvement was [finally] introducing a continuous deployment pipeline to complement the existing continuous integration flow. […]

How to install the latest nginx on Debian and Ubuntu

It’s been a minute since I’ve built out a new server, specifically a web server. As I ventured down the path of installing the latest version of nginx recently, I found the official documentation to be a touch lacking. The steps were clear enough, but the installation guide didn’t mention […]

Decouple your code from your web server

I used to be quite adamant about running nearly the same exact software stack locally as I did on my servers. Running Linux made it easy to pull this off and being able to do the same on OS X was a contingency for switching. I have never been a […]

How to Setup a LEMP Stack on Ubuntu 14.04 LTS

Last week I covered setting up a LAMP server on Ubuntu 14.04 LTS but for my money, it’s all about LEMP stacks. The “E” actually stands for Nginx (pronouced Engine X) and it’s an altnerative to the Apache web server that is built for speed and has a very low […]

How to Setup a LAMP Stack on Ubuntu 14.04 LTS

The newest long term support release of Ubuntu (Trusty Tahr) is finally here! I just spun up a droplet over on DigitalOcean to walk through setting up a LAMP stack for this post. I also recommend making sure that your system is completely up to date. At the time of […]

How to set up a LAMP server on Ubuntu 13.10

Been a while since I’ve covered setting up a brand new LAMP server. This time, I’m going to be using Ubuntu 13.10 and once you are logged into your server you will want to update and upgrade it to the latest software versions: sudo apt-get update && apt-get upgrade Once […]

How to Setup a LEMP Stack on Ubuntu 12.04 LTS

Don’t get me wrong, there’s nothing wrong with a good ol’ LAMP stack (Linux, Apache, MySQL and PHP) but in my experience, Apache doesn’t necessarily scale all that well with PHP. It’s really not Apache’s fault, the fact is that most of the time servers are configured to use the […]

How to Setup a LAMP Stack on Ubuntu 12.04 LTS

It seemed fitting that the first post on PHP Avenue should be about setting up a new server with PHP. This particular post will focus on a traditional LAMP stack (Linux, Apache, MySQL, PHP) on Ubuntu 12.04 LTS. I also intend on writing additional posts covering the setup of a […]

Getting real IP addresses using NodeBalancer and Nginx

This one’s pretty simple, but it’s not documented by Linode and most of the sites I found on Google were people ranting about a lack of documentation but failing to provide their solution. The situation is this, I’m running sites behind a Linode NodeBalancer and I want the user’s real […]

PCI Compliance doesn't like the Desktop Services Store

The Desktop Services Store (DS_Store) as you probably already know, is a file that stores some metadata about the files in a directory in the OS X. I’ve taken a look at them, they seem pretty harmless, but in the realm of PCI Compliance they are a medium risk because […]

PCI Compliance and the importance of a 404 page

As you may remember from a previous post, I typically rewrite my error traffic back to / instead of having a fancy 404 page. The logic behind this is that I’d rather get my users to a page that’s functional instead of presenting them with an error page, also I’ve […]

Why you shouldn’t redirect HTTP errors back to / or how I learned to always include a favicon.ico file

I have this nasty habit of being completely dismissive of HTTP error handling by not handling 404 errors and setting the ErrorDocument in my .htaccess file to point to / (e.g. ErrorDocument 404 /). For the most part, this has never been an issue shy of needing to explain why […]