• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question show error unable to load dynamic library 'gd2'

Gandani

New Pleskian
Server operating system version
centos 7
Plesk version and microupdate number
Plesk Obsidian Web Pro Edition Version 18.0.45 Update #2
I Have A Problem, when update or install composer show error unable to load dynamic library 'gd2'
 

Attachments

  • Screenshot 2022-08-09 091627.jpg
    Screenshot 2022-08-09 091627.jpg
    119.4 KB · Views: 4
Looks like you have a record in PHP ini file for loading missing gd2.so module.
First make sure that is is so with:

Code:
# /opt/plesk/php/7.4/bin/php -m | grep gd

you should see something like:

Code:
PHP Warning:  PHP Startup: Unable to load dynamic library 'gd2' (tried: /opt/plesk/php/7.4/lib64/php/modules/gd2 (/opt/plesk/php/7.4/lib64/php/modules/gd2: cannot open shared object file: No such file or directory), /opt/plesk/php/7.4/lib64/php/modules/gd2.so (/opt/plesk/php/7.4/lib64/php/modules/gd2.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
gd

Find ini file with incorrect record:

Code:
# egrep -R gd2 /opt/plesk/php/7.4/etc/ -s

Then open ini file and comment line with record like:

extension=gd2
 
Back
Top