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.
 

RoseHosting

Verified User
Joined
Feb 17, 2017
Messages
18
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
 

Jernej

New member
Joined
May 1, 2019
Messages
1
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.
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,855
Location
GMT +7.00
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
 
Top