DirectAdmin: How to install PHP GMP
![PHP GMP](/_next/image?url=https%3A%2F%2Fassets.harrytang.xyz%2Fprod%2Fphp_gmp_9f80ad063b.png&w=3840&q=75)
Introduction
This guide shows you how to install PHP GMP on a DirectAdmin server.
Prerequisites
- A running DirectAdmin server.
- Basic knowledge of Linux OS.
Install PHP GMP
SSH to your server and run the following commands:
yum install gmp-devel
cd /usr/local/directadmin/custombuild
mkdir -p custom/fpm
cp -fp configure/fpm/configure.php71 custom/fpm/configure.php71
Then add --with-gmp
line to the end of the custom/fpm/configure.php71
file.
Next, build php:
./build php n
Finally, restart apache.
Ref: https://help.directadmin.com/item.php?id=252&in3=--with-gmp&in1=fpm&in2=configure.php71
Conclusion
PHP GMP is now installed on your DirectAdmin.