Today, We want to share with you Move Laravel Project From localhost to live production server.In this post we will show you how to deploy laravel 5.7 project on linux server, hear for Moving Laravel 5.6 from local machine to live server we will give you demo and example for implement.In this post, we will learn about How to move Laravel Project from localhost to production server with an example.
Move Laravel Project From localhost to live production server
There are the Following The simple About Move Laravel Project From localhost to live production server Full Information With Example and source code.
As I will cover this Post with live Working example to develop how to upload laravel 5.6 project to cpanel, so the some upload laravel 5.6 project to server for this example is following below.
- Zip your laravel app files
- Export database On Your localhost Systtem
- Change in .env file
- Modify Laravel paths
- set file permission
Following The step by step you have must All the step followed to move local Laravel Project(Application) to live server in Laravel.
Step 1 :Zip your laravel app files
Moving Laravel Project from local machine to live server
First of all create Zip All Files as well as folder. and then unzip On public_html Folder it in your linux Cpanel Web Explorer. as well as Move all The public folder data into root directory on Live
Step 2 : Export database On Your localhost Systtem
Export your Laravel Project Mysql database then set(import) it up on your Live server.
Step 3 : Change in .env file.
change .env file , DB_NAME=database name, DB_PASSWORD=Pa4587FDSf692, DB_HOST=”localhost”, APP_URL=”http://your_domain_name”,
And then We have open the .env config file showing on the live web root folder of your laravel project.Update the env files (username, Password, DB_DATABASE, DB_HOST, APP_URL, APP_NAME ) credentials.
move Laravel Project from localhost to production server some change below
Step 4 : Modify Laravel paths
Note: Step 1 laravel local project public folder move to public_html folder on Live server
here, edit simple main root file name index.php It is in main public folder in public_html (mani below two line) and change the following adjustments
$app = require_once __DIR__.'/../bootstrap/app.php';
$app = require_once __DIR__.'/../laravel/bootstrap/app.php';
Step 5 : set file permission
Note :If You have getting some 403 Forbidden Access or 500 Internal Server message Error showing, so simple you try gaing to the changing
the permissions of your Laravel Application root path main Laravel structure storage folder found on the root folder of your laravel app.
Set the file permission to 0777.
Imp Note : set file permission to 777
That’s it Good Luck!, now Your URL check your live site. “Deploying Laravel Project on shared hosting Successfully”
Moving laravel Application from localhost to server issue
php artisan cache:clear
php artisan config:clear
php artisan view:clear
You can also read about AngularJS, ASP.NET, VueJs, PHP.
I hope you get an idea about Move Laravel Project From localhost to live production server.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.
Recommended For You.
Today, We want to share with you AngularJS Remove specific value from array.In this post we will show you Removing