How to install imagick for PHP on centos cpanel server

Started on the old forum in August 2012 · view the original in the archive · old links redirect here

#imagemagic #images #imagick-gd-ttf #prview

No replies · 644 views · started 14 years ago · 1 min read

Sanju Kr Developer · 104 posts #1

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:

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:

extension=imagick.so

and restart apache:

/scripts/restartsrv_httpd

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close