If you are having issues with installing Imagick on your PHP 8.3 version, here are the manual steps.

In some cases you can face the issues during installation of ImageMagick for PHP, and currently, there is a bug on PHP side which causes some problems.

In the same link, thanks for the user WJNLLC we can implement it by following these steps:

  • log in to your terminal
  • cd /usr/src
  • wget https://codeload.github.com/Imagick/imagick/zip/refs/heads/master
  • unzip master
  • rm -fr master
  • mv imagick-master imagick
  • cd imagick/opt/cpanel/ea-php83/root/usr/bin/phpize
  • ./configure --with-php-config=/opt/cpanel/ea-php83/root/usr/bin/php-config
  • make
  • make test
  • make instal
  • lecho "extension=imagick.so" >> /opt/cpanel/ea-php83/root/etc/php.d/imagick.ini
  • service httpd restart
  • cd ..
  • rm -fr imagick

and now you can check the installation:

                    php -i | grep -i 'ImageMagick version'
// you should get result like this
//Imagick compiled with ImageMagick version => ImageMagick 7.1.1-23 Q16-HDRI x86_64 21803 https://imagemagick.org

//OR, run this:
php -m | grep imagick
imagick