Join the community today
Become a Member

PHP-FPM Fileinfo PHP extension

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by pamamolf, Apr 8, 2016.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    1:03 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Hi


    I am trying to install the expressionengine:

    ExpressionEngine / EllisLab

    But it needs the Fileinfo PHP extension and is not compiled/enabled on default Centminmod installation....

    How can i compile/enabe it on my Centminmod setup?

    Thank you
     
    Last edited: Apr 8, 2016
  2. rdan

    rdan Well-Known Member

    5,439
    1,396
    113
    May 25, 2014
    Ratings:
    +2,185
    Local Time:
    6:03 PM
    Mainline
    10.2
    On persistent config:
    PHPFINFO=y # Disable or Enable PHP File Info extension
     
  3. eva2000

    eva2000 Administrator Staff Member

    52,787
    12,080
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,607
    Local Time:
    8:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yup

    set in persistent config /etc/centminmod/custom_config.inc
    Code (Text):
    PHPFINFO='y'
    

    then run centmin.sh menu option 5 to recompile PHP
     
    Last edited: Apr 8, 2016
  4. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    1:03 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Ok i add it and rebuild but when i run php -i to check i can see on build command the parameter --disable-fileinfo :(

    Ok i found the issue and fix it :)

    I had to add PHPFINFO and not PHPINFO :)
     
    Last edited: Apr 8, 2016
  5. eva2000

    eva2000 Administrator Staff Member

    52,787
    12,080
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,607
    Local Time:
    8:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  6. SFLC

    SFLC Active Member

    223
    59
    28
    Dec 4, 2016
    The Canadas
    Ratings:
    +112
    Local Time:
    12:03 PM
    1
    10
    I tried this on the latest beta release and centmin hangs after when its run, so i cant even get to option 5. Is the procedure different now?
     
  7. SFLC

    SFLC Active Member

    223
    59
    28
    Dec 4, 2016
    The Canadas
    Ratings:
    +112
    Local Time:
    12:03 PM
    1
    10
    nevermind, i didnt have the ' ' around the y, epic fail on my part
     
  8. eva2000

    eva2000 Administrator Staff Member

    52,787
    12,080
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,607
    Local Time:
    8:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what were you exact steps ?

    ah ha ! though that shouldn't cause it to hang
     
  9. Jon Snow

    Jon Snow Active Member

    759
    155
    43
    Jun 30, 2017
    Ratings:
    +223
    Local Time:
    7:03 AM
    Nginx 1.13.9
    MariaDB 10.1.31
    @eva2000 any reason why this is disabled by default in CMM?
     
  10. eva2000

    eva2000 Administrator Staff Member

    52,787
    12,080
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,607
    Local Time:
    8:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    The extension needs at least 1.5 GB of free available memory to be compiled so won't work on lower memory systems and increases PHP compile time. You can add your own custom persistent config file variables to enable it prior to initial Centmin Mod installation