Programming Languages

How do I run Composer via SSH?

Run Composer on Mandraled Hosting by specifying the full PHP version path.

1 min read Updated 11 Apr 2026 Guide 6 of 6

Mandraled Hosting operates multiple PHP versions. When executing commands like Composer via SSH, the system defaults to a basic PHP version used for internal tools. To access a fully-featured PHP installation, users must specify the complete path to their desired PHP version.

Solution

The command requires specifying the PHP version explicitly. For example, using PHP 7.1:

/usr/bin/php71 -f /usr/bin/composer

A complete installation command would look like:

/usr/bin/php71 -f /usr/bin/composer install

Additional Information: Upon SSH login, users receive a message of the day (MOTD) that displays all available PHP versions on their server.

Did this solve your problem?

Brilliant — glad that sorted it.

Sorry about that — let's get you a proper answer.

Still stuck?

Talk to a real human.

Our Thoothukudi team answers hosting, domain and email questions themselves — no bots, no scripts.