Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shern91's avatar

How update laravel project on shared hosting when installed new package

Hi everyone, I just deploy my own laravel project on shared hosting. But after deploy, I continue to develop that project to making it good. I have installed some package such as Maatwebsite/Laravel-Excel to upload simple data to database. But now I faced a problem, how can I run composer-install on my shared hosting(My hosting provider doesn't provide ssh access ). I try to upload 'maatwebsite' folder in my local vendor folder to shared hosting, is not working. Does anyone has this experience or any solution could provide to me? Help is appreciated!

0 likes
4 replies
mikefolsom's avatar
Level 21

If you don't have SSH, the only option really is FTPing the vendor directory. Just make sure it is going to the right place, since many shared hosting plans make it difficult to serve the site from Laravel's public directory, and to upload files above that directory. Also make sure you are including the composer directory or your class autoloading won't work properly.

I hate to say it, but with the price of VPS hosting from providers like DigitalOcean and Linode, it doesn't make much sense to try and run a Laravel app on shared hosting...

1 like
Snapey's avatar

build the project locally and the re-upload the entire project again

1 like
shern91's avatar

Thanks for your all replies, I will try to delete the delete entire vendor folder and composer.json and re-upload. I not using VPS due to shared hosting got provide cpanel, it's much easier for beginner like me to create custom domain email account, view visitor and etc.

meteyilmaz's avatar

Hi everyone, Which folders should I upload to the other side after the local update? Thanks...

Please or to participate in this conversation.