PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql.so'

I get this error quite often:

PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20170718/pdo_mysql.so (/usr/local/lib/php/extensions/no-debug-non-zts-20170718/pdo_mysql.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20170718/pdo_mysql.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20170718/pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Any ideas how to resolve it?

I have the same problem, but with other libraries: curl.so and http.so

Help anyone?

Same problem, anyone found the solution?

PHP Warning: PHP Startup: Unable to load dynamic library ‘curl.so’ (tried: /usr /lib/php/20170718/curl.so (/usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _id n2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference), /usr/lib/php/20170718/curl.so.so (/usr/lib/php/20170718/curl.s o.so: cannot open shared object file: No such file or directory)) in Unknown on line 0