❤️ AZDIGI has officially updated to a new blog system. However, some posts may have incorrect or mismatched images. Please click the Report article button at the bottom of the post so AZDIGI can update as quickly as possible. Thank you!

In today’s article, AZDIGI will help you install Composer on DirectAdmin with just a few simple steps that are extremely effective and can be used immediately.

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.

Usually, if you are a DirectAdmin server administrator, most of the dev team will ask you to install Composer.

II. Install Composer on DirectAdmin

By default, Composer is not pre-installed on DirectAdmin, but we must install it ourselves. To install Composer on DirectAdmin, we follow these 3 steps.

Step 1: SSH into your DirectAdmin system

To install 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 if any version of Composer is installed on your server.

Step 2: Check Composer installation

To check if Composer is installed on your server, execute the following command:

AZDIGI Tutorial
composer -V
    

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

how-to-install-composer-on-directadmin
Your server doesn’t have Composer installed.

We continue to the next step to perform Composer installation commands on DirectAdmin.

Step 3: Commands to install Composer on DirectAdmin

Installing Composer on DirectAdmin is relatively easy, perhaps because DirectAdmin is a paid control panel, the development team has simplified the configuration and use, you can perform the following 3 commands to install Composer successfully.

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

Explanation of the above commands:

  • Command 1: Move to the custombuild folder.
  • Command 2: Update custombuild script.
  • Command 3: Install composer.

Below is an image of my installation:

how-to-install-composer-on-directadmin
Install Composer on the DirectAdmin server successfully.

Now you can check with the command in step 2 again to see the result of the composer version you just installed.

AZDIGI Tutorial
composer -V
    

And here are my results:

how-to-install-composer-on-directadmin
The version of Composer installed on the server is 2.0.8.

III. Summary

As you can see, with just 3 simple steps, we have successfully installed Composer on DirectAdmin without encountering any difficulties.

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:

Share:
This article has been reviewed by AZDIGI Team

About the author

Thạch Phạm

Thạch Phạm

Đồng sáng lập và Giám đốc điều hành của AZDIGI. Có hơn 15 năm kinh nghiệm trong phổ biến kiến thức liên quan đến WordPress tại thachpham.com, phát triển website và phát triển hệ thống.

10+ years serving 80,000+ customers

Start your web project with AZDIGI