What You'll Learn

Secure Your Servers

Learn the tools of security to properly secure your servers!

See how to configure security updates, set firewalls and configure user access to prevent intrusion!

Configure Web Servers

Learn how to setup Nginx or Apache to run your PHP, Python or Ruby application.

Learn how to configure Nginx/Apache's processing models to get better performance.

Multi-Server Setup

Learn the considerations made when using a load balancer, and then learn how to use Nginx and HAProxy load balancers.

Learn how to setup MySQL Replication and balance connections between the databases!

The Details

Learn how to set up queues/workers, monitor your apps, properly manage log files and more!

Now Updated for Ubuntu 16.04 LTS,
including case studies and new videos!

"Chris is someone I can trust for advice while maintaining my own server provisioning services. I can heartily recommend this book for all who want to get a head start learning about server configuration and management."

Taylor Otwell's Hotdog

Co-Creator of Laravel and Laravel Forge, ๐ŸŒญ 100% all beef.

Table of Contents

  I. Introduction

  • "Accidental Sysadmin Syndrome"
  • Linux Distributions
  • The Sandbox (Vagrant)

  VIII. Web Cache

  • Nuts and Bolts of HTTP Caching
  • An Origin Server
  • Nginx Web Caching
  • Varnish

  II. Security

  • Users and Access
  • Setting Up the Firewall: Iptables
  • Fail2Ban
  • Automatic Security Updates

  IX. Logs

  • Logrotate
  • Rsyslog

  III. Package Managers

  • Apt

  X. Files, Deployment & Configuration Management

  • Managing Files
  • Auto-deploy with GitHub
  • Configuration Management with Ansible

  IV. Permissions & User Management

  • Permissions
  • User Management

  XI. SSH

  • Logging in
  • SSH Config
  • SSH Tunneling
  • One-Off Commands & Multiple Servers

  V. Webservers

  • HTTP, Web Servers and Web Sites
  • DNS & Hosts File
  • Hosting Web Applications
  • Apache
  • Nginx
  • PHP
  • Server Setup for Multi-Tenancy Apps

  XII. Monitoring Processes

  • A Sample Script
  • System Services (Systemd, Sysv, Upstart)
  • Supervisord
  • Forever
  • Circus

  VI. SSL Certificates

  • SSL Overview
  • Creating Self-Signed Certificates
  • Extra SSL Tricks

  XIII. Development & Servers

  • Serving Static Content

  VII. Multi-Server Environments

  • Implications of Multi-Server Environments
  • Load Balancing with Nginx
  • SSL with Nginx
  • Load Balancing with HAProxy
  • SSL with HAProxy
 

Get a Preview!

Get a feel for the content! Enter your email here and I'll send you a (useful!) preview of the book and let you know of book updates!

Some *super* useful info, yours for free:

  • Allowing a user to run specific sudo commands
  • Setting default file/folder permissions
  • Running Apache with FastCGI (for PHP)
  • Updated! PHP-FPM config for peak performance

Get the sample by email!

I'll send you periodic updates but you won't receive any spam or unrelated messages!

"I'm an experienced programmer but before checking out Servers for Hackers I've always been really intimidated by dev ops and system administration. Chris does an amazing job at explaining this stuff in a way that gave me the confidence to manage my own infrastructure."

Adam Wathan

Author of Refactoring to Collections and Literallyโ„ข the smartest ๐Ÿ‡จ๐Ÿ‡ฆ Canadian ๐Ÿ‡จ๐Ÿ‡ฆ I know.

Packages

Application development is getting more complex, and we developers need to know how to setup and maintain the servers that run our applications. Don't waste your workday fighting configuration. Learn how to administer your servers!


The Complete Package

Get all three packages, including the 300+ page eBook, all production-ready examples (case studies) and all five video series and their bundled extras!

Sale! $120   $99   Buy It!

(available on leanpub)

Group Pricing, from $199 - See Bundles

The
Book

The Book

36+ Chapters, 300+ Page eBook to get you running your servers without sweating the unknown.

Updated for Ubuntu 16.04!

"Production-Ready" Examples

