If you’re looking to install ImageMagick on Amazon Linux 2023 (AL2023), the following worked for me when I needed to freshly install it.
Please take note to remove any package installations you may already have.
Packages
Install the required packages according to your requirements
Shell
ImageMagick
Install ImageMagick
Shell
Add Library
Ensure that the imagick to the libraries is loaded when php starts. Use vim or your favorite editor to create the following file.
Shell
Add Extension
Add the following line into the file and save.
Plain Text
Restart
Restart both the web server and php for changes to take effect.
Shell
ImageMagick should now be properly installed and running.