Search code examples
phpdb2windows-subsystem-for-linux

How to install IBM DSR Client and some extensions for PHP in WSL


Im currently trying to install the IBM Data Server Runtime Client and some extensions, pdo_ibm and ibm_db2, to use in a PHP / Laravel project.

For now, I have installed WSL 2, to have a Ubuntu environment on Windows. I have also installed the latest PHP version possible and Composer, but before I go ahead, I wanted to see if its even possible. Since there is no Graphical Interface, is there any way to get such files for Ubuntu and to install the Client as well? I can easily move stuff from my "computer" to the Ubuntu system, but i am unable to find anything related, and I dont know where to start.

I do have the extensions but as DLLs, for Windows, not for Ubuntu.


Solution

  • Thank you for your answers. I ended up using a Ubuntu 20.04 in WSL2, installed xdebug and ibm_db2 and pdo_ibm with PECL, all within the CLI.