Automating PHP upgrades with Ansible
summary
Automates the upgrade path by using Ansible playbooks, Remi repos, Jinja templates, handlers and Ansible Vault to install PHP packages, configure php.ini and PHP‑FPM sockets, and run tests. Upgraded 13 apps to PHP 7.2 in two months and redeployed 100+ servers and swapped Apache to Nginx, with average PHP processing time down ~30% and some apps nearly 100% faster. Includes composer and PHPUnit version bumps, rolling updates or blue/green provisioning, and checks to only add healthy hosts to load balancers.
AI-written summary · about
chapters (19)
- 0:00Intro
- 0:32Agenda
- 1:23Current PHP versions
- 5:45Why use PHP 71
- 10:03What is Ansible
- 13:10Infrastructure as Code
- 19:48Automation
- 21:56Managing databases
- 23:16EC2 metadata facts
- 24:45Ansible features
- 26:55PHP programmatically
- 27:49Using environment variables
- 29:42Using handlers
- 30:18Why Nginx
- 31:07Example
- 31:48Future proofing
- 32:16Considerations
- 35:29DevOps plug
- 36:21QA
related talks
29mDeploying PHP applications with Ansible, Ansible Vault and Ansistrano
43mStepping into the future: Migrating & Deploying PHP7
47mMigrating to PHP 7
49mUpgrading Legacy to the Latest PHP Version
58mTesting Complex Applications for PHP7
31mGetting more done in less time
01h 02mRewriting 12-Year-Old Code
49mThe why and the how of moving to 7.x
