Join the community today
Become a Member

Beta Branch update python 2.7.8 & imagemagick 3.2.0RC1 PHP extension

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jul 26, 2014.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,914
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,411
    Local Time:
    2:57 AM
    Nginx 1.13.x
    MariaDB 5.5
    update python 2.7.8 & imagemagick 3.2.0RC1 PHP extension

    Continue reading...
     
  2. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    12:57 AM
    1.11
    10.2
    How can I update my live server to latest imagick module?
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,914
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,411
    Local Time:
    2:57 AM
    Nginx 1.13.x
    MariaDB 5.5
    Just edit centmin.sh variable IMAGICKPHP_VER='3.2.0RC1' https://github.com/centminmod/centminmod/blob/123.07stable/centmin.sh#L252 and then run centmin.sh menu option 15 to recompile the ImageMagick PHP extension

    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.08 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu                
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2, 5.5, 10 Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Re-install ImageMagick PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Exit
    --------------------------------------------------------
    Enter option [ 1 - 22 ] 15
    --------------------------------------------------------
     
    • Like Like x 1
  4. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    12:57 AM
    1.11
    10.2
    Done ;)
    upload_2014-7-26_12-5-11.png

    Thank You!
     
    • Like Like x 1
  5. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    12:57 AM
    1.11
    10.2
    With the latest RC i'm having some fatal error (Maximum execution time of 60 seconds exceeded) with someones uploading avatar.
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,914
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,411
    Local Time:
    2:57 AM
    Nginx 1.13.x
    MariaDB 5.5
    If you downgrade back to 3.1.2 does he get errors ? some folks upload invalid image extensions which Imagick can sometimes throw a fit over :)

    But max execution time is unusual - maybe your php-fpm wokers were under load/busy ?
     
  7. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    12:57 AM
    1.11
    10.2
  8. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,914
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,411
    Local Time:
    2:57 AM
    Nginx 1.13.x
    MariaDB 5.5
    That's crazy 938 KB sized avatar ! You allow such large sizes ? That's probably why your hit max execution limit of 60 seconds I suspect
     
  9. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    12:57 AM
    1.11
    10.2
    Yes I can upload 1mb image but xenforo minify it to only below 100KB for jpg and png files.
     
  10. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,914
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,411
    Local Time:
    2:57 AM
    Nginx 1.13.x
    MariaDB 5.5
    Well if alot of members are doing this, I can see why you're hitting max children limits your reported as those members hog the php-fpm child alot longer than normal while uploading such images - especially if you allow for attachments of such size too. You'd need to raise your php.ini max_execution time limit from 60 seconds to something like 120 seconds.

    btw, how fast is that user's ISP internet connection on the upload side ?

    Again to confirm, if you downgrade back to 3.1.2 does he get errors ?
     
  11. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    12:57 AM
    1.11
    10.2
    My members maximum avatar file size is only 100kb, and my attachment maximum limit is 2MB.
    I can freely upload 1MB file jpg/png as Avatar because XenForo will minify it after upload.
     
  12. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    12:57 AM
    1.11
    10.2
    I don't bother downgrading my imagick :D
    I just tell my members to avoid large gif image :)
     
  13. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,914
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,411
    Local Time:
    2:57 AM
    Nginx 1.13.x
    MariaDB 5.5
    the problem is PHP-FPM itself processes that 938KB first at upload time, that is where you're timing out
     
  14. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    12:57 AM
    1.11
    10.2
    What application use python by the way?
    And How can I update mine also?
     
  15. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,914
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,411
    Local Time:
    2:57 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  16. CarlosMST

    CarlosMST Member

    43
    0
    6
    Aug 9, 2014
    Ratings:
    +0
    Local Time:
    11:57 AM
    @eva2000 I have a problem with imagick installed by default in latest version of Centmin Mod v1.2.3-eva2000.07
    When I try to upload an "ANIMATED" GIF avatar, not works, I cant press the Okay button! after upload image!
    The same problem occurs here in Centmin Mod Community when I'm trying to upload an animated gif avatar with any size, any dimension, little or big is the same result cant upload it.

    How to fix this problem @eva2000, @RoldanLT ?

    Thanks.

    Edit: Add "ANIMATED" before GIF avatar :)
     
    Last edited: Oct 4, 2014
  17. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,914
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,411
    Local Time:
    2:57 AM
    Nginx 1.13.x
    MariaDB 5.5
    most common cause of that is the gif avatar isn't a valid gif extension format file. Some folks might use a png or jpg format file and just rename the extension to gif and think that would work. ImageMagicK won't work with such files. You need to properly convert the image. If you install freeware graphics app called irfanview and load an invalid extension image, it will prompt you to rename it back to the proper format extension - the best way to confirm if your avatar gif is valid

    can you link to that avatar gif from your server so I can download it and try as well
     
  18. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,914
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,411
    Local Time:
    2:57 AM
    Nginx 1.13.x
    MariaDB 5.5
    gif works fine testing

    centmin-mod-logo75px.gif
     
  19. CarlosMST

    CarlosMST Member

    43
    0
    6
    Aug 9, 2014
    Ratings:
    +0
    Local Time:
    11:57 AM
    I think my gif is valid... But now I'll try your suggested app!
    Could you share a VALID gif avatar or try by yourself please here in centminmod community?
    Thanks.
     
  20. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,914
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,411
    Local Time:
    2:57 AM
    Nginx 1.13.x
    MariaDB 5.5
    Just switched back to my old gif avatar fine :)

    btw, i have ngx_pagespeed enabled on this forum so displayed gif avatar gets converted to jpg and eventually webp format