Upload Laravel Project To Shared Hosting Using Public Github Repository - FreeCodeBlog

Last updated: Dec 01, 2021

Want to use GitHub public repository to upload laravel project to shared hosting cpanel? Public GitHub repository for laravel project uploading on shared hosting? Yes!, You can easily upload laravel project to shared hosting (cpanel) using public GitHub repository. Actually public GitHub repository is a easiest way to upload laravel project to shared hosting cpanel. First you need a laravel project that you can upload to the GitHub public repository, Second you need a public GitHub repository where you can upload your laravel project to connect to cpanel Git version control, Third you need to install a composer on cpanel.

 

Upload Laravel Project To Shared Hosting Using Public Github Repository
Upload Laravel Project To Shared Hosting Using Public Github Repository

 

Before continue this tutorial, I want to remember you that public repository is not safe for your laravel project to upload on shared hosting. You need to use private GitHub repository for your laravel project. Read laravel project upload to cpanel using private GitHub repository tutorial to use private GitHub repository for laravel project. Still don't know which method would be best for your Laravel project to upload to shared hosting cPanel? Then you need to read the best way to upload laravel projects to shared hosting cpanel tutorial carefully. OK, now you can follow next steps to upload Laravel project to shared hosting cpanel using the public GitHub repository.

 

1. Create Laravel Project.

To upload to cpanel shared hosting you need to create a minimum basic Laravel project. you can create a laravel project using any kind of laravel version. I think you should use the latest version of Laravel for your project. So please read how to create a simple laravel crud project tutorial. Did you create the laravel project using the old laravel version? Don't worry friends if you have Laravel project which is made in Laravel older version just upload it on cpanel.

 

Once the Laravel project is successfully completed, you will need to configure it before placing your project on shared hosting using the GitHub public repository. Read how to configure laravel project for production tutorial slowly.

 

2. Upload Laravel Project To GitHub Public Repository.

Want to upload laravel project to public GitHub repository? For this tutorial, you will need to create a public GitHub repository to upload laravel projects to the shared hosting cpanel. Don't know how to create a GitHub repository? If you do not know how to create a public GitHub repository, read this below tutorial. You can also use Gitlab or cpanel Git version to upload laravel projects to shared hosting cpanel. Now you can easily upload Laravel project to Github Public Repository by reading upload code to GitHub repository using git bash tutorial.

 

3. Upload Laravel Project To Shared Hosting Cpanel.

Now read this step very slowly and carefully as it is the main part of this tutorial. I hope you uploaded your Laravel to the GitHub public repository. After uploading the Laravel project to the GitHub public repository, you will need to link to the GitHub public repository project to upload the shared hosting Git version. So let's login into cpanel dashboard and go to git version control. Now click on the create repository button from list repository. You need to edit the repository path as public_html when connecting GitHub laravel project to Cpanel git version control. For more information don't forget to read how to create repository on cpanel tutorial.

 

public_html

 

After the successfully linked project you will find the laravel project folder and files in the public_html folder. I recommend you, please be sure to add your GitHub public repository to the Cpanel public_html root folder. You must delete all files from the public_html folder before you can connect your GitHub public repository project to the cpanel public_html folder.

 

4. Install Composer On Shared Hosting.

Did you upload the Laravel project to Cpanel using the GitHub public repository? Now want to install laravel composer package file on cpanel shared hosting? In fact, you need to install Composer on your uploaded Laravel project to install the Composer package files. Now want to install Composer on your uploaded laravel project? Please read how to install composer on shared hosting cpanel tutorial. Make sure you have the latest version of Composer installed on shared hosting cpanel.

 

5. Configuration After Upload Laravel Project To Shared Hosting.

Did you upload the Laravel project to the shared hosting Cpanel? You need change some laravel configuration like database, mail, session, app url, app debug and more after upload laravel project to shared hosting cpanel. Don't want to use multiple website url? Want to redirect website URL to subfolder website? You need to use htaccess files to prevent all website url problem after upload laravel project to shared hosting cpanel. You need to read configure laravel project after deploy on shared hosting cpanel tutorial.

 

Alright So that’s it for today. See you again next tutorial. Thank you.

Post Tags
Post Writer
masum7323
Masum Biswas (@masum7323)

My name is Masum Biswas. I'm a full stack developer. I live in Bangladesh and I love to write tutorials and tools that can help to other artisan. I am a big fan of PHP, Javascript, JQuery, Laravel, MySQL, VueJS, Tailwind CSS and Bootstrap from the early stage.

Follow Me On
Related Posts
How To Make A Filter Search In Laravel With Vue Js

Laravel vue filter search! Want to make a filter search in laravel with vue js? Yes. Okay don't know to make filter search system using laravel and... Read More

How To Fix Laravel Session Error On Shared Hosting Cpanel

After uploading the laravel project to cpanel, you can get laravel session error in shared hosting cpanel. You need to fix laravel session error in... Read More

Laravel Ui Email Verification Complete Tutorial

Want to make laravel ui vue, react, bootstrap email verification using laravel ui version 3, 2, 1? Laravel ui has a feature for users to verify ema... Read More

Develop A Simple Free Online Web Calculator Application In Laravel

We can easily develop a simple free online web calculator for quick calculations in laravel that support button click. So welcome to one of the bes... Read More

Build Comment And Reply System Using Only Comment Table In Laravel

Today I will explain, how we can create a multilevel nested comment and reply system in laravel using only comment table. No need to create reply m... Read More