Just ran into the following error which was fixed by recompiling PHP. Just dropping it here in case others run into the same issue;
# /usr/local/php74/bin/php74 -v
php: error while loading shared libraries: libonig.so.2: cannot open shared object file: No such file or directory
Apparently this...