Note: This article applies to Linux Shared Hosting, Windows Shared Hosting and WordPress SSD Hosting Only.

If you are using a Mac or Linux computer, open a console. If you are using Windows, you will need to download an SSH Client in order to connect to SSH.

On our SSH servers, commands such as "composer" will be executed using our default. This is a stripped-down version of PHP that does not include all of the modules that you may be used to to on your website. To use this command, you must specify the complete path to the PHP version you wish to run the script as. This can be accomplished directly from the command line.

Here is an example of how to use PHP 7.1 to execute Composer:

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

 

As a result, the complete command would be:

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

 

Once you login to SSH, the message of the day (MOTD) displays a list of available PHP versions.

Was this answer helpful? 28 Users Found This Useful (114 Votes)