Learn about Centmin Mod LEMP Stack today
Register Now

PHP-FPM install PHP Fileinfo extension and intl PHP extension

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by dandumit, Feb 4, 2021.

  1. dandumit

    dandumit New Member

    Jan 9, 2021
    Local Time:
    1:17 AM
    hello All,
    I am getting closer to install the application (prestashop). still I need to install PHP Fileinfo extension and intl PHP extension
    I have tried to google a bit but I am afraid not to do mistakes / damage all configuration.

    Thank you
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: nginx/1.19.6 (250121-091801-centos7-ea9fcb1
    • PHP Version Installed: PHP 7.3.26
  2. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    9:17 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    intl should be installed by default you can check via command
    Code (Text):
    php --ri intl

    fileinfo see below

    To check
    Code (Text):
    php --ri fileinfo

    How much memory on your server ?
    output for command
    Code (Text):
    free -m

    For 123.09beta01 and higher, you need at least 1023000 kilobytes of total swap space and 780000 kilobytes of memory to enable fileinfo php extension due to fileinfo's native high memory compilation requirements.

    Basically fileinfo php compile via source is memory intensive. Same problem whenever you source compile PHP on any system

    If you meet the swap disk and minimum memory requirements, set in persistent config file /etc/centminmod/custom_config.inc
    Code (Text):

    then run centmin.sh menu option 5 to recompile your php version