Strange php errors while running validate.php

please help me… i’m pulling my hairs for months with this error…

PHP Warning: PHP Startup: Unable to load dynamic library ‘ext-gd’ (tried: /usr/lib/php/20180731/ext-gd (/usr/lib/php/20180731/ext-gd: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/ext-gd.so (/usr/lib/php/20180731/ext-gd.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘ext-gd’ (tried: /usr/lib/php/20180731/ext-gd (/usr/lib/php/20180731/ext-gd: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/ext-gd.so (/usr/lib/php/20180731/ext-gd.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘ext-gd’ (tried: /usr/lib/php/20180731/ext-gd (/usr/lib/php/20180731/ext-gd: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/ext-gd.so (/usr/lib/php/20180731/ext-gd.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘ext-gd’ (tried: /usr/lib/php/20180731/ext-gd (/usr/lib/php/20180731/ext-gd: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/ext-gd.so (/usr/lib/php/20180731/ext-gd.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘ext-gd’ (tried: /usr/lib/php/20180731/ext-gd (/usr/lib/php/20180731/ext-gd: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/ext-gd.so (/usr/lib/php/20180731/ext-gd.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘ext-gd’ (tried: /usr/lib/php/20180731/ext-gd (/usr/lib/php/20180731/ext-gd: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/ext-gd.so (/usr/lib/php/20180731/ext-gd.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘ext-gd’ (tried: /usr/lib/php/20180731/ext-gd (/usr/lib/php/20180731/ext-gd: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/ext-gd.so (/usr/lib/php/20180731/ext-gd.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Component Version
LibreNMS 1.54-55-g47e4641e0
DB Schema 2019_07_09_150217_update_users_widgets_settings (140)
PHP 7.3.8-1+ubuntu16.04.1+deb.sury.org+1
MySQL 10.0.38-MariaDB-0ubuntu0.16.04.1
RRDTool 1.5.5
SNMP NET-SNMP 5.7.3

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

[OK] Composer Version: 1.9.0
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
PHP Warning: PHP Startup: Unable to load dynamic library ‘ext-gd’ (tried: /usr/lib/php/20180731/ext-gd (/usr/lib/php/20180731/ext-gd: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/ext-gd.so (/usr/lib/php/20180731/ext-gd.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘ext-gd’ (tried: /usr/lib/php/20180731/ext-gd (/usr/lib/php/20180731/ext-gd: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/ext-gd.so (/usr/lib/php/20180731/ext-gd.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘ext-gd’ (tried: /usr/lib/php/20180731/ext-gd (/usr/lib/php/20180731/ext-gd: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/ext-gd.so (/usr/lib/php/20180731/ext-gd.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘ext-gd’ (tried: /usr/lib/php/20180731/ext-gd (/usr/lib/php/20180731/ext-gd: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/ext-gd.so (/usr/lib/php/20180731/ext-gd.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘ext-gd’ (tried: /usr/lib/php/20180731/ext-gd (/usr/lib/php/20180731/ext-gd: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/ext-gd.so (/usr/lib/php/20180731/ext-gd.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘ext-gd’ (tried: /usr/lib/php/20180731/ext-gd (/usr/lib/php/20180731/ext-gd: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/ext-gd.so (/usr/lib/php/20180731/ext-gd.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘ext-gd’ (tried: /usr/lib/php/20180731/ext-gd (/usr/lib/php/20180731/ext-gd: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/ext-gd.so (/usr/lib/php/20180731/ext-gd.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘ext-gd’ (tried: /usr/lib/php/20180731/ext-gd (/usr/lib/php/20180731/ext-gd: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/ext-gd.so (/usr/lib/php/20180731/ext-gd.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Hi and welcome to LibreNMS community!

Your PHP is trying to load ext-gd lib from a custom path /usr/lib/php/201880731.

Is that path correct?

Hi,
How can I check it?