How to Install Composer on a Shared Hosting

How do I install Composer on a shared hosting?

It depends on the host, but you probably simply can't (you can't on my shared host on Rackspace Cloud Sites - I asked them).

What you can do is set up an environment on your dev machine that roughly matches your shared host, and do all of your management through the command line locally. Then when everything is set (you've pulled in all the dependencies, updated, managed with git, etc.) you can "push" that to your shared host over (s)FTP.

Workaround to install composer on single shared hosting in hostinger

Follow these steps:

  • Try to match the PHP version of the server and localhost.
  • Install composer locally. This will generate all library files inside the project. You can check the 'vendor' folder.
  • Upload the whole project folder to the server filesystem.

How to install composer on godaddy shared hosting?

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.

installation of composer on shared hosting

Use the command php composer.phar create-project --prefer-dist laravel/laravel borrowpet "5.2.*"
and make sure you execute the command from the directory where compser.phar exists.

Problems installing composer on 1and1 shared hosting

Your default PHP which you call with php refers to an old version of PHP . Try php7.1 composer.phar.



Related Topics



Leave a reply



Submit