Installing PHP's Imagick (PECL Library) on OpenBSD

nabbisen

nabbisen

Posted on July 12, 2019

Installing PHP's Imagick (PECL Library) on OpenBSD

Introduction

Hello :)
This post is about how to install Imagick (PECL Library), the PECL Library, on OpenBSD, my favorite OS.

Body

Happily, the official package is provided:

# pkg_add pecl73-imagick
Enter fullscreen mode Exit fullscreen mode

The result is:

quirks-3.124 signed on 2019-04-15T12:10:16Z
pecl73-imagick-3.4.3p3: ok
Enter fullscreen mode Exit fullscreen mode

Also, its .ini file is created automatically:

$ ls /etc/php-7.3.sample/
... imagick.ini ...
Enter fullscreen mode Exit fullscreen mode

Create a symbolic link in order to activate the extension:

# ln -sf /etc/php-7.3.sample/imagick.ini /etc/php-7.3/
Enter fullscreen mode Exit fullscreen mode

Finally, all you have to do is restart the PHP-FPM server:

# rcctl restart php73_fpm
Enter fullscreen mode Exit fullscreen mode

Conclusion

PECL means The "P"HP "E"xtension "C"ommunity "L"ibrary.
Imagick works as interface to ImageMagick, an open-source powerful image manipulator:

Imagick is a native php extension to create and modify images using the ImageMagick API.
This extension requires ImageMagick version 6.5.3-10+ and PHP 5.4.0+.

Thank you for your reading.
Happy computing :)

💖 💪 🙅 🚩
nabbisen
nabbisen

Posted on July 12, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related