RSSAmplifier

Blog

Servers for Hackers

Server Admin for Programmers

serversforhackers.comRSS feed ↗30 posts

Latest posts

Kubernetes in Digital Ocean

Running through Kubernetes in Digital Ocean to run a simple web application.

Testing in Containers

See how to run PHP unit tests against different versions of PHP with Docker.

Secure Firewall Setup

We setup firewalls with iptables in Ubuntu 20.04 Focal.

Secure SSH Setup

Configure SSH security on Ubuntu 20.04 Focal.

Secure User Setup

Create a new user and setup SSH access on Ubuntu 20.04 Focal.

5 reasons why we chose serverless for Fathom Analytics

Here's how we left server management behind and now never have to think about servers!

Servers for WordPress: Special Considerations

While a traditional LEMP stack will work for hosting WordPress, it won't perform optimally, and it certainly won't be able to handle any significant amount of traffic. However, with a few special considerations, WordPress can be both snappy and scalable.

Mysqldump with Modern MySQL

Learn how to best use mysqldump in a modern version of MySQL.

Mapping Headers in Nginx

We see how to map Cloudfront's `Cloudfront-Forwarded-Proto` header to `X-Forwarded-Proto`.

LetsEncrypt with HAProxy

We cover using LetsEncrypt to create SSL certificates with a HAProxy load balancer.

Connecting Containers

We get a Laravel application running!

PHP, FPM, and Nginx

We'll install PHP and configure Nginx to send requests to PHP files off to PHP-FPM

Nginx

We'll see how to install Nginx from the official Nginx repository for Ubuntu servers.

PHP App Setup & Permissions

We cover cloning a Laravel application from Github (onto the server), and setting up the server to run Laravel. This includes a tweak to Nginx, using composer, and digging into proper permissions.

SSL Termination

We setup SSL-Termination on the load balancer, and let the load balancer send requests over port 80 to the application servers.

Letsencrypt for Free & Easy SSL Certificates

See how to easy it is to use letsencrypt to create and automatically renew FREE SSL certificates!

The Workflow

We finish building our helper script to finalize our development workflow.

Dev Workflow Intro

We see how to begin creating a development workflow around what we have built so far.

Adding a NodeJS Service

We add a Node container to run build tasks.

Variables in Docker Compose

We see how to use variable within a `docker-compose.yml` file.

The Working Directory

We cover some more about using the `working_dir` option.

Our App Service

We fill out the `app` service within our Docker Compose configuration file.

Compose and Volumes

We go over a mistake I made when using Docker volumes!

Docker Compose Services

We fill out a few services into our `docker-compose.yml` file.

Docker Compose Intro

We see how we can start to use Docker Compose to more easily control our Docker environment.

Docker Volumes

We cover Docker volumes and make sure we have set our `docker-compose.yml` file correctly to use our created volumes.

Docker Networks Intro

We see how we can get containers to talk to each other over a Docker network.

Entrypoint vs Cmd

We see how to use an ENTRYPOINT instead of CMD within a Dockerfile.

Docker Logs

We cover the docker `logs` command.

Configuring PHP-FPM

We need to add some custom PHP configuration, especially so it does not run as a daemon.