php oci8 2.2.0 isn’t loading – but only for for non-root user

On a ubuntu 20.04 image, I’ve installed the php oci8 extension for accessing oracle db’s.

As root, I’m able to php -m | grep oci and see that the extension is loaded.
enter image description here

However when I use a non-root user, the extension is not loaded.
enter image description here

I only get a startup error:

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

ldd seems to show that everything is accounted for

enter image description here

I’ve concluded that this is simply a permissions issue, but I have no clue where to start with that.

All of the libraries are readable by the sail user.

Source: Docker Questions