本文介绍了DDEV集成Zendguard加载程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在较旧的OXID Esales Project(4.6)中使用DDEV.现在,我必须安装 Zendguard Loader .我怎样才能做到这一点?我必须将.so文件放入容器内的php方向,并扩展php.ini.我早些时候问过有关Ioncube的问题加载程序,并且可以与DDEV-Local一起正常使用.但是我不知道如何整合zendguard loeader?有人可以帮我吗?
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?
推荐答案
- 从其网站下载Zendguard Loader.(Linux,64位,PHP5.6)
- 将压缩包放置在项目的.ddev/web-build/目录中
- 将此Dockerfile添加为.ddev/web-build/Dockerfile:
- 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
将向您显示它处于活动状态 - 阅读压缩包中提供的README.txt,并根据需要按照说明进行操作.
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.
这篇关于DDEV集成Zendguard加载程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!