Month: February 2016

Article on deploying PHP applications with minimal downtime

On murze.be an article is published that explains how to perform deployments minimal with downtime. The article uses envoy, a taskrunner of the Laravel framework, but the described mechanism can also be used without.

The steps basically boil down to:

  • Place the code in a folder below the htdocs root
  • Copy configuration and other files if necessary from the previous deployment to this folder
  • Unlink the current document root
  • Create a link from the new deployment folder to the document root

Read https://murze.be/2015/11/zero-downtime-deployments-with-envoy/

Leave a Comment

Free space on /boot path in Linux

When executing apt-get upgrade on my Linux machine I got the error that it could not execute because the /boot folder was full. And indeed, when executing du -h there was only 3% of space left on /boot.

As it turns out, there are old kernels stored in /boot, limiting me from updating. Since I only use the latest one the older versions can be removed.

This link explains in simple steps how to find and remove the older kernel versions.

The summary of the page above is to execute the command below (at your own risk!). First execute the dry-run to check what is removed:

dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | grep -E "(image|headers)" | xargs sudo apt-get --dry-run remove

If everything checks out run:

dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | grep -E "(image|headers)" | xargs sudo apt-get -y purge

Leave a Comment