Category Archives: AWS

AWS-and-Laravel-Installing-Laravel-on-an-Amazon-EC2

AWS and Laravel – Installing Laravel on an Amazon EC2

Learn how easy it is to install laravel on an Amazon EC2 server. In this post I will walk you through the basic laravel installation on EC2 server.

 

Open putty and run these commands:

  • cd ~
  • $ sudo curl -sS https://getcomposer.org/installer | sudo php
  • $ sudo mv composer.phar /usr/local/bin/composer
  • $ sudo ln -s /usr/local/bin/composer /usr/bin/composer

then you can run

  • sudo composer install

    “IF got an error for composer.json
    To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ “”Getting Started”” section”

  • Create a file : vim composer.json
"{
 ""require"": {
 ""aws/aws-sdk-php"": ""2.*""
 }
 }"

then you can run

  • sudo composer install

Now to create a new Laravel Project

  • composer create-project laravel/laravel {directory} 4.2 --prefer-dist