Join the community today
Become a Member

About fileinfo php module & centmin

Discussion in 'Introductions' started by Buddycat, Jul 22, 2016.

  1. Buddycat

    Buddycat New Member

    1
    1
    3
    Jul 22, 2016
    Ratings:
    +1
    Local Time:
    11:20 AM
    Sorry for my poor english
    First thanks for your well done job !

    I just want to share my experience with centmin, if it can help anybody.

    I have a serveur with more then 32gb memories and raid hardware
    First time I have install centmin --> NO fileinfo module

    After that I have tried to upgrade PHP (using menu option 5) many times
    and modify centmin.sh PHPFINO and try to force the option fileinfo in the php_configure.inc --> No succsess

    PS --> The command in php_configure.inc "awk '/SwapTotal: / {print $2}' /proc/meminfo | head -n1" report 523kb of memories

    And finally, after hours, I found some config files in the cache srv-setup that overwrite allways my config with --disable-fileinfo

    After deleting srv-setup --> I have got my fileinfo module installed !!!
     
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    30,940
    6,913
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,409
    Local Time:
    8:20 PM
    Nginx 1.13.x
    MariaDB 5.5
    welcome @Buddycat to Centmin Mod Community

    Did you install centmin mod 123.08stable or 123.09beta01 ? When was centmin mod installed ? With regards to php fileinfo has since July 7th, 2016 improved detection for memory limits for php fileinfo support - see Install - Install Centmin Success but cant install composer | php | Centmin Mod Community and here (auto 1gb swap creation)

    You got fileinfo disabled as swap size was below 1023000 bytes
    Code (Text):
    if [[ "$CHECKLOWMEMPHP" = "1" && "$TOTALSWAPMEM" -lt '1023000' ]]; then
    FILEINFOOPT=" --disable-fileinfo"
    else
    FILEINFOOPT=""
    fi
    


    Did you create swap file yourself prior to Centmin Mod install ?

    looks like the check after this is a bug as it only takes into account swap size and not memory installed size - will fix that soon
    Code (Text):
    # let centmin.sh set PHPFINFO variable override the
    # low memory CHECKLOWMEMPHP variable check
    if [[ "$PHPFINFO" = 'n' ]]; then
      FILEINFOOPT=" --disable-fileinfo"
    elif [[ "$TOTALSWAPMEM" -lt '1023000' ]]; then
      FILEINFOOPT=" --disable-fileinfo"
    else
      FILEINFOOPT=""
    fi
    


    You also might want to try the 123.09beta01 build as it will be next stable release and well has alot of improvements if you check 2nd post change log at Beta Branch - Centmin Mod .09 beta branch Testing

    Threads you might want to participate in ;)

    Threads & Info To Bookmark



    Threads to read, pages to bookmark and threads to watch/subscribe to get to know Centmin Mod would include:

    Premium Membership


     
  3. eva2000

    eva2000 Administrator Staff Member

    30,940
    6,913
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,409
    Local Time:
    8:20 PM
    Nginx 1.13.x
    MariaDB 5.5
    @Buddycat fixed in update for both stable and beta builds Beta Branch - revise PHPFINFO calculations for 123.09beta01 | Centmin Mod Community :)

    Upgrading Centmin Mod Code to Latest Version



    Getting Started Guide step 19 outlines also how to keep Centmin Mod code updated or how to switch version branches.

    Centmin Mod LEMP stack's script code is constantly updated for improvements, bug fixes and security fixes so keeping the Centmin Mod code up to date is important. With Centmin Mod 1.2.3-eva2000.08) (123.08stable) and higher releases, a newly added centmin.sh menu option 23 allows much easier code updates and version branch swicthing via Git backed environment you can setup. For full details read the following links:
     
    Last edited: Jul 22, 2016
  4. eva2000

    eva2000 Administrator Staff Member

    30,940
    6,913
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,409
    Local Time:
    8:20 PM
    Nginx 1.13.x
    MariaDB 5.5