如何在 Ubuntu 22.04 LTS 上安装 IonCube Loader

Linux命令 Edge插件网 2年前 (2023-03-11) 512次浏览 已收录 0个评论

IonCube Loader是一个流行的PHP扩展,可以执行加密的PHP代码。这使得 PHP 开发人员可以保护他们的源代码,以免在未经他们许可的情况下被查看、修改或重新分发。如何在 Ubuntu 22.04 LTS 上安装 IonCube Loader

在 Ubuntu 22.04 LTS Jammy Jellyfish 上安装 IonCube Loader

第 1 步。首先,通过在终端中运行以下命令,确保所有系统软件包都是最新的。apt

<span class="pln">sudo apt update
sudo apt upgrade
sudo apt install wget apt</span><span class="pun">-</span><span class="pln">transport</span><span class="pun">-</span><span class="pln">https gnupg2 software</span><span class="pun">-</span><span class="pln">properties</span><span class="pun">-</span><span class="pln">common</span>

第 2 步。在 Ubuntu 22.04 上安装 IonCube Loader

默认情况下,IonCube 在 Ubuntu 22.04 基本存储库上不可用。现在运行以下命令,将最新版本的 IonCube 加载程序下载到您的 Ubuntu 系统:

<span class="pln">wget https</span><span class="pun">:</span><span class="com">//downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz</span>

接下来,使用以下命令提取下载的文件:

<span class="pln">tar </span><span class="pun">-</span><span class="pln">xvzf ioncube_loaders_lin_x86</span><span class="pun">-</span><span class="lit">64.tar</span><span class="pun">.</span><span class="pln">gz</span>

如果您看到提取的文件,您可以看到每个 PHP 版本的加载器:

<span class="pln">cd ioncube
ls</span>

您将看到类似以下内容:

<span class="pln">ioncube_loader_lin_7</span><span class="pun">.</span><span class="lit">0.so</span><span class="pln">     ioncube_loader_lin_8</span><span class="pun">.</span><span class="lit">1.so</span><span class="pln">
ioncube_loader_lin_7</span><span class="pun">.</span><span class="lit">0</span><span class="pln">_ts</span><span class="pun">.</span><span class="pln">so  ioncube_loader_lin_8</span><span class="pun">.</span><span class="lit">1</span><span class="pln">_ts</span><span class="pun">.</span><span class="pln">so</span>

第 3 步。PHP 配置文件。

下载 IonCube Loader 后,您需要将其移动到 PHP 扩展目录。此目录的位置将根据服务器上 PHP 的安装而有所不同。您可以通过运行以下命令来查找 PHP 扩展目录的位置:

<span class="pln">php </span><span class="pun">-</span><span class="pln">i </span><span class="pun">|</span><span class="pln"> grep extension_dir</span>

应会看到以下输出:

<span class="pln">extension_dir </span><span class="pun">=></span> <span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="pln">lib</span><span class="pun">/</span><span class="pln">php</span><span class="pun">/</span><span class="lit">20230151</span> <span class="pun">=></span> <span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="pln">lib</span><span class="pun">/</span><span class="pln">php</span><span class="pun">/</span><span class="lit">20230151</span>

接下来,我们通过键入以下命令来检查哪个 PHP 配置正在工作:

<span class="pln">php </span><span class="pun">-</span><span class="pln">i </span><span class="pun">|</span><span class="pln"> grep php</span><span class="pun">.</span><span class="pln">ini</span>

输出:

<span class="str">/etc/</span><span class="pln">php</span><span class="pun">/</span><span class="lit">8.1</span><span class="pun">/</span><span class="pln">cli</span><span class="pun">/</span><span class="pln">php</span><span class="pun">.</span><span class="pln">ini </span><span class="pun">(</span><span class="typ">For</span><span class="pln"> PHP CLI</span><span class="pun">)</span>
<span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">php</span><span class="pun">/</span><span class="lit">8.1</span><span class="pun">/</span><span class="pln">apache2</span><span class="pun">/</span><span class="pln">php</span><span class="pun">.</span><span class="pln">ini </span><span class="pun">(</span><span class="typ">For</span><span class="pln"> PHP </span><span class="kwd">with</span> <span class="typ">Apache2</span><span class="pun">)</span>

*如果您安装了不同版本的 PHP,则文件的位置会有所不同。

现在使用以下命令打开您的文件:php.ini

<span class="pln">nano </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">php</span><span class="pun">/</span><span class="lit">8.1</span><span class="pun">/</span><span class="pln">cli</span><span class="pun">/</span><span class="pln">php</span><span class="pun">.</span><span class="pln">ini</span>

在文件末尾添加以下行:php.ini

<span class="pln">zend_extension</span><span class="pun">=</span><span class="str">/usr/</span><span class="pln">lib</span><span class="pun">/</span><span class="pln">php</span><span class="pun">/</span><span class="lit">20230151</span><span class="pun">/</span><span class="pln">ioncube_loader_lin_8</span><span class="pun">.</span><span class="lit">1.so</span>

最后,从命令行界面检查已安装的PHP版本,您将看到PHP加载了IonCube加载器:

<span class="pln">php </span><span class="pun">-</span><span class="pln">v</span>

输出:

<span class="pln">PHP </span><span class="lit">8.1</span> <span class="pun">(</span><span class="pln">cli</span><span class="pun">)</span> <span class="pun">(</span><span class="pln">built</span><span class="pun">:</span> <span class="typ">Dec</span>  <span class="lit">6</span> <span class="lit">2022</span> <span class="lit">11</span><span class="pun">:</span><span class="lit">36</span><span class="pun">:</span><span class="lit">46</span><span class="pun">)</span> <span class="pun">(</span><span class="pln"> NTS </span><span class="pun">)</span>
<span class="typ">Copyright</span> <span class="pun">(</span><span class="pln">c</span><span class="pun">)</span> <span class="typ">The</span><span class="pln"> PHP </span><span class="typ">Group</span>
<span class="typ">Zend</span> <span class="typ">Engine</span><span class="pln"> v3</span><span class="pun">.</span><span class="lit">4.0</span><span class="pun">,</span> <span class="typ">Copyright</span> <span class="pun">(</span><span class="pln">c</span><span class="pun">)</span> <span class="typ">Zend</span> <span class="typ">Technologies</span>
     <span class="kwd">with</span><span class="pln"> the ionCube PHP </span><span class="typ">Loader</span> <span class="pun">+</span><span class="pln"> ionCube24 v10</span><span class="pun">.</span><span class="lit">4.5</span><span class="pun">,</span> <span class="typ">Copyright</span> <span class="pun">(</span><span class="pln">c</span><span class="pun">)</span> <span class="lit">2002</span><span class="pun">-</span><span class="lit">2020</span><span class="pun">,</span> <span class="kwd">by</span><span class="pln"> ionCube </span><span class="typ">Ltd</span><span class="pun">.</span>
     <span class="kwd">with</span> <span class="typ">Zend</span> <span class="typ">OPcache</span><span class="pln"> v8</span><span class="pun">.</span><span class="lit">0.3</span><span class="pun">,</span> <span class="typ">Copyright</span> <span class="pun">(</span><span class="pln">c</span><span class="pun">),</span> <span class="kwd">by</span> <span class="typ">Zend</span> <span class="typ">Technologies</span>

感谢您使用本教程在 Ubuntu 22.04 LTS Jammy Jellyfish 系统上安装 IonCube Loader。如需其他帮助或有用信息,我们建议您查看 IonCube 官方网站


Edge插件网 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:如何在 Ubuntu 22.04 LTS 上安装 IonCube Loader
喜欢 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址