Results 1 to 5 of 5

Thread: How install Intl, GMP and BCMath PHP extensions?

  1. #1
    Join Date
    Jan 2011
    Posts
    131

    How install Intl, GMP and BCMath PHP extensions?

    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.

  2. #2
    Join Date
    May 2008
    Posts
    826

  3. #3
    Join Date
    Feb 2017
    Posts
    14
    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

  4. #4
    Join Date
    May 2019
    Posts
    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.

  5. #5
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,355
    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
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •