imagick crash with PHP 5.3

前端 未结 3 2022
情话喂你
情话喂你 2021-02-20 13:06

I\'m getting this error:

The connection to the server was reset while the page was loading.

This only occurs when I try to load an i

相关标签:
3条回答
  • 2021-02-20 13:10

    I just got the same error in my new server, if using PHP "new Imagick("$imagebath")"

    the fix is:

    set "php.ini" "memory_limit = 256M" (or more, it was 128, it's not enough), error log: "Out of memory in UB xxx: OOM killed process x (httpd)..." So the request was reset to browser.

    0 讨论(0)
  • 2021-02-20 13:25

    There is similar problem: Imagick constructor crashes PHP/CGI

    I've had the same issue today. You have to install version of Image Magick no higher than 6.6.4.0 - next builds are made using VC10 which seems to be incompatible with Apache VC9 + PHP5.3.x VC9.

    Some comments on this: http://valokuva.org/?p=161#comment-20707

    You can get older releases of Image Magick here: http://image_magick.veidrodis.com/image_magick/binaries/

    And remember to reboot windows after installing Image Magick

    0 讨论(0)
  • 2021-02-20 13:26

    In PHP 5 the file has to be php5.ini
    Add these lines in php5.ini

    post_max_size = 48M
    file_uploads = On
    upload_max_filesize = 192M
    

    You can set the sizes to whatever you want.

    0 讨论(0)
提交回复
热议问题