Installing with Commands
Run the following command in turn
Yum Install ImageMagick
Yum Install Imagemagick-devel
Yum Install Php-pear
The php-pear is installed to use the phpize in PECL
Yum-y Install Php-devel
2. Installing the C compiler
Yum Install GCC
If you can't install GCC, use this command:
Yum install gcc gcc-c++ autoconf automake
3. Installing Imagick
PECL Install Imagick
Prompts during installation:
Please provide the prefix of Imagemagick installation [AutoDetect]:
Note: It will require you to provide a ImageMagick installation prefix, which can be automatically detected by pressing the ENTER key.
4. Load Imagick to PHP
Find php.ini locations using Find/-name php.ini
In PHP.ini plus extension=imagick.so
5. Restart PHP-FPM and Nginx or Apache
6. Use Phpinfo () or run Php-m | grep Imagick to see if the installation was successful
7. Use the command convert-version to view the version
Convert-version
Linux installation ImageMagick and Imagick extensions