Learn about Centmin Mod LEMP Stack today
Register Now

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,101
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    2:31 AM
    Nginx-1.26.x
    MariaDB 10.6.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,449
    1,410
    113
    May 25, 2014
    Ratings:
    +2,204
    Local Time:
    7:31 AM
    Mainline
    10.2
    On persistent config:
    PHPFINFO=y # Disable or Enable PHP File Info extension
     
  3. eva2000

    eva2000 Administrator Staff Member

    55,225
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    9:31 AM
    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,101
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    2:31 AM
    Nginx-1.26.x
    MariaDB 10.6.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

    55,225
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    9:31 AM
    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:
    1:31 AM
    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:
    1:31 AM
    1
    10
    nevermind, i didnt have the ' ' around the y, epic fail on my part
     
  8. eva2000

    eva2000 Administrator Staff Member

    55,225
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    9:31 AM
    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

    855
    172
    43
    Jun 30, 2017
    Ratings:
    +261
    Local Time:
    8:31 PM
    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

    55,225
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    9:31 AM
    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