2 min read Sep 26, 2026

How to Run Composer over SSH

Composer needs to be run with the full path to a specific PHP version on FimuroHost Cloud Hosting. Here is the exact command format and how to pick your PHP version.

FimuroHost Team

FimuroHost Team

Technical Writer

Share Article

Composer is the standard dependency manager for PHP projects. You can run it over SSH on FimuroHost Cloud Hosting, but there is one important detail: you need to tell it which PHP version to use.

Why the extra step?

The platform offers several current PHP 8.x versions for your websites. The default PHP you get when you simply type php in SSH is a basic system version that is missing many of the modules your sites use. If Composer runs with it, installs can fail with missing-extension errors.

The fix is to call the PHP version you want by its full path and pass Composer to it.

How to run Composer

  1. Connect to your hosting over SSH.
  2. Look at the welcome message (the "message of the day") shown when you log in. It lists the PHP versions available and their paths.
  3. Change to your project folder, for example:
    cd public_html
  4. Run Composer using this pattern:
    /usr/bin/phpXX -f /usr/bin/composer install
    Replace phpXX with the version you want, using the exact name from the welcome message (for example php83).

Any Composer command works the same way; just change the last word:

/usr/bin/phpXX -f /usr/bin/composer update
/usr/bin/phpXX -f /usr/bin/composer require vendor/package
/usr/bin/phpXX -f /usr/bin/composer dump-autoload

Tips

  • Match your website's PHP version. Use the same version your site runs in StackCP, so the packages Composer picks are compatible.
  • Save typing during a session with an alias:
    alias composer='/usr/bin/phpXX -f /usr/bin/composer'
    After that, composer install works as normal until you log out.
  • Production installs: use install --no-dev --optimize-autoloader on a live site to skip development packages.
  • Long installs: SSH commands are not limited by the web request time limit, so large installs are fine here.

Need help?

Our support team is happy to take a look. Open a ticket at app.fimurohost.com/submitticket.php or message us on WhatsApp at 01818160926.

Categories

FimuroHost Team

Written by

FimuroHost Team

Technical Writer