Server Quick Start Guide  Updated!

Get your server secure and production-ready in minutes.

Nginx with both PHP and Static Sites  Updated!

Run Nginx in a real-world way - by hosting multiple sites on our servers.

MySQL Replication & Load Balancing  Updated!

See how easy it is to distribute MySQL queries across a master-relica setup with load balancing!

Now covers GTID based replication!

Hosting Python with uWSGI + Nginx  Updated!

PHP isn't the only game in town - get a feel for hosting a production Python application using Nginx and uWSGI.

Production Queues & Workers  Updated!

See how to use Beanstalkd to setup your own production-ready queue infrastructure.

 

 

 

 

 

 

Multiple
Video Series

Ansible: Start to Production (4 videos)

Understand how simple Ansible is. Then automate everything.

First Few Minutes in a Server
(1 video) New!

What to do on every new server you spin up, get up and running quickly!

Monitoring Processes with Supervisord
(1 video) Updated!

See how to use Supervisord in production, including what to do with your log output.

Production SSL Certificates
(6 videos) Updated!

See the gory details of purchasing, installing, testing SSL certs, including automating LetsEncrypt and getting an A+ implementation score!

Vagrant Up & Running
(4 videos) Updated!

Find out how to use Vagrant, beyond what the Hello World blog articles tell you. Completely re-made! See the latest Vagrant tricks.

๐ŸŽ‰ The Vagrant video series includes the follow extras referenced in the videos:

  • Vagrantfile to get you running ASAP
  • nginx.conf wildcard .dev domain configuration
  • provision.sh to provision your Vagrant VM
  • install_dnsmasq.sh to install DNSMasq on OSx (El Capitan)

It's hard to be a modern developer witout understanding basic dev-ops. Servers for Hackers is the absolute best resource to get started on your dev-ops journey; Chris has long been the person I turn to whenever I get myself lost in Nginx-land or MySQL hell."

Matt Stauffer

Chief Smiling Officer ๐Ÿ˜…at Tighten Co and author of Laravel Up and Running.

The Readers' Choice

Get everything written, including the 300+ page eBook and all production-ready examples (case studies)!

Sale! $70   $59   Buy It!

(available on leanpub)

The
Book

The Book

36+ Chapters, 300+ Page eBook to get you running your servers without sweating the unknown.

Updated for Ubuntu 16.04!

"Production-Ready" Examples

Server Quick Start Guide  Updated!

Get your server secure and production-ready in minutes.

Nginx with both PHP and Static Sites  Updated!

Run Nginx in a real-world way - by hosting multiple sites on our servers.

MySQL Replication & Load Balancing  Updated!

See how easy it is to distribute MySQL queries across a master-relica setup with load balancing!

Now covers GTID based replication!

 

Hosting Python with uWSGI + Nginx  Updated!

PHP isn't the only game in town - get a feel for hosting a production Python application using Nginx and uWSGI.

Production Queues & Workers  Updated!

See how to use Beanstalkd to setup your own production-ready queue infrastructure.

The Core Package

Get the 36 chapter, 300+ page ebook- the core of Servers for Hackers.

Sale! $55   $45   Buy It!

(available on leanpub)

The Book

36+ Chapters, 300+ Page eBook to get you running your servers without sweating the unknown.

Updated for Ubuntu 16.04!

fideloper

I'm Chris Fidao. I publish server videos at the Servers for Hackers video site. I also curate the Servers for Hackers newsletter, which is read by over 12,000 programmers who want to learn about servers.

I'm the author of the Deploy PHP! video series, a video series about automating your deployments. A few years ago, I wrote Implementing Laravel, a book all about coding in Laravel - now offered free!

FAQ

Book Updates? - The release of this book does not mean it's finished. I intend to add chapters, case studies and more videos. Updates to those who've already purchased will be free!

Return Policy? - I am selling the book using Gumroad and Leanpub. No matter where you purchase, I will honor the Leanpub-style 45 day limit on full refunds.

Reporting Issues? - All feedback is hugely appreciated! Any questions, comments, issues, stories of glory and valor and praise can be directed to the Github repository created for feedback!