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

mecjos's avatar

How to Install New Packages on Godaddy Shared Hosting

Hi. I'm using godaddy shared hosting to test my app. How can I install new packages in proper way on godaddy shared hosting. When I try to install it by using ssh connection but while updating dependancey it says killed on terminal. Composer.json file is updated but there is nothing in vendor folder. I want to install laravel domPdf. Besides I tried to upload vendor/barryvdh and dompdf folder from dev to prod directly, this time it gives 'serviceprovide couldn't find' error.

0 likes
4 replies
martinbean's avatar

@mecjos Shared hosting packages are notoriously limited, because the resources on them are shared. Hosting companies don’t want you running intensive processes like composer and npm or queue workers because then that ties up processing power for other customers using that site.

Instead, you should just upload the files via FTP. If you want to run processes on the server, then you’ll need to upgrade from shared hosting to a more appropriate product.

mecjos's avatar

@martinbean thanks for your reply.. I can run queue work and other artisan commands on godaddy shared hosting and composer is installed on my host but there is something wrong I can't understand.

I already tried to uplaod files from local. I uploaded barryvdh/laravel-dom and domPdf folders as well as app.config file for Service provider configuration. But in this case, I get service provider couldn't find error. Is there anything else that I should do.

Olsza's avatar

@mecjos And you tried to run composer locally, description in composer documentation (I cannot attach a link on the first day of registration, but on composer website, you choose "Getting Started" -> "locally") I managed to do this once on a server, where I also had limitations

mecjos's avatar
mecjos
OP
Best Answer
Level 2

Problem solved.. When new package uploaded, composer dump-autoload must be run and uploaded composer folder also..

Please or to participate in this conversation.