Deploying Symfony

I want to start this week with a thank you to everyone who has given me feedback on the new site. I’m really happy that so many of you have found the time to send me an email or a tweet, it really does mean a great deal to me.

There are more changes forthcoming. I wanted the initial launch to be largely visually identical to the old site. From here on out I can more easily change and update both large and small parts of the site.

I’m being emailed quite a lot regarding the new Deployment series, launched this week. Mostly the questions are: “will you be covering X”

The answer is largely yes, I can cover deployment scenario X, but only if you tell me about it 🙂 I have my own ways of deploying, and those will be the ways I cover. If there’s a specific way you’d like to see – and crucially, I am capable of deploying that way – then I am happy to include it.

With that said, my best advice with deployments is: keep it simple.

There’s a bunch of tools out there already that by-and-large solve the deployment headache. We will be covering some of them in this series.


Video Update

This week saw four new videos added to the site.

#1 – Symfony LAMP (Linux, Apache, PHP, MySQL) Setup

We’re looking into deploying Symfony applications. We could go with Apache (think: the LAMP stack), or nginx (LEMP).

In this first video we cover how to quickly set up a LAMP stack for Symfony deployments.

Please note this is the bare minimum for a LAMP stack, not a production optimised environment. We are only using this for practicing deployments. We will get onto a more robust LAMP stack setup later in this series.

#2 – Symfony LEMP (Linux, nginx, PHP, MySQL) Setup

Three parts of this LEMP stack tutorial are identical to the LAMP stack tutorial above. I’ll leave it up to you to figure out which three 🙂

LEMP is a bit of a weird name – the E stands for way we pronounce nginx – Engine X.

Again this is a bare minimum for a LEMP stack, not a production optimised environment. We are only using this for practicing deployments. We will get onto a more robust LEMP stack setup later in this series.

#3 – Apache or nginx – You Gotta Get Your Permissions Sorted

Whether you have decided to go with Apache or nginx, you will need to get your permissions sorted out, or you’re going to have a bad time.

This will come back to visit us at various points in this series, and is one of those things its best to ingrain into your memory. I’m not saying you need to memorise the commands, just be aware of this and return to it as and when you encounter permissions problems.

#4 – Symfony 3.x Demo Deploy Project

With Symfony 4 rapidly approaching I was a little cautious about running a series on deploying Symfony apps – as everything is about to change.

That said, it’s unlikely that the change from Symfony 2 and Symfony 3 apps to Symfony 4 will happen over night. Plenty of 2 and 3 projects will persist for a good long while, in my opinion.

With that in mind, for the moment we are only covering deploying a Symfony 2.x and 3.x project, which both have the same directory structure. We will look at Symfony 4 deployments later in this series.

As a heads up, Symfony 4 drops on 30th November.

The project we are using as our demonstration is based on the official Symfony demo project. The reason for this is that it comes with a working app that involves the database, and has login already setup and good to go. This makes it a perfect example of a working Symfony website that might need deployment.

Ok, that’s all from me this week.

Have a great weekend, and happy coding.



Published by

Code Review

CodeReviewVideos is a video training site helping software developers learn Symfony faster and easier.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.