2

I'm trying to install composer on a shared hosting , GoGeek from siteground , what's the best way to do that ?

alexcr
  • 171
  • 1
  • 12
  • 3
    Possible duplicate of [How do I install Composer on a shared hosting?](http://stackoverflow.com/questions/20894518/how-do-i-install-composer-on-a-shared-hosting) – Pᴇʜ May 12 '16 at 06:54
  • 1
    I installed composer on GoGeek from SiteGround. Please see my answer here https://stackoverflow.com/a/49745082/2993088. – OrganicCorridor Apr 11 '18 at 01:13

2 Answers2

2

You probably don't want to install Composer on the live server. Run it locally on the machine that uploads the other code to your shared hosting server.

Why? Because it works, and you will see any errors during composer install before such a failure takes your site offline. Note that any of the used services (packagist.org, GitHub, Bitbucket and so on) never have 100% uptime, and it will be annoying if the one you need is down when you need it during an update.

Sven
  • 69,403
  • 10
  • 107
  • 109
1

On SiteGround (as per your current account), it's already installed. Here it states "Composer is pre-installed on all of our servers."

verism
  • 1,106
  • 1
  • 12
  • 35