I'm using DDEV to develop an OXID Esales Project. It's very comfortable to work with but now I have to install the Ioncube Loader. How can I do that? I have to put the .so file into the php direction inside the container and extend the php.ini. But I don't know how? Can someone help me?
Project: OXID E-Sales
- php7.1
- mysql5.7
- MacOS
- DDEV
[Note: This will never work on arm64 machines like the Mac M1, because ioncube provides only amd64/x86-64 binaries for their extension. If you need to bring something back to life from the past you can do it in the amd64 environment of gitpod.io for example.]
You could do this manually inside the web container each time you did a
ddev start, but that doesn't sound like much fun.Instead, we'll incorporate all the required changes into the add-on Dockerfile see docs.
Put these contents in your project's .ddev/web-build/Dockerfile and then it will (one time) build up your ddev-webserver image with the ioncube .so loader you need and the PHP configuration you need. This is for PHP 7.1 as you said, you'd change the PHP_VERSION for some other version.