How install Intl, GMP and BCMath PHP extensions?

blog

Verified User
Joined
Jan 28, 2011
Messages
131
Centos 6.8 Final

Php 7.0.16

Directadmin control panel

yum install php-gmp

yum install php-bcmath

yum install php-intl

result is: No package xxx available.

Thank you.
 
Run:

yum install gmp-devel

Edit the /usr/local/directadmin/custombuild/configure/ap2/configure.php70 file :

nano /usr/local/directadmin/custombuild/configure/ap2/configure.php70

The intl and bcmath extensions are bundled with PHP, so to confirm, search for:

--enable-intl
--enable-bcmath

Add:

--with-gmp \

right before the last line and save the file.

Run:

cd /usr/local/directadmin/custombuild
./build php n
 
Depending on PHP version on your server configure.php70 might be different...

configure.php70 for PHP 7
configure.php72 for PHP 7.2

etc...

Also it appears that every time I update DA with custombuild script configure.php72 would get reset for some reason, even if I'm not updating from one major PHP version to another.
 
Never change anything under /usr/local/directadmin/custombuild/configure/, instead copy it first to /usr/local/directadmin/custombuild/custom/

related:
https://help.directadmin.com/item.php?id=252
 
Back
Top