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
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
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)
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.
Recommanded Articles
- How to create a multilevel category and subcategory in Laravel
- How to check YouTube video exist Laravel validation
- Multiple user roles authentication Laravel 8
- Deploy Laravel project from local to production server
- Make custom pagination URL in Laravel without query strings
- Web Scraping in Laravel using Goutte
- Insert values during migration run laravel
- Validation for string characters only with custom message in Laravel
- Add new columns in a table Laravel
- How to create foreign key constraints in Laravel
Latest Comments