Categories
DigitalOcean Tutorials

Byobu for Terminal Management on Ubuntu

Note: I originally wrote and published this article as a DigitalOcean Community Tutorial. Introduction Byobu is an easy-to-use wrapper around the tmux (or screen) terminal multiplexer. This means that it makes it easy for you to open multiple windows and run multiple commands within a single terminal connection.

Categories
DigitalOcean Tutorials

How To Use the DigitalOcean API v2 with Ansible

Note: I originally wrote and published this article as a DigitalOcean Community Tutorial. Introduction Ansible 2.0 has recently been released, and with it comes support for version 2 of the DigitalOcean API. This means that you can use Ansible to not only provision your web applications, but also to provision and manage your Droplets automatically.

Categories
DigitalOcean Tutorials

How To Deploy Multiple PHP Applications using Ansible

Note: I originally wrote and published this article as part of the Automating Your PHP Application Deployment Process with Ansible tutorial series for the Digital Ocean Community. Introduction This tutorial is the third in a series about deploying PHP applications using Ansible on Ubuntu 14.04. The first tutorial covers the basic steps for deploying an […]

Categories
DigitalOcean Tutorials

How to Deploy an Advanced PHP Application Using Ansible

Note: I originally wrote and published this article as part of the Automating Your PHP Application Deployment Process with Ansible tutorial series for the Digital Ocean Community. Introduction This tutorial is the second in a series about deploying PHP applications using Ansible on Ubuntu 14.04. The first tutorial covers the basic steps for deploying an […]

Categories
DigitalOcean Tutorials

How to Deploy a Basic PHP Application using Ansible

Note: I originally wrote and published this article as part of the Automating Your PHP Application Deployment Process with Ansible tutorial series for the Digital Ocean Community. Introduction This tutorial covers the process of provisioning a basic PHP application using Ansible. The goal at the end of this tutorial is to have your new web […]

Categories
DigitalOcean Tutorials

How To Configure Apache Using Ansible on Ubuntu

Note: I originally wrote and published this article as a DigitalOcean Community Tutorial. Introduction Apache is one of the most popular web servers currently used on the Internet. It is easy to set up and configure on Linux distributions like Ubuntu and Debian, as it comes in the package repositories and includes a default configuration […]

Categories
Security

Mosh and UFW, without 1000 open ports

Anyone who works with Linux servers will have used SSH. It’s the stable of server management and cannot beat a GUI.The only downside with SSH is when you’re on a slow or intermittent connection, and your SSH connection keeps droppingout or locking up. It’s not fun at all…

Categories
Technical

Generating passwords in Ansible with complex loops

Ansible is a fantastic open source automation tool which you can use to configure systems, deploy software, and perform any number of other tasks automatically across as many, or as little, systems as you need. It’s like Chef or Puppet, only configuration is a piece of cake and installation is only required on the master […]

Categories
Development

Sorting eager loaded records in Laravel's Eloquent.

Eloquent, which is Laravel’s ORM, has some really nice features. One of which is the [Eager Loading][eager]functionality that allows you to request all of the related records in one hit, to avoid having to makemultiple database calls for each iteration of a loop. Let’s look at a simple example which returns the latest 10 blog […]

Categories
Development

Limiting Belongs To Many database queries with Pivot table values in Laravel.

This post was updated on 2014-01-22. The Proposal that I mentioned in the original articlewas approved and then implemented by Taylor Otwell, and has since been released in Laravel 4.1.