Change environment variable for libxml2?

Nextcloud version 11.0.3:
Operating system and version QNAP OS
Apache or nginx version _Apache 2.4.25 _:
PHP version ??:
Is this the first time you’ve seen this error?: no

hi, i try to migrate from OC 8.1 to NC 11, at this moment i installed the NC and i can run it on my qnap, but i have a old version of libxml2 [2.6.30] and can’t access to it, below the message error.

È richiesta almeno la versione 2.7.0 di libxml2. Quella attualmente installata è la 2.6.30.

Per risolvere questo problema, aggiorna la tua versione di libxml2 e riavvia il server web.

I find and install an up-to-date version of libxml2[2.9.4] through opkg.

[~] # opkg files libxml2
Package libxml2 (2.9.4-1) is installed on root and has the following files:

Now I wonder what would be the cleanest solution to launch NC? starter it by a script that changing a environment variable to read the newest version of libxml2 library? Is the better solution? thx

What QNAP are you running as I am trying to install on a TS-831X and not getting any where with it.

Heard that the new CPU (X31) is not supported…

Thank you