Skip to content
Advertisement

How to Install Composer globally on Cloudlinux

I can’t seem to install Composer globally on Cloudlinux. I have managed to install packages like git etc but these are actual packages unlike composer.

I made Git globally available using the cagefsctl e.g.:

JavaScript

But this doesn’t seem to work for Composer (which makes sense).

How do I do this for non packages like Composer?

Advertisement

Answer

In order to install composer, you must first download and install the package :

JavaScript

Once the package is install move the file :

JavaScript

If you are using CageFS, you’ll need to take a extra step and create a configuration file for Composer using vim :

JavaScript

In the file, you’ll need to declare the composer executable :

JavaScript
Advertisement