How to Install Imagick for PHP in Linux?
source link: https://www.geeksforgeeks.org/how-to-install-imagick-for-php-in-linux/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
How to Install Imagick for PHP in Linux?
Imagick is a PHP ImageMagick extension. It is a native PHP extension to create and modify images using the ImageMagick API. It is used to read, write, and convert the images in any formats including, EXR, GIF, JPEG, PDF, PNG, PhotoCD, TIFF, etc. In this article, we will learn how to install Imagick for PHP in Linux.
Prerequisite:
- PHP should already be installed.
- User with root privileges.
Installing Imagick in Linux
Follow the steps below to install Imagick for PHP in Linux:
Step 1: Check if PHP is already installed or not.
php –version
Step 2: If PHP is not installed on your Linux device, then install PHP, to do so visit Install-PHP-On-Linux.
Step 3: Update packages by using the following command:
sudo apt update
Step 4: Install Imagick for PHP on Linux using the following command:
sudo apt install php-imagick
Step 5: A prompt will appear asking you for confirmation, press ‘y’ to confirm.
Step 6: Wait for the installation process to end.
Step 7: We have successfully installed Imagick for PHP on Linux, to check if Imagick is successfully installed or not, verify using the following command:
php -m | grep imagick
In this way, we can install Imagick for PHP on our Linux devices.
Here's a complete roadmap for you to become a developer: Learn DSA -> Master Frontend/Backend/Full Stack -> Build Projects -> Keep Applying to Jobs And why go anywhere else when our DSA to Development: Coding Guide helps you do this in a single program!
Apply now to our DSA to Development Program and our counsellors will connect with you for further guidance & support.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK