In this video, we will be looking at how to deploy a Laravel application on a dedicated server. Here we will create a digital ocean droplet and deploy our Laravel project there.
=== Important Links ===
Fonts, extensions I use, and Support Laratips links:
bit.ly/m/laratips
=== Offer ===
Laravel Hosting: platform.cloudways.com/signup...
Get up to Free Hosting by using code "LARATIPS" and you get $15 as credit which can last almost a month.
Cloudways offers peace of mind and flexibility so you can focus on growing your business and reaching new milestones instead of dealing with server management. With Cloudways, you get an optimized stack, managed servers, backups, staging environment, integrated Git, pre-configured, Composer, 24/7 support, and the choice of five cloud providers: AWS, DigitalOcean, Linode, Google Cloud, and Vultr
====================== Support ======================
If you want me to continue making this kind of video for free on KZitem, then you can support the channel
eSewa ID: 9843632084
Wise Link: bit.ly/3dnBRmX
Wise email: ashish.dhamala2015@gmail.com
===
====================== Timestamps ======================
00:00 Intro
00:15 Create Project on Digital Ocean
00:43 Create Droplet
02:49 Login via SSH
05:01 Install Nginx and Php PPA
05:59 Install Nginx
10:24 Install Php and its extensions
11:20 Install composer
13:03 Create server user
14:47 Install laravel project
15:46 Modify Nginx config file
18:36 Fix permission issues
20:28 Install MySQL server
21:49 Create database and user
23:13 Modify .env file
24:59 Summary
====================== Links ======================
Nginx PPA:
launchpad.net/~nginx/+archive...
Php PPA:
launchpad.net/~ondrej/+archiv...
Download Composer:
getcomposer.org/download/
====================== Commands ======================
sudo apt install -y nginx
sudo apt install -y php8.0-fpm php8.0-cli php8.0-mcrypt php8.0-gd php8.0-mysql php8.0-pgsql php8.0-imap php8.0-memcached php8.0-mbstring php8.0-xml php8.0-curl php8.0-bcmath php8.0-sqlite3 php8.0-xdebug php8.0-ctype php8.0-zip
php composer-setup.php --filename=composer --install-dir=/usr/bin
sudo adduser laravel
usermod -aG sudo laravel
vi /etc/php/8.0/fpm/pool.d/www.conf
sudo service php8.0-fpm restart
sudo apt install mysql-server -y
sudo mysql_secure_installation
mysql -u root -p
CREATE DATABASE laravel_db;
CREATE USER 'laravel_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON laravel_db.* TO 'laravel_user'@'localhost';
FLUSH PRIVILEGES;
====================== Social Media Links ======================
Let's be friends
/ aashish_dhamala
Follow On Facebook
/ laratipsofficial
====================== Other Videos ======================
Laravel 8 - Components - Complete Explanation
• Laravel Basics - Compo...
Drastically Improve Query Time From 4 seconds to 70 milliseconds (50 - 60 times faster)
• Drastically Improve Qu...
Refactor If else Statement and Write Clean Code
• Refactor If else State...
Laravel Tip - Format Multilevel Categories Using Only Has Many Relationship
• Laravel Tip - Format M...
Laravel - Show The Nearest Shop To The User Based On Current Location
• Laravel - Show The Nea...
====================== Tech stack ======================
Nginx
Laravel
PHP
#laravel #php #laraveltip #laratips #nginx
Негізгі бет Deploy Laravel Project On Live Server - Digital Ocean
Пікірлер: 30