Discover Centmin Mod today
Register Now

Beta Branch add PHPFINFO_STANDALONE variable in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Feb 28, 2019.

  1. eva2000

    eva2000 Administrator Staff Member

    40,634
    9,023
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,891
    Local Time:
    5:15 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    add PHPFINFO_STANDALONE variable in 123.09beta01

    PHP fileinfo extension is natively bundled in PHP versions since PHP 5.3, but requires at least 1GB of memory to compile so PHPFINFO='n' is set to default to disable PHP fileinfo from loading natively.

    This update adds PHPFINFO_STANDALONE variable which defaults to PHPFINFO_STANDALONE='n' which can install PHP fileinfo extension as a standalone module instead of natively - it has slightly lower memory requirements for compilation but still can't be compiled on low memory systems i.e. 128MB VPS.

    This just adds another option for end users to try. You can enable PHPFINFO_STANDALONE='y' in persistent config file /etc/centminmod/custom_config.inc prior to centmin.sh menu option 5 recompiles for PHP to install fileinfo.so extension module into your PHP extension directory. Then if your server has similar cpu models/family, you can technically copy the fileinfo.so extension module from one server to the low memory VPS server's same PHP version's extension directory and setup a /etc/centminmod/php.d/fileinfo.ini settings file to load the fileinfo.so extension so that low memory VPS servers have fileinfo extension loadable. You can find the PHP installs extension directory using command below

    php-config --extension-dir

    Continue reading...

    123.09beta01 branch