Deploy Laravel Project To Shared Hosting Cpanel Using Zip File - FreeCodeBlog

Last updated: Jun 28, 2022

Want to deploy laravel project to cpanel using zip file? Yes. Okay don't worry friends, You can easily deploy any kind of laravel project to shared hosting cpanel using zip file method. You may need to create a laravel project before deploying on shared hosting cpanel if you do not have one. You may also need to configuration laravel project before or after deploying on cpanel shared hosting. Zip file method is the most common and easy way to deploy laravel project to cpanel shared hosting. I think 95% of Laravel developers use the zip file method to deploy Laravel projects on shared hosting cpanel.

 

Deploy Laravel Project To Shared Hosting Cpanel Using Zip File
Deploy Laravel Project To Shared Hosting Cpanel Using Zip File

 

1. Laravel Project.

Look, you need to create a laravel project to deploy on shared hosting cpanel. So do you have any laravel project that you want to deploy on cpanel using zip file method? No! Okay then first you must need to create a laravel project. Do you know how to create a laravel project? No! Don't worry If you don't know to make a simple laravel project then you should need to read how to create a simple laravel crud project tutorial to continue deploy laravel via zip file tutorial.

 

2. Laravel Project Before Configuration.

Have you created a laravel project to deploy on cpanel via zip file? Yes. Okay now you need to configure laravel project before deploy on cpanel via zip file. So please don't forget to configure laravel project before deploy on shared hosting cpanel using zip file method. Read how to configure laravel project for production tutorial slowly if don't know to configure laravel project to deploy shared hosting.

 

3. Login Cpanel Dashboard.

I hope you have created and configured the Laravel project to deploy on a shared hosting cPanel using a zip file. Now you need to login on your cpanel dashboard using username and password. If you can't login your cpanel dashboard then try to reset password or contract hosting provider.

 

4. Find File Manager.

Want to deploy laravel to public_html folder on cpanel? Yes. Then you need to find file manager from cpanel dashboard after login on cpanel. Can't find the file manager yet? No. Don't worry just scroll a little bit on cpanel dashboard, You will see a file manager option in the File section. Now you need to click on file manager option to see public_html folder on cpanel file manager. Now let's go to public_html folder.

 

5. Clear Public HTML.

Did you go to the public_HTML folder? Yes. Can you see some folders and files in the public_HTML folder? Yes. Can you see hidden files in the public_html folder? No. Okay then click on the settings button from top of the navbar and allow show hidden files (dotfiles) to see hidden files in public_HTML folder. Finally save it and check hidden file in the public_HTML folder before deploy laravel project in the public_HTML folder using zip file. Now you need to delete all files and folder from public_HTML folder. Please be sure to back up before deleting all files and folders so that you can permanently delete or restore deleted files and folders after deploy laravel on cpanel via zip file.

 

6. Deploy Cpanel Using Zip File.

I hope you cleared public_HTML to deploy laravel project in shared hosting cpanel. Now you will see upload option on top of the file manager navbar. Do you see the upload option? Yes. Good, Now click on upload button to deploy laravel project via zip file. Did you click the upload button? Yes. Now click on select file button and select zip file to deploy laravel project on public_html folder. After successfully uploading the zip file you provided for uploading, you will see a green color in the zip file. Now go back on the public_html folder and select uploaded zip file to exert in the public_HTML folder. Now click on exert button to unzip uploaded laravel project. Have you exert the zip file of the Laravel project into public_HTML folder? Yes. Okay now you can delete zip file from public_HTML folder.

 

7. Laravel Project After Configuration.

Did you upload laravel to cpanel via zip file? Yes. Listen friends, after deploy laravel on cpanel via zip file you need to configuration laravel project to live successfully. Okay now want to configure database, mail, session, sitemap, robots, htaccess and more in the uploaded laravel project? Yes. Okay then you must need to read configure laravel project after deploy on shared hosting cpanel tutorial to configuration laravel laravel project after deploy on shared hosting cpanel via zip file.

 

Okay so this is for today. See you again next tutorials. Thanks

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
Laravel Mail Configuration On Shared Hosting Cpanel

Want to configuration laravel mail on cpanel shared hosting? Actually after successfully deploy laravel project on shared hosting cpanel you need t... Read More

Download A File In Laravel Vue From Storage Folder

Want to download a file from storage folder in laravel with vue js? Yes! Okay don't worry you can easily make a download file from storage folder s... Read More

How To Upload File On Laravel Vue

You need to read upload a file on laravel 8 vue 2 tutorial If you want to know how we can upload a image file in laravel 8 with vue 3. so guys, let... 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

Configure Laravel Project After Deploy On Shared Hosting Cpanel

Did you deploy the Laravel project to the shared hosting cpanel? Yes. Good, Have you configured the Laravel project after deploying on the shared h... Read More