Been playing around, now have php7.4.16 installed. But the extension is still a pain in the ass. I found out that i just need to install a custom php extension as i normally would.
Then use the php.ini file, set EXTENSION_DIR and EXTENSION.
But now i have a new problem.
If i set the EXTENSION_DIR with a full url like this:
EXTENSION_DIR="/path/to/extensions"
EXTENSION = "extension.so"
Then it seems to work. But if i do this:
EXTENSION_DIR="./"
EXTENSION = "extension.so"
It fails to load the extension, because php can't find it. Normally in linux ./ <-- would point to parent directory. But not in this case.
Anyone any clue?