Home WebServer PanelDirectAdmin Install Composer on DirectAdmin with 3 simple steps

Install Composer on DirectAdmin with 3 simple steps

by Thạch Phạm
Published: Last Updated on
A+A-
Reset

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:

  • Hotline 247: 028 888 24768 (Ext 0)
  • Ticket/Email: You use the email to register for the service and send it directly to: support@azdigi.com .
  • Refer to the Web Hosting service here!
Đánh giá

Tham gia nhóm hỗ trợ Server - Hosting

Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

Tham gia ngay

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