-
Hello all I need to collaborate on a web project that has the following required php extensions (excerpt from composer.json):
Some of these are not standard in the ddev webserver php, notably mailparse and some others. I tried adding php-mailparse to webimage_extra_packages, but this did nothing. I assumed it did not activate on compile/runtime, but I have no idea how to fix that. I tried adding a Dockerfile in the web-build folder that I copied from a colleague that uses standard docker (for a webdevops/php-apache-dev:8.1 image), but that errors on all kinds of commands. Any suggestions on how to get those extensions working? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Not sure why you asked this twice (here and https://github.com/drud/ddev/discussions/4684) so we'll go with it here. But you almost certainly need To add
Change the php version as needed. |
Beta Was this translation helpful? Give feedback.
Not sure why you asked this twice (here and https://github.com/drud/ddev/discussions/4684) so we'll go with it here.
The docs are in https://ddev.readthedocs.io/en/latest/users/extend/customizing-images/#adding-extra-debian-packages-with-webimage_extra_packages-and-dbimage_extra_packages
But you almost certainly need
php<phpversion>-xxx
. You'll find that most of what you need (like bcmath, curl, fileinfo, intl, json) are already in DDEV.ddev php -i
will show you that.To add
mailparse
:webimage_extra_packages: [php8.1-mailparse]
Change the php version as needed.