Courses

Deploy Laravel Project to AWS EC2: Step-By-Step

We're getting closer to actually installing our Laravel project. But Laravel is a PHP framework, and guess what - we don't have PHP installed on the server yet. Let's fix this.

  1. Time to review our requirements once again, and determine which Ubuntu packages we need to install:

As per Laravel requirements:

  • BCMath PHP Extension - php8.1-bcmath - provides arbitrary-precision arithmetic
  • Ctype PHP Extension - php8.1-common - checks whether a character or string falls into a certain character class according to the current locale
  • cURL PHP Extension - php8.1-curl - allows you to connect and communicate to many different types of servers with many different types of protocols
  • DOM PHP Extension - php8.1-xml - allows you to operate on XML documents through the DOM API with PHP
  • Fileinfo PHP extension - php8.1-common - functions in this module try to guess the content type and encoding of a file
  • JSON PHP Extension - Always available - implements the JavaScript Object Notation (JSON) data-interchange format
  • Mbstring PHP Extension - php8.1-mbstring - provides multibyte specific string functions that help you deal with multibyte encodings
  • OpenSSL PHP Extension - openssl - library for symmetric and asymmetric encryption and decryption
  • PCRE PHP Extension - Always available - PHP Core library with JIT support
  • PDO PHP Extension - php8.1-common - defines a lightweight, consistent interface for accessing databases
  • Tokenizer PHP Extension - php8.1-common - interface to the PHP tokenizer
  • XML PHP Extension - php8.1-xml - implements support for DOM, SimpleXML, XML, and XSL

And additional dependencies for our demo project...

This lesson is only for Premium Members.
Want to access all lessons of this course?

You also get:

  • 59 courses (1056 lessons, 42 h 44 min total)
  • Premium tutorials
  • Access to repositories
  • Private Discord