Updating Composer Version (Firstserv)

To ensure compatibility with modern applications and frameworks, Firstserv has upgraded the default Composer version on our servers to Composer v2.

To avoid disruption for existing users relying on Composer v1, we have implemented a setup that allows both versions to coexist. By default, accounts using Composer v1 will continue to do so via a configured alias.


Switching to Composer v2

If you would like to move from Composer v1 to Composer v2, you can do so by removing the Composer v1 alias from your environment.

Using SSH, run the following command:

 
 
 
 
 
 
Shell
 
 
sed -i '/alias composer=\/opt\/firstserv\/composer1/d' .bashrc
 
 

This command removes the custom Composer v1 alias, allowing your account to use the default system version, which is Composer v2.


Important Notes

  • After running the command, you must restart your SSH session for the change to take effect
  • Once updated, all composer commands will use Composer v2 by default

Enabling SSH Access

If you do not currently have SSH access enabled on your hosting account, you will need to enable it before proceeding. Please refer to our dedicated guide for step-by-step instructions.


If you need assistance switching versions or enabling SSH, the Firstserv support team is always available to help.

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I login to my Firstserv Client Area using Firstserv Identity?

Accessing Your Firstserv Client Area Please note that your Firstserv Client Area is different...

How to Contact Firstserv (Sales & Support) and What Information to Provide

Contacting Support or Sales Before reaching out, we recommend checking our Knowledgebase,...

How do I login to my hosting's cPanel control panel?

Accessing cPanel (Firstserv) cPanel is where you manage and configure the features of your...

How much CPU and RAM does my website need?

How Much CPU and RAM Does Your Website Need? (Firstserv Guide) Choosing the right hosting...

Firstserv hosting plans - account resource limits

Unlimited Website Plans (Firstserv) Usage Policy All Firstserv Cloud and Unlimited hosting...