Learn about Centmin Mod LEMP Stack today
Become a Member

PHP-FPM Enabling PHP Fileinfo extension module

Discussion in 'Centmin Mod Insights' started by eva2000, May 25, 2014.

  1. eva2000

    eva2000 Administrator Staff Member

    28,385
    6,445
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,545
    Local Time:
    4:32 PM
    Nginx 1.13.x
    MariaDB 5.5
    By default Centmin Mod will install PHP with Fileinfo disabled if it detects less than 530,000 bytes of memory available. You can lower this threshold in order to compile PHP with Fileinfo enabled.

    If using vps with less than 530,000 bytes of memory and want to enable PHP Fileinfo, change and edit ISLOWMEMPHP variable on line 7 in inc/php_configure.inc to a lower value than your total physical memory available in bytes https://github.com/centminmod/centminmod/blob/master/inc/php_configure.inc#L7 and then run menu option #5 to recompile PHP

    Code:
    #############################################################
    TOTALMEM=$(cat /proc/meminfo | grep MemTotal | awk '{print $2}')
    ISLOWMEMPHP='530000'
    #############################################################
     
    Last edited: May 25, 2014
    • Informative Informative x 1