+
1 5 5
  1. #1
    Status
    Offline
      Rise Company
    Engineering and Technology
    Apr 2014
    Egypt
    4,216
    10

    CPanel install ImageMagick


    CPanel install ImageMagick
    Install Imagick on cPanel/WHM Server
    module 'imagick' already loaded in unknown on line 0


    imagick popen error remove popen from disable_functions
    Let see how to install ImageMagick on CentOS 7 Cpanel server easily.
    1st you have to remove popen from disable_functions in php.ini, otherwise, you will get this error

    disable_functions lets get started with imagick
    You can use WHM to do the installation with the following steps:
    1. Login to WHM as the root user
    2. Navigate to: Home Software Module Installers
    3. Click on the Manage link to the right of PHP Pecl
    4. Select the version of PHP from the drop-down and click Apply
    5. Under Install a PHP Pecl enter imagick (without the quotes)
    6. Click Install Now
    imagick-install end up with



    Run the following command:

    :
    [[email protected] ~]# echo 'extension=imagick.so' > /opt/cpanel/ea-php73/root/etc/php.d/imagick.ini

    Next Restart apache and php-fpm service
    now you are done

    --------------------------------------------------------------------

    You can also install the extension from WHM. Navigate to Home - Software - Module Installers, then click on the Manage button next to PHP Pecl.


    In the next screen, select the required PHP version, then click Apply.

    You can now enter imagick in the Install a PHP Pecl field, and click the Install Now button.

    The extension should be compiled quickly, look at the bottom of the log on the screen for the confirmation that it was built successfully.




    1) On WHM/cpanel
    Home Software Module Installers
    2) PHP Pecl
    3) i Selected PHP version (7.3) and apply
    4) On the install a PHP Pecl box type imagick without the quotes and click install now.

    -------------------------------------------------------------------------------



    test.php

    To test if the extension works, you can run this PHP code:

    :
    <?php
    $image = new Imagick();
    $image->newImage(1, 1, new ImagickPixel('#ffffff'));
    $image->setImageFormat('png');
    $pngData = $image->getImagesBlob();
    echo strpos($pngData, "\x89PNG\r\n\x1a\n") === 0 ? 'Ok' : 'Failed';

    ok

    404 .htaccess

    php + 5 +



    :
    https://mlocati.github.io/articles/p...s-imagick.html

    -------------------------------------------------------------------------------



    imagic php php 5.6

    :
    https://bigstep.com/blog/how-to-inst...emagick-in-whm
    https://www.supportclients.com/image...cpanel-server/
    ------------------------------------------------------------------------
    Rise Company for Engineering & Technology
    ------------------------------------------------------------------------
    Web Hosting | Web Designing | E-Marketing

    # 1 Business Services

    Web Hosting - Business Emails

    Web Design - Google Adwords

    www.rise.company | www.rise.company/emails

    :
    ! .



  2. #2
    Status
    Offline
      Rise Company
    Engineering and Technology
    Apr 2014
    Egypt
    4,216
    10

    : CPanel install ImageMagick



    Install a Perl Module Image::Magick
    ------------------------------------------------------------------------
    Rise Company for Engineering & Technology
    ------------------------------------------------------------------------
    Web Hosting | Web Designing | E-Marketing

    # 1 Business Services

    Web Hosting - Business Emails

    Web Design - Google Adwords

    www.rise.company | www.rise.company/emails

    :
    ! .



  3. #3
    Status
    Offline
      Rise Company
    Engineering and Technology
    Apr 2014
    Egypt
    4,216
    10

    : CPanel install ImageMagick

    ,
    test

    ---------------------------------------------------------

    An I figured it out my self. Yayyyyy!!

    I found that somehow there were two ImageMagick's directories on my server. Not sure how!
    I found two separate directories :
    /usr/include/ImageMagick-7
    /usr/include/ImageMagick-6

    Anyways, I wanted to try re-install ImageMagick and I found the install version using :
    :
     rpm -qa |grep ImageMagick
    which gave me following result:
    ImageMagick-6.9.10.68-3.el7.x86_64
    ImageMagick-devel-6.9.10.68-3.el7.x86_64

    I remove it using :
    :
     yum remove ImageMagick-6.9.10.68-3.el7.x86_64
    it removed the dependencies as well.

    Then I installed it again using Yum:
    :
     yum install ImageMagick ImageMagick-devel ImageMagick-perl php-devel gcc
    It should installed ImageMagick again.

    After that tried enabling the php image magick extension on php 7.4 again (manually and using cPanel) but unfortunately It failed again.

    Investigating it further I found that in the make command it was referencing the path /usr/include/ImageMagick-7 I guess it was used as well.

    I though why not installed the latest version of Imagick, so I followed the installation below :
    :
    # wget https://www.imagemagick.org/download/ImageMagick.tar.gz
    # tar xvzf ImageMagick.tar.gz
    # cd ImageMagick*
    # ./configure
    # make
    # make install

    # magick -version

    Version: ImageMagick 7.0.8-35 Q16 x86_64 2019-03-27 ImageMagick
    Copyright: 1999-2019 ImageMagick Studio LLC
    License: ImageMagick
    Features: Cipher DPC HDRI OpenMP
    Delegates (built-in): bzlib fontconfig freetype jng jpeg lzma png tiff x xml zlib

    and I guess it installed ImageMagick-7 again.

    After this installing the php extension from cpanel (module installer > install pecl) worked charm. Finally got it working!!!!!!!!!

    Not sure how I came from reinstalling 6 and installing 7. That made no sense to me after giving it a thought but I guess I was frustrated spending long hours trying to fix it, so wanted to try everything.

    :
    https://forums.cpanel.net/threads/is...hp-7-4.681589/
    ------------------------------------------------------------------------
    Rise Company for Engineering & Technology
    ------------------------------------------------------------------------
    Web Hosting | Web Designing | E-Marketing

    # 1 Business Services

    Web Hosting - Business Emails

    Web Design - Google Adwords

    www.rise.company | www.rise.company/emails

    :
    ! .



  4. #4
    Status
    Offline
      Rise Company
    Engineering and Technology
    Apr 2014
    Egypt
    4,216
    10

    : CPanel install ImageMagick



    test.php

    To test if the extension works, you can run this PHP code:

    :
    <?php
    $image = new Imagick();
    $image->newImage(1, 1, new ImagickPixel('#ffffff'));
    $image->setImageFormat('png');
    $pngData = $image->getImagesBlob();
    echo strpos($pngData, "\x89PNG\r\n\x1a\n") === 0 ? 'Ok' : 'Failed';

    ok

    404 .htaccess

    :
    https://mlocati.github.io/articles/p...s-imagick.html
    ------------------------------------------------------------------------
    Rise Company for Engineering & Technology
    ------------------------------------------------------------------------
    Web Hosting | Web Designing | E-Marketing

    # 1 Business Services

    Web Hosting - Business Emails

    Web Design - Google Adwords

    www.rise.company | www.rise.company/emails

    :
    ! .



  5. #5
    Status
    Offline
      Rise Company
    Engineering and Technology
    Apr 2014
    Egypt
    4,216
    10

    : CPanel install ImageMagick

    ------------------------------------------------------------------------
    Rise Company for Engineering & Technology
    ------------------------------------------------------------------------
    Web Hosting | Web Designing | E-Marketing

    # 1 Business Services

    Web Hosting - Business Emails

    Web Design - Google Adwords

    www.rise.company | www.rise.company/emails

    :
    ! .



  1. CPanel WHM Swap Used 100%
    Rise Company Whm / Cpanel
    : 0
    : 10-01-2021, 22:47
  2. CPanel How to run a manual whm backup
    Rise Company Whm / Cpanel
    : 0
    : 30-10-2020, 00:51
  3. CPanel whm backup to Amazon S3
    Rise Company Whm / Cpanel
    : 0
    : 29-10-2020, 15:46
  4. : 0
    : 23-06-2020, 21:45
  5. : 0
    : 18-08-2019, 23:30