I'm trying to migrate two web apps on single server(debian10), both require different versions of php, and both require cURL extensions to work properly.
php5.6-curl uses libcurl v3
php8.1-curl uses libcurl v4
Firstly I've installed php5.6-curl, and when I tried to install php8.1-curl - apt throws notification that The following packages have unmet dependencies: php8.1-curl : Depends: libcurl4 (>= 7.56.1) but it is not going to be installed
If i use -f on apt, it removes php5.6-curl...
What is the most elegant way to make those two libcurl libraries available on single system?
Thanks, Robert
edit: As far as I can see, the problem is that libcurl3 and libcurl4 share the same file /usr/lib/x86_64-linux-gnu/libcurl.so.4and it changes when package is reinstaled (libcurl3<->libcurl4). The php[5.6,8.1]-fpm tries to load library, the one that gets improper libcurl.so.4 version fails and php can not use that module.
Maybe there an elegant method to force 4eg php5-curl binaries to use library from user defined path?