Create Gym management in Laravel 5.7 part 0 :: Install Laravel on AWS cloud9
Tags: laravel, laraveleloquent, laravel5, phpdevelopment
Published: 2018-10-19 23:26:13

---
title: Create Gym management in Laravel 5.7 part 0 :: Install Laravel on AWS cloud9
published: true
tags: laravel,laravel-eloquent,laravel-5,php-development
canonical_url: https://hackernoon.com/create-gym-management-in-laravel-5-7-part-0-install-laravel-on-aws-cloud9-f942f37be2c8
---

### Create Gym management in Laravel 5.7 part 0 :: Install Laravel on AWS cloud9

![](https://cdn-images-1.medium.com/max/1024/1*b7NFZNKFKNMMiTdmQAIsyw.png)

#### journey sponsor

[**Fullstack Web Development With Laravel and Vue.js**](https://click.linksynergy.com/link?id=qt/jYwyHv8A&offerid=507388.1608944&type=2&murl=https%3A%2F%2Fwww.udemy.com%2Flaravel-vuejs-fullstack-web-development%2F)  
Learn how to build fullstack web apps with Laravel 5, Laravel Mix, Vue js, Bootstrap 4 & Sass

[**Real Time Single Page Forum App with Pusher Laravel & vuejs**](https://click.linksynergy.com/link?id=qt/jYwyHv8A&offerid=507388.1587178&type=2&murl=https%3A%2F%2Fwww.udemy.com%2Freal-time-single-page-forum-app-with-pusher-laravel-vuejs%2F)  
Making Things Realtime With Pusher in Single Page App

AWS Cloud9 provides cloud-based Ubuntu environment. It features a browser-based editor, that supports many syntaxes highlighting and word completion, a GUI-based GDB debugging, full control over a cloud-based Ubuntu environment, and many more features including themes, customizable layouts, and keyboard shortcuts. Since it’s cloud-based, you can continue working on your problem sets even if you use a different computer!  
and you can integrate with other AWS service like Lambda, Codestar, Light Sail

in this chapter I’ve walkthrough if we need to follow me

you need AWS account

![](https://cdn-images-1.medium.com/max/1024/1*5rYIAoMvyCF9IBhG1TBcqQ.png)

try search for Cloud9

![](https://cdn-images-1.medium.com/max/1024/1*jvnxvfMS1r2ISs4YQSThoQ.png)

next we create environment

![](https://cdn-images-1.medium.com/max/1015/1*_o26LyzjkelWFTbZ5JOyhg.png)

fill name and description

next

![](https://cdn-images-1.medium.com/max/927/1*nILZTNBNw5RjHbcqU60ERw.png)

choose type of environment and instance type for more description you’ve seen in image

![](https://cdn-images-1.medium.com/max/957/1*0qMOQozLfL7hh13YaULrrg.png)

last step we seen instance summary

![](https://cdn-images-1.medium.com/max/1024/1*th3Eu4Za3WtoOua9AHiD1Q.png)

then wait…

![](https://cdn-images-1.medium.com/max/1024/1*2U3kwocjrUGWYbrbjGFXMA.png)

well well you got new playground

try uncover new thing with your self

#### Install Laravel 5.7

this version require php 7.1.3 or higher for now php in this machine is 5.6

![](https://cdn-images-1.medium.com/max/901/1*fQmDSEI4ZnhMOZcl3LPUVw.png)

and when you try apt-get

![](https://cdn-images-1.medium.com/max/1024/1*Ed7-EU7o7hRIHZKTnROxNA.png)

because Amzon linux based on Centos

so first thing we need to remove php 5.6 with this command

![](https://cdn-images-1.medium.com/max/1024/1*uHybDo4QQ5YihKO074bu2Q.png)

sudo yum remove php56\*

we remove everything relate php5.6 with \*

and we install everything relate php 7.2 with this command

sudo yum install php72\*

![](https://cdn-images-1.medium.com/max/1024/1*hksxpSPfBHnxCNZMEntyKA.png)

next try php -v

![](https://cdn-images-1.medium.com/max/818/1*NK858xPxq-vWYF65K_wrsw.png)

next install Composer

navigate to[composer download page](http://getcomposer.org/download)

![](https://cdn-images-1.medium.com/max/1024/1*3dJubyF4cayf4JZ4wuxLNg.png)

we use php in terminal

```
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash\_file('SHA384', 'composer-setup.php') === '93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP\_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
```

copy paste in terminal

![](https://cdn-images-1.medium.com/max/1024/1*E_5Xyr5G1LJJ-eZLNib7AA.png)

when installer succes you’ve seen composer.phar in file manager

next try call composer

![](https://cdn-images-1.medium.com/max/1024/1*V9xuw20sB0C1C9DPQp0hzw.png)

this case we need to call long command alway it’s lot of waste of time

then we need to alias composer command with

```
sudo mv composer.phar /usr/local/bin/composer
```

![](https://cdn-images-1.medium.com/max/1024/1*84GXTbyv0x6LNABo4mKwqQ.png)

now you can call composer directly

#### Install Laravel 5.7

using command  
 composer create-project laravel/laravel

![](https://cdn-images-1.medium.com/max/1024/1*EGVQ69WMzafeUX_NqxUr_Q.png)

when run finish you’ve seen in file manager

![](https://cdn-images-1.medium.com/max/234/1*FOdL57Bw1-004yfwFHFeIQ.png)

next we’ve using Sqlite for dev mode . so open up .env

![](https://cdn-images-1.medium.com/max/1024/1*zqoKsL8FZjJLt-I1SOjEFA.png)

change mysql to sqlite

![](https://cdn-images-1.medium.com/max/685/1*umvXNgOvIGcYcR9aJbTYQw.png)

and remove or insert comment

![](https://cdn-images-1.medium.com/max/408/1*IaeULWujwsBOg6O2osqNwQ.png)

and don’t forget move every file in laravel folder to root directory

![](https://cdn-images-1.medium.com/max/195/1*ml79YjrD7rD-n9XprhKFJw.png)

now try php artisan migrate

![](https://cdn-images-1.medium.com/max/1024/1*BjFS7WC_yE4_EXv8LB9jrw.png)

error come from we forget create sqlite file so easy way create with file manager

![](https://cdn-images-1.medium.com/max/183/1*rsuHSTjbnvyd_JmP1JIxMA.png)

Now php artisan migrate again

![](https://cdn-images-1.medium.com/max/621/1*ScBibrw-cH9qgF8yYbVqXg.png)

Next we start server using php built-in server with artisan command on port 8080 because cloud9 allow port 8080,8081 and 8082

![](https://cdn-images-1.medium.com/max/744/1*LFt6TyvsO4uvidUp0gAgIA.png)

then choose preview and select Preview Running Application

![](https://cdn-images-1.medium.com/max/651/1*aCTFIH-IE-zJLIJZ3I9qHw.png)

you’ve see new window appear in side of terminal

my god I got file manager , file editor , terminal and browser in one page

![](https://cdn-images-1.medium.com/max/1024/1*Cu-qLrYr_eWrv_hb0irVBw.png)

and you can open up in new tab

![](https://cdn-images-1.medium.com/max/1024/1*KhDhfA3oWpjwOg-eBsuh3w.png)

gotcha we’ve finish setup Laravel on AWS cloud9

but isn’t enough in next post I’ve create Github repository then push to deploy on Heroku for end up Dev workflow

#### Closing Sponsor

#### [The Ultimate Advanced Laravel Pro course (incl Vuejs)](https://click.linksynergy.com/link?id=qt/jYwyHv8A&offerid=507388.1382640&type=2&murl=https%3A%2F%2Fwww.udemy.com%2Fthe-ultimate-advanced-laravel-pro-course-incl-vuejs-2%2F)

[![](https://cdn-images-1.medium.com/max/480/0*v38pcuoiCCNQDOgl.jpg)](https://click.linksynergy.com/link?id=qt/jYwyHv8A&offerid=507388.1382640&type=2&murl=https%3A%2F%2Fwww.udemy.com%2Fthe-ultimate-advanced-laravel-pro-course-incl-vuejs-2%2F)

#### [Laravel 5.7 Ecommerce Shop](https://click.linksynergy.com/link?id=qt/jYwyHv8A&offerid=507388.1510962&type=2&murl=https%3A%2F%2Fwww.udemy.com%2Flaravel-ecommerce-shop%2F)

[![](https://cdn-images-1.medium.com/max/480/0*OE1HLGeIgnk9WzBd.jpg)](https://click.linksynergy.com/link?id=qt/jYwyHv8A&offerid=507388.1510962&type=2&murl=https%3A%2F%2Fwww.udemy.com%2Flaravel-ecommerce-shop%2F)

[**Learn More.**](https://click.linksynergy.com/link?id=qt/jYwyHv8A&offerid=507388.1510962&type=2&murl=https%3A%2F%2Fwww.udemy.com%2Flaravel-ecommerce-shop%2F)

#### Closing Notes:

common pirate get on black pearl if you need explore **Github** Ocean with me

#### if you need fundraise that journey

[![](https://cdn-images-1.medium.com/max/1024/0*a61X-YR3ZoABTlB0.png)](https://www.patreon.com/krissanawat)

[![](https://cdn-images-1.medium.com/max/700/1*QCV7h713dLgy5COZTyBLdQ@2x.png)](https://bit.ly/2O1yNyY)

* * *