I had a project where dependencies (encrypted with ionCube) were used by my further maintainers. I didn't found any working solution for adding the ionCube Loader, so i decided to create a custom Dockerfile which runs when DDEV start. I hope you will have less trouble than me by using this just by following the instructions. 😀
- Open the
.ddev/web-build/
folder - Download the current ionCube Loader here: https://downloads.ioncube.com
- Extract the archive into this folder
.ddev/web-build/ioncube
, so all*.so
files are in the root of the directory - Create a file named
.ddev/web-build/Dockerfile
and choose a file below this text file (different PHP Versions) - Don't forget to check if the PHP version setting
php_version
is set in the.ddev/config.yaml
correct - Run the command
ddev restart
to start using the DDEV Service with the ionCube PHP extension.
This gist covers this (most common) PHP versions:
- 8.1 (
/usr/lib/php/20210902
) - 7.3 (
/usr/lib/php/20180731
) - 5.6 (
/usr/lib/php/20131226
)
If the start from DDEV fails, run the command ddev logs
and check the reasons for the shutdown.