Symfony Deployment

In this series we are going to cover a variety of ways to deploy Symfony applications to the web. The aim here is to cover common Symfony deploy approaches, from beginner-friendly to more real world scenarios.

Before proceeding it should be stated up front that deploying Symfony to production is harder than with other PHP projects. If you have experience with WordPress and their famous 5 minute install then by comparison deploying Symfony is going to be a few notches up on that difficulty scale.

There are a variety of tools and software projects available to help you with Symfony deployment. To begin with we are going to do this "by hand". We will switch to using tools to deploy Symfony once we have a grasp on the basics.

Deploying Symfony is best done to a "dedicated" server. I do not mean a physical server, simply one that is only going to run your Symfony application. Trying to deploy your Symfony site onto a box with a bunch of existing sites already up and running will add to the confusion.

With this in mind we will use Digital Ocean Droplets for our Symfony deployment exercises. You can switch this out for Linode, or Amazon AWS, or whatever. You can even use a local virtual machine, if you are being particularly frugal.

We won't need a large instance - we're going to deploy our Symfony stack to the $10 plan using Ubuntu 16.04.3 x64. This will be more than enough for a basic Symfony deploy with no expected traffic. Use your judgment for your own needs, of course.

Ok, let's get our Symfony deployment underway!


# Title Duration
1 Symfony LAMP (Linux, Apache, PHP, MySQL) Setup 06:58
2 Symfony LEMP (Linux, nginx, PHP, MySQL) Setup 07:15
3 Apache or nginx - You Gotta Get Your Permissions Sorted 02:46
4 Symfony 3.x Demo Deploy Project 02:45
5 Part 1/3 - Deploying with rsync 08:09
6 Part 2/3 - Deploying with rsync - Using builds 07:38
7 Part 3/3 - Deploying with rsync - Shared var 05:02
8 Part 1/3 - Deploying with git 09:42
9 Part 2/3 - Deploying with git - Sharing folders 05:24
10 Part 3/3 - Deploying with git - Adding builds 05:45
11 Symfony 4 LAMP (Linux, Apache, PHP, MySQL) Setup 07:40
12 Symfony 4 LEMP (Linux, nginx, PHP, MySQL) Setup 08:53
13 Getting Comfortable with Symfony 4 Environment Variables 13:56
14 Part 1/2 - Deploying Symfony 4 with rsync 08:23
15 Part 2/2 - Deploying Symfony 4 with rsync 08:24

Presented By

Christopher Moss

Christopher Moss

Hi, I'm Chris and welcome to In this video you will learn about... :)