How do I use Composer on my hosting? Print

  • 0

Composer is available on our cPanel servers through the Terminal (or SSH).

  1. Log in to cPanel from your client area and open Terminal.
  2. Navigate to your project, e.g. cd ~/myapp.
  3. Run composer install or composer require vendor/package.

If the composer command isn't found, try php composer.phar after downloading it, or ~/composer. To select the right PHP version for your app, you can prefix commands with the full PHP binary path or set the version in MultiPHP Manager. Composer needs enough memory; if you hit a memory limit, run php -d memory_limit=-1 composer.phar install. On a VPS you have full root access and global Composer. If Terminal/SSH isn't enabled on your plan, open a ticket and we'll help.


Was this answer helpful?

« Back