cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Composer connectivity

I'm trying to install phpoffice/phpspreadsheet on my linux hosting. Once I got SSH access and confirmed that composer was installed I tried "composer require phpoffice/phpspreadsheet" and got the following error:
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: Connection timed out

I then ran "composer diagnose" to see if I could find a problem and get the following errors.

 

Checking http connectivity to packagist: WARNING
[Composer\Downloader\TransportException] The "http://packagist.org/packages.json" file could not be downloaded: failed to open stream: Connection timed out

Checking https connectivity to packagist: WARNING
[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: Connection timed out

 

Checking composer version:

[Composer\Downloader\TransportException] The "https://getcomposer.org/versions" file could not be downloaded: failed to open stream: Connection timed out

 

Is there some setting I need to change to allow composer to connect to these locations?

1 REPLY 1
Community Manager

Hi @etaileremeyer. Thanks for being part of GoDaddy Community! Generally speaking, you wouldn't be able to install software to your hosting plan using SSH, especially if it has to pull the install from another source. This is a limitation that is put in place to help keep the shared environment running smoothly. The only time you'd be able to do this would be if you have a VPS or Dedicated Server. That's probably why you're experiencing the error in question. 

 

JesseW - GoDaddy | Community Manager | 24/7 support available at x.co/247support | Remember to choose a solution and give kudos.