MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

How to deploy Laravel application on AWS EC2

In the first step you should login to your putty using user name and password.

PuTTY terminal logged in to the EC2 instance as ec2-user, showing the shell prompt

After Login you should run command sudo -s for root access

PuTTY terminal running sudo -s, with the prompt switching to the root user

then you should change your directory to Xampp htdocs location so for that you should type command
cd /opt/lampp/htdocs

Terminal running cd /opt/lampp/htdocs to switch to the XAMPP htdocs directory

Now you should clone your project directory from bitbucket using clone command
git clone git@bitbucket.org:repo/reponame.git

Bitbucket Clone this repository dialog showing the SSH git clone command

after cloning repo you should jump into that folder using cd repoName and run some below commands for installtion of node_modules and vendor file and also setup of .env file.

first of all you should copy .env file using cp .env.example .env

run below some commands for some setup
npm install for node_modules
composer install for vendor files
npm run dev ( combines all your Vue components and other JavaScript files into a browser-friendly combined file )

if all the above command runs successfully then a create a virtual host in Xampp. for this you should change the dir to cd /opt/lampp/etc and open httpd.conf file to uncomment below line and save file

#Virtual hosts
#Include conf/extra/httpd-vhosts.conf

Httpd.conf with the Include etc/extra/httpd-vhosts.conf line uncommented

Now again change directory and went into cd /opt/lampp/etc/extra and below line to httpd-vhosts.conf file

Terminal ls -la listing of /opt/lampp/etc/extra with httpd-vhosts.conf marked to open

After following above steps you can easily run any laravel project in AWS EC2 Machine. and you should also know that xampp is already installed in your machine if you want to learn the xampp installtion then follow below urls.

Resource 1 : Link
Resource 2 : Link

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
MotoShare.in provides the perfect two-wheeler for every occasion—daily commuting, weekend escapes, tourist exploration, or test-riding your dream bike. Simplify your mobility with us!

Related Posts

How to Reset or Recover Forgotten mySql root Password

To reset a forgotten MySQL or MariaDB root password, stop the server, restart it with grant checks turned off (skip-grant-tables), set a new password with ALTER USER,…

Read More

Wetty – How to Install & Access Wetty (Web-based SSH) on AWS EC2 linux to access using browser

Wetty is a web-based terminal. It runs a small Node.js server that opens an SSH session and streams it to your browser over WebSockets, so you can…

Read More

Kubernetes Ingress Controller using Path-Based Routing: Complete Hands-On Lab with Calico VXLAN

Scope: Self-managed Kubernetes on two AWS EC2 Ubuntu nodes; install the community ingress-nginx v1.15.1 bare-metal/NodePort manifest, repair cross-node Calico networking, deploy two NGINX versions behind ClusterIP Services, configure path-based routing…

Read More

Provision an AWS EC2 Instance with Chef (Legacy ChefDK Workflow)

A practical, step-by-step walkthrough for provisioning an AWS EC2 VM using the classic ChefDK and chef-provisioning approach. Includes workflow, commands, recipe examples, and validation checks for legacy environments.

Read More

EC2 Boot from EBS Explained: Architecture, Trade-offs, and an AWS CLI Workflow

Booting Amazon EC2 instances from Amazon EBS was a major shift from ephemeral root disks to persistent root volumes. This guide explains what changed, why it mattered, and how to use the model safely in modern operations.

Read More

Deploying Java EE on Amazon EC2 with EC2Deploy: Workflow, Script, and Modern Lessons

This revised guide breaks down the original EC2Deploy approach for provisioning EC2 instances, deploying Java EE apps, and running JMeter tests. It also maps the same deployment pattern to modern DevOps practices.

Read More