How to install imagick for PHP on centos cpanel server

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to install imagick for PHP on centos cpanel server

    The imagick.so PHP module can’t currently be installed via PECL, due to it’s inability to write to /var/tmp. To get around that, you can install it manuall:

    Code:
    yum install ImageM* netpbm gd gd-* libjpeg libexif gcc coreutils make
    cd /usr/local/src
    wget http://pecl.php.net/get/imagick-3.0.1.tgz
    tar zxvf ./imagick-3.0.1.tgz
    cd imagick-2.2.2
    phpize
    ./configure
    make
    make test
    make install
    This will compile imagick.so, and move it to your extensions directory specified in php.ini. Now you’ll need to add the following to php.ini:

    Code:
    extension=imagick.so
    and restart apache:

    Code:
    /scripts/restartsrv_httpd

    WWW.9XHOST.NET
Working...
X