Loading Video...
Close Video Installing Laravel on Amazon EC2

Installing Laravel on Amazon EC2

Play Video

Amazon EC2 makes it very easy to scale the servers that our web applications live on. This video tutorial will show you how to load up an Amazon EC2 ubuntu server and setup Apache, PHP, & MySQL on the server. I will then go through the basics of setting up the environment for a basic Laravel 4 installation.

Here is the cheat sheet of commands that I was using throughout the video:

———- Installing Apache ———-

$ sudo apt-get install apache2

———- Installing Latest PHP ———-

$ sudo add-apt-repository ppa:ondrej/php5
$ sudo apt-get update
$ sudo apt-get install php5 libapache2-mod-php5

———- Installing PHP Mcrypt ext. ———-

$ sudo apt-get install php5-mcrypt

———- Installing MYSQL ———-

$sudo apt-get install mysql-server

———- Installing GIT ———-

$ sudo apt-get install git-core

———- Laravel GIT Repo ———-


———- Installing Composer ———-

curl -sS https://getcomposer.org/installer | php

Here are a few additional resources:
This is the command I used at the beginning of the video to run apt-get update:

$sudo apt-get update --fix-missing

Here is the URL to the documentation on how to SSH into your Amazon EC2 instance:


  • http://madhues.com Sunny R Gupta

    Amazing tips and a great tutorial. Thanks! :)

  • fakiolinho

    Really thank you!!!

  • Carlos Benavides

    Thanks a lot, really nice!

  • Bret Truchan

    I also needed to do: sudo apt-get install php5-mysql, otherwise the PDO libraries weren’t installed. Excellent tutorial!

  • Muhammad Azaz Qadir

    For those who don’t want to go through all those commands, I suggest them to use a manage cloud platform that allows easy installation of Laravel on AWS EC2. Such platforms offers dashboard for installing laravel so you don’t have to enter any command.

  • Mussa Moses

    Very helpful…Thank you so much.

  • http://www.teambuktoo.com Hadim Jahate

    Hi I’m getting after installation this error:
    Parse error: syntax error, unexpected ‘.’, expecting ‘&’ or variable (T_VARIABLE) in /var/www/html/laravel/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 475 Does someone have any idea about what I did wrong? thanks!

  • Jonathan A

    might want to update for php7..