Everything I've ever learned about scaling PHP—

I slept infront of my laptop for a year while scaling Twitpic, rolling over to restart Apache at 2am before drifting back to sleep, but when you're a startup- you do what you have to do.

What if your didn't have any single points of failure? Imagine if scaling wasn't frustrating and you could get back to what you do best- shipping code?

I'm going to teach you how to scale PHP

Stop playing sysadmin and get back to coding. You didn't sign up to put out fires and figuring out how to scale MySQL isn't exactly going to ship features any faster. You know that learning the intricaces of my.cnf is a waste of time, but you don't have another choice. In the book, you'll get a crash-course on every important tuning option, why it matters, and a quick formula to figure out the perfect settings for your hardware. Bliss.

Apache is crying itself to sleep everynight

You've heard alot about Nginx and horizontal scaling, and there're thousands of tutorials out there, but the quality ranges from abysmal to "this must be a joke", and when you finally find a good one, it's usually for Rails. I know what it's like to scramble around, reading bad advice on StackOverflow, copy-and-pasting config files from some message board hope that one of them finally works... pulling at your hair, swearing at the screen.

What if it didn't have to be this way? What if there was a single, high-quality resource of information on scaling PHP, on doing things the right way, that actually focused on PHP and not Rails, Node.js or the flavor of the week? Something that taught you scalable architecture and things you might run into when your only user isn't your mom?

Learn the perfect PHP stack, LHNMPRR

Okay, okay- nothing will ever be as catchy as LAMP ;-)

You'll master a new, more scalable stack called LHNMPRR (Linux, HAProxy, Nginx, MySQL, PHP, Redis, & Resque) that can scale just by throwing more hardware at. You'll be able to finally get your setup to be perfect, all while using a battle tested stack that's been proven to handle billions of requests.

Think of it as your Cheat Code for PHP <?php ↑↑↓↓←→←→BA ?>

You'll also see the exact configurations and technologies that were used and proven at massive scale— 22 billion HTTP requests per month, thousands of MySQL queries per second— basically a metric-truck ton of visitors.

Testimonials

I bought the beta version of the book and it was already worth far more than the modest price.

Leon AtkinsonCEO, Winkpass Creations

It's an important book, you'd have to spend alot of time compiling it and testing it and learning what breaks at scale.

Willie JacksonDirector of Web Optimization, W3Edge

It's a damn good read, very useful for my new job. Setting up Nginx to play nice with PHP-FPM now.

About the Author

In the early days of Twitpic, I slept with my laptop so I could wake up and restart Apache when it crashed in the middle of the night. I had no idea what I was doing— the thing about scaling is.. you don't get to learn it until you need it. It's trial by fire.

I'm in the middle of writing "nginx: A Practical Guide to High Performance" for O'Reilly. It'll be out around September, and I'm super excited!

The VC-Funded Package

It's not cheap, but it includes everything, including a 1-on-1 architecture critque by me. Get all of the guides, talks, config templates... basically everything I've ever written about scaling. It's the best material on the planet for scaling a growing startup.

Scaling PHP Book

With all the great content here it might be easy to forget the book. This is the core of the entire product and is insanely valuable. You'll get the 158 page book in PDF, ePub, and Mobi format.

Architecture Critique

Send me the details of your stack and architecture and I'll critique your scalability and single points of failure.

Config Templates

A collection of 80+ of configuration templates from the book to use as a starting point (HAProxy, Nginx, PHP, and MySQL)

Scaling Memcache Handbook

Learn how to tune and tweak Memcache (and Redis) so they don't fall over in production. You'll learn how to tune the number of threads, slab size, and more.

MVC Framework Caching

If you're using a MVC Framework (Laravel, Symphony, CakePHP), you might be missing out on some huge performance gains. Most frameworks do NOT cache internal data. This guide walks you through tacking down a performance problem in an MVC framework.

HTTP & FastCGI Caching w/ Nginx

Learn what to do and (more importantly) what NOT to do when using HTTP Caching, as well as all the knobs you can turn to speed up your webapp with HTTP and FastCGI caching in Nginx.

Benchmarking & Load Testing Your PHP Code

Put the rubber to the road and impress your users by actualling TRACKING how well your webapp is performing. The truth is, most poeple don't know which tools to use or even where to start benchmarking.

