Home WebServer PanelDirectAdmin How to install GMP PHP Extension on DirectAdmin

How to install GMP PHP Extension on DirectAdmin

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

During the operation of the DirectAdmin server, you will receive a lot of requests from the customer service fee or the dev side of the website design… There will be a requirement to install the GMP PHP Extension on DirectAdmin. This article will be the solution for you.

I. Overview

By default, when installing DirectAdmin on your VPS/Server, DirectAdmin only installs PHP 7.3 version. This version only has basic PHP Extensions, including the lack of OPcache, Zend Guard

If you are using the free control panel or using other simple scripts, installing a new PHP Extension will be very difficult, but for DirectAdmin, which is a paid control panel, everything is much easier.

To install GMP PHP Extension on DirectAdmin, we follow the next steps.

II. Install GMP PHP Extension on DirectAdmin

To install GMP PHP Extension on DirectAdmin, we just need to operate with one step below to be successful. But only with CustomBuild 2.0.

Step 1: SSH into your DirectAdmin system

To install GMP PHP Extension 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 or upgrade the CustomBuild version for installing GMP PHP Extension on DirectAdmin.

Step 2: Check the CustomBuild version

To upgrade the DirectAdmin version, your VPS/Server needs CustomBuild 2.0 version. To check the version of CustomBuild you are using, please check out the following short tutorial:

In case your CustomBuild version is lower than 2.0 then you need to upgrade CustomBuild 1.x to 2.0 , you can check out the following tutorial:

Here is my CustomBuild version after the latest update:

install GMP PHP Extension on DirectAdmin
My version is ver: 2576 so it is completely valid to install GMP PHP Extension on DirectAdmin.

We continue to step 3 to perform the commands to install GMP PHP Extension on DirectAdmin.

Step 3: Commands to install GMP PHP Extension on DirectAdmin

Commands to install GMP PHP Extension on DirectAdmin

AZDIGI Tutorial
cd /usr/local/directadmin/custombuild
./build set_php gmp yes
./build update
./build php_gmp

Explanation of the above commands:

  • Command 1: Move to the custombuild folder.
  • Command 2: Change the PHP GMP extension pack status from No to Yes.
  • Command 3: Update CustomBuild Script.
  • Command 4: Install GMP.

Here are images during the installation process:

install GMP PHP Extension on DirectAdmin
Command 1: Move to directorycustombuild . Command 2: Change the PHP GMP extension pack status from No to Yes.
install GMP PHP Extension on DirectAdmin
Command 3: Update CustomBuild Script. Command 4: Install GMP.

So after the installation is complete, we can recheck with the following command:

AZDIGI Tutorial
php -i | grep gmp

Here is my result.

install GMP PHP Extension on DirectAdmin
Before installing GMP PHP Extension on DirectAdmin
install GMP PHP Extension on DirectAdmin
After installing GMP PHP Extension on DirectAdmin

Thus, we have completed all the steps of installing GMP PHP Extension on DirectAdmin.

III. Summary

So AZDIGI has shown the complete steps of installing GMP PHP Extension on DirectAdmin, although there are many tutorials online, most of them are old tutorials and relatively high complexity.

Hope the article is useful to you. Wishing you success.

Đá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