Unable to load php gd ext on 8.2

Apr 08 06:10:48 ixt php-fpm8.2[2256719]: [08-Apr-2023 06:10:48] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library ‘gd’ (tried: /usr/lib/php/20220829/gd (/usr/lib/php/20220829/gd: cannot open shared object file: No such file or directory), /usr/lib/php/20220829/gd.so (/usr/lib/php/20220829/gd.so: undefined symbol: gdImageCreateFromAvif)) in Unknown on line 0
Apr 08 06:10:48 ixt php-fpm8.2[2256719]: [08-Apr-2023 06:10:48] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library ‘gd.so’ (tried: /usr/lib/php/20220829/gd.so (/usr/lib/php/20220829/gd.so: undefined symbol: gdImageCreateFromAvif), /usr/lib/php/20220829/gd.so.so (/usr/lib/php/20220829/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Hello Sasa,

To better understand the issue you are encountering, could you please provide us with the command you executed that resulted in the error?

Thank you for your cooperation.

Nothing I tried composer install for laravel app, it failed saying i need gd extension, so I uncommented that part in ini and then got this error, have no problems with php 81