Deploy Laravel project from local to production server

Deploy Laravel project from local to production server

Once the laravel project is done, you can move the website from local to live server. In this blog I will show you that how we can move laravel website on a server.

Your server meets the following requirements to move or create a website in laravel:

  • PHP >= 7.2.5
  • BCMath PHP Extension
  • Ctype PHP Extension
  • Fileinfo PHP Extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

My domain is https://phpesperto.com and I'm going to create my new website under subfolder. SO it will be https://phpesperto.com/dev

Also Read: Get Facebook long live access token in AWS Lambda function
Also Read: How to delete Instagram account permanently

Once the laravel project is done, you can move the website from local to live server. In this blog I will show you that how we can move laravel website on a server.

Your server meets the following requirements to move or create a website in laravel:

  • PHP >= 7.2.5
  • BCMath PHP Extension
  • Ctype PHP Extension
  • Fileinfo PHP Extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

My domain is https://phpesperto.com and I'm going to create my new website under subfolder. SO it will be https://phpesperto.com/dev

Also Read: Get Facebook long live access token in AWS Lambda function
Also Read: How to delete Instagram account permanently

Steps to move website on server

1. Create `dev` folder in my public_html folder (because my website url will be https://phpesperto.com/dev)

local-to-production-1

2. After that upload your laravel files in `dev` folder

3. Go to your upload folder and move all the files in root because in local laravel points public/index.php, but in live server in search index.php on root and will could not found.

4. Create your database and make db connectivity using .env file. You can watch below video if needs more help.

Please let me know what your thoughts or comments are on this article. If you have any suggestion or found any mistake in this article then please let us know.

Latest Comments

Add your comment

Close