graphics/gd broken

From: <bruce_at_hawaii-pacific.com>
Date: Wed, 08 Jun 2022 03:47:17 UTC
Hi,

I have both php74-gd and gd installed.  When I run "service php-fpm 
onestart" I get the following output:


Performing sanity check on php-fpm configuration:
[07-Jun-2022 17:38:50] NOTICE: PHP message: PHP Warning:  PHP Startup: 
Invalid library (maybe not a PHP library) '/usr/local/lib/libgd.so' in 
Unknown on line 0
[07-Jun-2022 17:38:50] NOTICE: PHP message: PHP Warning:  PHP Startup: 
Unable to load dynamic library 'libgd.so' (tried: 
/usr/local/lib/php/20190902/libgd.so (Cannot open 
&quot;/usr/local/lib/php/20190902/libgd.so&quot;), 
/usr/local/lib/php/20190902/libgd.so.so (Cannot open 
&quot;/usr/local/lib/php/20190902/libgd.so.so&quot;)) in Unknown on line 0
[07-Jun-2022 17:38:50] NOTICE: configuration file 
/usr/local/etc/php-fpm.conf test is successful

Stopping php_fpm.
Waiting for PIDS: 1622.
Performing sanity check on php-fpm configuration:
[07-Jun-2022 17:38:50] NOTICE: PHP message: PHP Warning:  PHP Startup: 
Invalid library (maybe not a PHP library) '/usr/local/lib/libgd.so' in 
Unknown on line 0
[07-Jun-2022 17:38:50] NOTICE: PHP message: PHP Warning:  PHP Startup: 
Unable to load dynamic library 'libgd.so' (tried: 
/usr/local/lib/php/20190902/libgd.so (Cannot open 
&quot;/usr/local/lib/php/20190902/libgd.so&quot;), 
/usr/local/lib/php/20190902/libgd.so.so (Cannot open 
&quot;/usr/local/lib/php/20190902/libgd.so.so&quot;)) in Unknown on line 0
[07-Jun-2022 17:38:50] NOTICE: configuration file 
/usr/local/etc/php-fpm.conf test is successful

Starting php_fpm.
[07-Jun-2022 17:38:50] NOTICE: PHP message: PHP Warning:  PHP Startup: 
Invalid library (maybe not a PHP library) '/usr/local/lib/libgd.so' in 
Unknown on line 0
[07-Jun-2022 17:38:50] NOTICE: PHP message: PHP Warning:  PHP Startup: 
Unable to load dynamic library 'libgd.so' (tried: 
/usr/local/lib/php/20190902/libgd.so (Cannot open 
&quot;/usr/local/lib/php/20190902/libgd.so&quot;), 
/usr/local/lib/php/20190902/libgd.so.so (Cannot open 
&quot;/usr/local/lib/php/20190902/libgd.so.so&quot;)) in Unknown on line 0

libgd.so is located in /usr/local/lib, not /usr/local/lib/php/20190902/ .

Can anyone help with this?

Bruce