简体   繁体   中英

How to install composer on godaddy shared hosting?

I'm trying to install composer and I'm getting an error,

What I did,

  1. Downloaded composer wget https://getcomposer.org/installer
  2. php installer --check

All settings correct for using Composer

  1. php installer

The error I got,

The " https://getcomposer.org/versions " file could not be downloaded: Failed to enable crypto failed to open stream: operation failed The download failed repeatedly, aborting.

I tried google but no luck

I know this question is quite old, but I've been looking for an answer to it for a while and just got it answered, so here it is.

Can you install composer on a Godaddy shared hosting: no you can't.

BUT

Godaddy Shared hosting used to use a legacy control panel. If your shared hosting account is old, you are most likely using it. But, Godaddy has moved to cPanel for Linux hosting and all new Linux shared hosting purchases now come with it. The good news is, there is a version of Composer installed on these accounts (currently it's 1.1.1).

Follow this link to see software versions on Godaddy's hosting accounts.

I was on the phone with Godaddy's tech support, and they confirmed that Composer was installed out-of-the-box for cPanel hosting accounts.

Hope that helps.

GoDaddy Provides Composer as Preinstalled with your hosting. You can access the command line tools like Composer by SSH. Request SSH Access for your Account. as the Account gets activated, you can access SSH by your FTP userId and Password. to check the composer is installed, just run composer -v .

You can install Composer 2 on godaddy

From your home directory /home/[USER] do

wget https://getcomposer.org/installer
php installer

Once it is installed you can then setup an alias in your.bashrc file so every time you run composer it uses the new 2.0+ version

nano .bashrc
alias composer='php /home/[USER]/composer.phar'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM