Composer is the dependency manager used by many PHP applications (Laravel, Symfony, WordPress plugins/themes, etc.). On GARMTECH hosting you can run Composer in two common ways: via a Plesk tool (if available) or via SSH.
Before you start
- Make sure you selected the required PHP version for the domain (Plesk → domain → PHP Settings).
- Composer should be executed in the folder that contains
composer.json.
Option A: Run Composer in Plesk (if available)
Some hosting environments show a Composer interface in Plesk. If you see it, this is the easiest method.
- Log in to Plesk from My.GARMTECH.
- Open your domain.
- Look for Composer (or PHP Composer).
- Select the project directory (where
composer.json is located).
- Run Install (for first setup) or Update (to update dependencies).
Option B: Run Composer via SSH
If you do not see a Composer tool, you can run Composer via SSH (if SSH access is enabled on your plan).
- Enable SSH access in Plesk (if disabled) and connect as your hosting system user.
- Change directory to your project folder, for example:
cd ~/httpdocs
# or: cd ~/httpdocs/your-app
Typical commands:
composer install
composer update
Tips:
- If you get memory errors, increase
memory_limit in Plesk PHP settings (or run Composer with a higher limit if you know what you are doing).
- Do not upload the
vendor folder by FTP if your deployment workflow installs dependencies on the server.
- After changing dependencies, clear application cache (framework-specific).
Common issues
- “composer: command not found” — Composer is not available in your shell PATH. Use the Plesk Composer tool (Option A) or install Composer locally and deploy the result.
- Wrong PHP version — check the project’s required PHP version and select it in Plesk for the domain/subdomain.