Question
Is ImageMagick available to install through PECL in PHP 8.3?
Answer
The PECL package for ImageMagic has not been updated upstream and does not provide ImageMagick for PHP 8.3 at this time. ImageMagick can be installed on PHP 8.1 and 8.2 through PECL as normal. ImageMagick for PHP 8.3 can be manually downloaded, compiled, and installed.
Please note that the following instructions are provided as a guide. Manual installation of PHP Extension software is not supported by cPanel directly. If you have any issues with the commands below, we recommend you reach out to your System Administrator for direct assistance.
- Use PECL to download the ImageMagick source code:
/opt/cpanel/ea-php83/root/usr/bin/pecl download imagick
- Extract the archive and navigate to the source folder:
tar -xzvf imagick-3.7.0.tgz
cd imagick-3.7.0
- Prepare the source code for compilation and installation:
/opt/cpanel/ea-php83/root/usr/bin/phpize
./configure --with-php-config=/opt/cpanel/ea-php83/root/usr/bin/php-config
- Make and install the plugin:
make && make install
- Add ImageMagick as a loaded extension through PECL:
echo "extension=imagick.so" >> /opt/cpanel/ea-php83/root/etc/php.d/zzzzzzz-pecl.ini
- ImageMagick is installed in PHP 8.3. It will not show up in the list of PECL extensions managed by cPanel as it was manually installed, but the functionality is present nonetheless.
Comments
0 comments
Article is closed for comments.