Deploy Laravel Via Ftp On Shared Hosting Cpanel - FreeCodeBlog

Last updated: Jul 02, 2022

Deploy laravel via ftp on cpanel! Want to deploy laravel on shared hosting cpanel via ftp? Yes. But why? Because I can't access cpanel public_HTML folder directly to deploy laravel on cpanel. Yeah sometimes you may can't access cpanel file manager public_HTML folder directly. So you must need to use cpanel FTP account information to deploy laravel to shared hosting cpanel. Don't worry we can easily deploy laravel on cpanel shared hosting cpanel via ftp information. You may need to create a ftp account from cpanel to deploy laravel on cpanel. So let's start to use ftp information to deploy laravel on shared hosting cpanel.

 

Deploy Laravel Via Ftp On Shared Hosting Cpanel
Deploy Laravel Via Ftp On Shared Hosting Cpanel

 

1. Create FTP Account.

Do you have ftp information that will help to deploy laravel on cpanel shared hosting? No. Actually you need cpanel ftp account information to deploy laravel on cpanel via ftp. So first you need to create an ftp account from cpanel. Do you know how to create a ftp account on cpanl? No. Don't worry, If you don't know to create FTP account or haven't an FTP account then you should need to read how to create ftp accounts on cpanel shared hosting tutorial. After created a FTP account copy created FTP account information to deploy laravel via ftp on cpanel. Please don't forget to define directory “public_html” to deploy laravel via ftp on cpanel.

 

2. Install FileZilla.

Have you installed filezilla on your computer? No. Listen friends, you need filezilla on yor computer to transfer laravel data on cpanel from computer. So now want to install filezilla on your computer to deploy laravel via ftp on cpanel? Yes. Don't worry, If you don't know to install filezilla client on windows 10 then please don't forget to read how to install filezilla client on windows 10 tutorial.

 

3. Create Laravel.

Wait a minute, do you have any laravel that you want to deploy via ftp on shared hosting cpanel? No. How do you laravel deploy on cpanel via ftp without laravel? You must create a laravel project to deploy on cpanel shared hosting. If you haven't a created laravel project then you must need to read how to create a simple laravel crud project tutorial.

 

4. Configuration Before Deploy.

Maximum Laravel Developer forgets to configure Laravel before deploying to production. As a result, they encounter a lot of errors in cpanel after deploying Laravel. Want to fix some errors before deploy laravel? Yes. Then you must need to read how to configure laravel project for production tutorial to fix some errors to deploy laravel on shared hosting cpanel.

 

5. Upload Laravel On Cpanel Via Ftp.

Now open filezilla client on your device and fill your cpanel FTP account information into filezilla client. you need to fill host, username, password, port and after filled all information you need to click on quick connect button.

Host: fill host input like “ftp.domain.com”. please see your server host and fill it to login on cpanel.

Username: fill username into filezilla like example@domain.

Password: define you created ftp account password like “$pr7B5L3Fc”.

Port: Fill port input numeric like 21. look at your created ftp account port number and fill it.

Quick Connect: Finally click on quick connect button on filezilla client to login into defined directory.

 

Now transfer your laravel created project file into defined directory. Filezilla may take too much time to transfer laravel project file in shared hosting cpanel.

 

6. Configuration After Deploy.

 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 deploy laravel project to shared hosting cpanel. You need to read configure laravel project after deploy on shared hosting cpanel tutorial. You need to change some laravel configuration like database, mail, session, app url, app debug and more after deploy laravel project to shared hosting cpanel.

 

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
Generate A Unique Username In Laravel When A User Registers

Unique username in laravel! Yes you can generate a unique username in laravel when user will register her account. So do you want to make a usernam... Read More

Make A Laravel Pdf Generator Using Barryvdh Dompdf

Make a laravel pdf generator in laravel using barryvdh dompdf. You can easily generate a pdf file from a HTML file using DomPDF. To export into PDF... Read More

Please Commit Your Changes Or Stash Them Before You Merge Slove For Cpanel Git Version Control

You need to solve your local changes to the following files would be overwritten by merge and please commit your changes or stash them before you m... Read More

Laravel Mix Complete Tutorial

After installed laravel you will get laravel mix files into project root folder. In this tutorial I will explain you all about laravel mix. so wast... Read More

How To Add Laravel Website To Google Search Console

Want to add your Laravel website to Google Search Console? Yes!, To rank Laravel website on Google, you need to add your Laravel website to Google... Read More