"Scaling LAMP doesn't have to suck"

Get a professional recording of a talk I gave about Scaling PHP, Scaling LAMP doesn't have to suck. Includes new topics, like using NSQ for queuing.

How DNS is your Secret Single-Point-of-Failure

Most of us have a secret lurking.. a single-point-of-failure that isn't even on the radar. In this guide, you'll learn how to mitigate against DNS resolution ruining a full night of sleep.

Async APIs & Background Jobs w/ PHP

Learn the best way to implement backgrounding and asynchronous workers in PHP to make your webapp run faster and offload more work the background.

Horizontally Scaling 1 Million File Uploads

What if you had to handle 1 million file uploads in PHP? How would you do it? Where would you start? How would you architect your storage? File processing? This guide teaches you exactly how.

MySQL Hot Backups in Production

Traditional MySQL backups are unforgiving and nearly impossible to do without shuttind down the database. In this guide, I'll teach you how to backup TBs of MySQL data on a live server with open-source tools.

Resizing 100 Images/Sec

Advanced in-depth tuning on getting PHP to process (and resize) hundreds of images per second in PHP. I walk you through a crazy-advanced setup that tweaks the nginx buffer cache, filesystem, and GraphicsMagick to squeeze out every last drop.

The Pro Package

The BEST option for individuals or companies just getting started. Includes all of the best material and most of the guides to help you scale your app in the real world.

Scaling PHP Book

With all the great content here it might be easy to forget the book. This is the core of the entire product and is insanely valuable. You'll get the 158 page book in PDF, ePub, and Mobi format.

Config Templates

A collection of 80+ of configuration templates from the book to use as a starting point (HAProxy, Nginx, PHP, and MySQL)

Scaling Memcache Handbook

Learn how to tune and tweak Memcache (and Redis) so they don't fall over in production. You'll learn how to tune the number of threads, slab size, and more.

MVC Framework Caching

If you're using a MVC Framework (Laravel, Symphony, CakePHP), you might be missing out on some huge performance gains. Most frameworks do NOT cache internal data. This guide walks you through tacking down a performance problem in an MVC framework.

"Scaling LAMP doesn't have to suck"

Get a professional recording of a talk I gave about Scaling PHP, Scaling LAMP doesn't have to suck. Includes new topics, like using NSQ for queuing.

How DNS is your Secret Single-Point-of-Failure

Most of us have a secret lurking.. a single-point-of-failure that isn't even on the radar. In this guide, you'll learn how to mitigate against DNS resolution ruining a full night of sleep.

Async APIs & Background Jobs w/ PHP

Learn the best way to implement backgrounding and asynchronous workers in PHP to make your webapp run faster and offload more work the background.

MySQL Hot Backups in Production

Traditional MySQL backups are unforgiving and nearly impossible to do without shuttind down the database. In this guide, I'll teach you how to backup TBs of MySQL data on a live server with open-source tools.

Resizing 100 Images/Sec

Advanced in-depth tuning on getting PHP to process (and resize) hundreds of images per second in PHP. I walk you through a crazy-advanced setup that tweaks the nginx buffer cache, filesystem, and GraphicsMagick to squeeze out every last drop.

Questions?

Yes, the last page of the book contains links to upgrade to the basic and complete packages.

What format does the book come in?

The book comes in ePub, PDF, and Mobi format. It works great with eReaders like the iPad and Kindle, or read it on your desktop.

What if I hate it?

I've sold over 2,000 copies and only 3 people have asked for a refund. The odds are high that you'll love it, but just in case, you have 60 days to get a full refund.

Is the book ready for PHP 7?

Absolutely. While the book is targeted at all of the modern versions of PHP, it specifically focused for people using PHP 5.6 and 7. It also includes hard-to-find information about the Zend Opcache and APC changes.

Is it suitable for beginners?

Yup, but you should already know PHP and some Linux basics. I try hard to guide you through the server stuff, but you'll need to know how to login to a server with SSH and run apt-get.

Can I still use MySQL?

Duh! I do touch a little bit on NoSQL, but I'm a huge fan of MySQL and show you how to scale it to make it faster and more redundant.

Still not ready to buy?

It's your choice, you can spend 2 years learning this stuff on your own instead. If you're still not convinced, let me send you a free chapter from the book— no obligation.