Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Browse all series

Servers for Laravel

In this series, we'll learn, from scratch, how to provision servers to run Laravel applications. We'll begin with the core elements for any VPS, and then work our way up to installing and configuring the necessary software to securely run your Laravel applications.

Progress

Series Info

Episodes
12
Run Time
1h 45m
Difficulty
Intermediate
Last Updated
May 19, 2023
Version
Latest

Series Episodes

  1. Episodes (12)
    1. Components of a Virtual Server

      Let's start by exploring the main elements we need in a VPS. We'll discuss and review CPUs, memory, disk storage, software, and networking. Ready?
    2. Provisioning Servers on AWS

      Next up, we will learn how to build a server and configure its networking and firewall. Let's go!
    3. Installing PHP & Nginx

      In this video, together, we'll work through the process of installing PHP, Nginx, and Composer.
    4. Installing the Laravel App

      Moving on, we can now pull our application from GitHub and configure Nginx to serve it.
    5. Isolating Apps

      In this episode, we will learn how to secure any apps running on our server by isolating them into different system users.
    6. Install and Secure MySQL 8

      In this episode, you'll learn how to install and configure MySQL 8 for your Laravel application running on Ubuntu VBS. This tutorial covers the installation of MySQL 8, changing the root user password, and securing the installation through a shell script.
    7. Task Scheduling

      Next, let's explore the cron daemon and how we may use it to schedule Laravel tasks that are triggered on a regular basis.
    8. Installing Redis and Running Workers

      Next up, we will discuss how to install Redis on our VPS and configure Laravel workers through Supervisor.
    9. Configuring Domain Names

      In this episode, we'll discuss how we might configure Nginx to serve our applications to requests targeting different domains.
    10. Installing TLS Certificates with Let's Encrypt

      To allow for secure data transfers for our application, we need to install and configure a TLS certificate. Let's learn how to that in this episode.
    11. Automatic Deployments

      In this episode, we will use GitHub actions to automatically deploy to our VPS when we push to Git.
    12. Configuring OPCache

      OPCache optimizes our PHP scripts for better performance. In this final episode, let's explore it and see how we may enable it on our VPS.

Continue Learning