I want to keep these here

When you can’t crop the image for your header for your WordPress Page

After you install your WordPress, and if you face an error like this, and if you can’t crop new image for your header on your dashboard,

/var/www# php -v

PHP Warning: PHP Startup: Unable to load dynamic library ‘imagick.so’ (tried: /usr/lib/php/20240924/imagick.so (/usr/lib/php/20240924/imagick.so: undefined symbol: php_strtolower), /usr/lib/php/20240924/imagick.so.so (/usr/lib/php/20240924/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 8.4.0RC3 (cli) (built: Oct 30 2024 11:34:47) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.4.0RC3, Copyright (c) Zend Technologies
with Zend OPcache v8.4.0RC3, Copyright (c), by Zend Technologies

==========================

use following command

php –ini

Check for GD in php.ini

  1. Edit the PHP-FPM php.ini File: Open the main php.ini for PHP-FPM:
    sudo nano /etc/php/8.4/fpm/php.ini
  2. Look for extension=gd: Use the search function (usually CTRL + W in nano) to locate any lines that mention extension=gd.
  3. Comment Out Duplicate Entry: If you find extension=gd in php.ini, comment it out by adding a semicolon (;) in front of it: php.ini
    ;extension=gd
  4. Save and Exit: Save the file and exit the editor.
  5. Restart PHP-FPM: Restart PHP-FPM to apply the change:
    sudo service php8.4-fpm restart

 


Posted

in

,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *