Composer packages can be installed using Terminal in the cPanel or using SSH. If you cannot find Terminal in your cPanel, you can submit a support ticket from your account to request for it to be enabled.

The composer install command requires php allow_url_fopen directive to be on. However, the directive is disabled by default on our servers.

Refer to the article below for how to enable allow_url_fopen:

How to enable allow_url_fopen

After turning the directive on, composer install might still report that the directive is disabled.

In the terminal, execute

which composer

It will output the location of the composer executable: example

/opt/cpanel/composer/bin/composer

Now that you have the composer location, you can run composer install using the command below.

/usr/local/bin/ea-php74 -d allow_url_fopen=On /opt/cpanel/composer/bin/composer install

Note: The above command assumes that the PHP version is set to ea-74 in the cPanel if you are using MultiPHP Manager: You can change it to /usr/local/bin/ea-php73 if you are using PHP 7.3


What are you looking for?