Home WebServer PanelDirectAdmin Upgrade Composer on DirectAdmin

Upgrade Composer on DirectAdmin

by Thạch Phạm

In this tutorial, AZDIGI will help you upgrade Composer DirectAdmin most simply and easily.

I. What is Composer?

Composer is a dependency manager for the PHP language. It is a simple and reliable tool that many developers use to manage and integrate external packages or libraries into PHP projects. As a result, they don’t have to build a webpage or web application from scratch.

Normally, if you are a DirectAdmin server administrator, most of the dev team will ask you to install Composer when they use the Laravel source code.

II. Upgrade Composer on DirectAdmin

Before upgrading Composer DirectAdmin, you must determine that your DirectAdmin server has installed Composer.

To check if your server has Composer installed, run the following command:

AZDIGI Tutorial
composer -V

If your results are as shown below, it means that your server doesn’t have Composer installed.

Your server doesn’t have Composer installed.

If you have not installed it before, you can refer to the following article:

To upgrade Composer on DirectAdmin, we follow these 2 steps.

Step 1: SSH into your DirectAdmin system

To upgrade Composer on DirectAdmin, we first need to SSH or access your VPS/server with root privileges. If you don’t know how to SSH into your VPS/Server, you can refer to the following tutorial:

After successfully SSH, we continue with step 2 to check the version installed on the server and the newer version that you can upgrade.

Step 2: Check the current Composer version and available upgrade

To check the current Composer version and available upgrade, we execute the following two commands:

AZDIGI Tutorial
cd /usr/local/directadmin/custombuild
./build versions | grep composer

Here is my result.

Check the Composer version on DirectAdmin

As you can see, the version installed on the server is Composer: Composer: 2.0.9 and the newer version you can upgrade is Composer: 2.0.11.

If you want to see the changes between Composer versions, you can check it out at the following link:

Now we come to step 2 to perform Composer upgrade commands on DirectAdmin.

Step 2: Commands to upgrade Composer DirectAdmin

These upgrade commands are relatively simple, you just need to run the following three commands:

AZDIGI Tutorial
cd /usr/local/directadmin/custombuild
./build update_script
./build composer

Explanation of the above commands:

  • Command 1: Move to the custombuild folder.
  • Command 2: Update custombuild script.
  • Command 3: Upgrade Composer to the latest version.

Below is the image when I run the above commands:


Now we can recheck the Composer version with the command:

AZDIGI Tutorial
cd /usr/local/directadmin/custombuild
./build versions | grep composer

So the Composer version has been upgraded to 2.0.11.

III. Summary

So with just two steps and a few simple commands, you have upgrade Composer on DirectAdmin successfully.

Upgrading software/programs in the process of using DirectAdmin in particular and other systems, in general, will bring many benefits. Improving security is probably the biggest benefit for the system.

Hope this article will be of help to you. Wishing you success!

See more useful articles about DirectAdmin at the following link:

If you need assistance, you can contact support in the ways below:

  • Hotline 247: 028 730 24768 (Ext 0)
  • Ticket/Email: You use the email to register for the service and send it directly to: support@azdigi.com .
  • Check out more services at AZDIGI!

Đánh giá

Bài viết cùng chuyên mục

AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign