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

hikups's avatar

composer timeout

when i try to install laravel via composer and ssh i get a timout everytime on the same file

  [Composer\Downloader\TransportException]
  The "http://packagist.org/p/provider-2015-04$496debf12911ea00c6d11678b39f999293db633589cb5e09ae0aded30451a787.json
  " file could not be downloaded: failed to open stream: Connection timed out

i tried to set the ssh timeout to a number like 99999 , but it doesn't work

any thoughts?

0 likes
3 replies
rrydrr's avatar

@puzbie this helped me after trying to fix this issue for 3 hours. Thank you

1 like
hikups's avatar

Thanks, i'll try that out, next time!

At the end I found a better way to get my app on a shared server.

The problem was i had around 50.000 files to upload via ftp, and thats why i was trying to install laravel via ssh and composer.

But i remebered you can run unzip commands via ssh, so i zipped them to one file and ran the unzip command and got everything uploaded in less than 20 minutes.

Please or to participate in this conversation.