问题
I'm using DDEV in an older OXID Esales Project (4.6). Now I have to install the Zendguard 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. I asked earlier about the Ioncube loader and that works fine with DDEV-Local. But I don't know how to integrate the zendguard loeader? Can someone help me?
回答1:
- Download the Zendguard Loader from their website. (Linux, 64-bit, PHP5.6)
- Place the tarball in your project's .ddev/web-build/ directory
- Add this Dockerfile as .ddev/web-build/Dockerfile:
ARG BASE_IMAGE
FROM $BASE_IMAGE
ADD zend-loader-php5.6-linux-x86_64_update1.tar.gz /etc/php/5.6
RUN echo "zend_extension=/etc/php/5.6/zend-loader-php5.6-linux-x86_64/ZendGuardLoader.so" >>/etc/php/5.6/mods-available/zendguardloader.ini
RUN phpenmod zendguardloader
ddev start
.ddev exec php --version
will show you that it's active- Read the README.txt provided in the tarball and follow instructions as needed.
来源:https://stackoverflow.com/questions/65852763/ddev-integration-zendguard-loader