DirectAdmin: How to install PHP GMP

PHP GMP
PHP GMP

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.

Comments