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

nikankad's avatar

i am hosting my website on cpanel and i cant run composer update

whenever i run composer update it crashes with the message "killed" i contated go daddy support and they said this is because im using a shared hosting and i need to switch to a private server to be able to run the command.

0 likes
12 replies
Snapey's avatar

ok?

best you can hope for with shared hosting is to prepare all the files locally and then just upload them (complete with vendor folder) onto the remote server.

1 like
nikankad's avatar

so it is worth to get a private hosting?

siangboon's avatar

No if just simple website. Anyhow, you have to justify yourself, you know your own cost and profit better than anyone here

nikankad's avatar

@jlrdw its not that, every other command works fine. composer update just gets terminated

jlrdw's avatar

Yeah I deleted answer it's a timeout issue because it takes so long.

But just uploading with FTP periodically should be fine like mention above.

Really you should only need to update just your code periodically and just everything including vendor maybe every 6 to 8 months.

nikankad's avatar

Im using a PDF package for laravel and it's not working, does it have anything to do with me not updating composer?

Sinnbeck's avatar

Most likely yes. You should check the requirements and check if you shared server has it.

Use can create a php file in public with this content and call in the browser

<?php 
phpinfo();
nikankad's avatar

I did check the requirements. In the cpanel I made the settings max and it still crashed, I'm just going to download the files in my local machine and update them there

jlrdw's avatar

And if the correct php version is on shared, you will need to get everything working in local, then and only then ftp up your app.

Use phpmyadmin to import the database.

Change settings as needed for production in .env.

Main laravel should be one level higher than public_html

see http://novate.co.uk/deploy-laravel-5-on-shared-hosting-from-heart-internet/

and

https://laracasts.com/discuss/channels/laravel/next-issue-fonts-and-images-arent-visible

nikankad's avatar

I'm not sure I understand what you mean, do I install a package?

Please or to participate in this conversation.