本文介绍了ionCube Loader,返回空白屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从DigitalOcean在我的VPS上安装ionCube,并且我已经运行了安装并选择了适当的选项,但是它只是返回一个带有ionCube标头的屏幕,但是它的横幅上写着重要提示:请确保脚本将在不再需要"时删除,然后写上一行"ionCube Loader向导"并且不执行任何操作.此外,使用ionCube表示尚未安装的应用程序.

I am attempting to install ionCube on my VPS from DigitalOcean and I have ran the install and selected the appropriate options but then it simply returns a screen with the header of ionCube but then it has a banner saying "IMPORTANT: Ensure that This Script Is Removed When No Longer Required" followed by a single line of writing that says "ionCube Loader Wizard" and does nothing. In addition the application that it using ionCube says it is still not installed.

推荐答案

空白的向导"页面可能表明禁用了一些PHP函数,尽管没有phpinfo();的输出,我只能猜测.

The empty Wizard page might indicate that a few PHP functions are disabled, though without the output of your phpinfo(); I can only guess.

DigitalOcean本身具有如何安装加载程序的说明,可以在此处.这些适用于大多数经过稍微改动的VPS.粗略的摘要,以防该链接不可用:

DigitalOcean themselves have instructions on how to install the Loader, which can be found here. These are applicable to most VPS with slight alterations. A rough summary in case the link isn't available:

  1. 获取并解压缩服务器上最新的Loader :(如果您不在DigitalOcean上,请选择自己的Loader 此处)

32位:

wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
tar xvfz ioncube_loaders_lin_x86.tar.gz

64位:

wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar xvfz ioncube_loaders_lin_x86-64.tar.gz

  • 找出您的扩展程序目录:

  • Find out your extensions directory:

    php -i | grep extension_dir
    

    哪个会产生类似

     extension_dir => /usr/lib/php5/20090626+lfs => /usr/lib/php5/20090626+lfs
    

  • 将Loader复制到扩展目录:

  • Copy the Loader to the extensions directory:

    PHP_VERSION=$(php -r "echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;")
    sudo cp "ioncube/ioncube_loader_lin_${PHP_VERSION}.so" /your/extensions/dir
    

    例如上一个输出:

    PHP_VERSION=$(php -r "echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;")
    sudo cp "ioncube/ioncube_loader_lin_${PHP_VERSION}.so" /usr/lib/php5/20090626+lfs/
    

  • zend_extension条目添加到php.ini.此步骤未在DigitalOcean教程中描述,似乎他们的PHP已设置为在我假设的扩展目录中加载任何扩展,因此您可能不需要这样做.

  • Add the zend_extension entry to your php.ini. This step is not described in the DigitalOcean tutorial, it seems that their PHP is set up to load any extension in the extensions directory I assume, so this might not be necessary for you.

    找出您的php.ini文件在哪里(或者更好的是,插件目录):

    Find out where your php.ini file is (or better yet, plugin directory):

      php -i | grep "Loaded Config"
      php -i | grep "Scan this dir"
    

    您将获得以下内容:

     Loaded Configuration File => /etc/php.ini
     Scan this dir for additional .ini files => /etc/php.d
    

    您可以将此条目添加到php.ini的顶部(在本例中为/etc/php.ini),或在ini目录中添加新文件00-ioncube(在本例中为/etc/php.d/00-ioncube),并具有以下内容:

    You can either add this entry to the top of your php.ini (in this case in /etc/php.ini), or add a new file 00-ioncube in your ini directory (in this case /etc/php.d/00-ioncube with this content:

    zend_extension = "<path to your ioncube loader>"
    

    以PHP 5.5和以前的路径为例:

    As an example with PHP 5.5 and the previous path:

    zend_extension = "/usr/lib/php5/20090626+lfs/ioncube_loader_lin_5.4.so"
    

  • 重新启动您的Web服务器:

  • Restart your webservers:

    service apache2 restart
    service php5-fpm restart
    

  • 请记住要从服务器上删除安装的ionCube Loader脚本,因为如果 留在服务器上,可能会带来安全隐患.

    Do remember to delete the ionCube Loader Script you installed from your server, since this might pose a security risk if left on the server.

    万一出了问题,请检查输出phpinfo();,确认安装了正确的Loader(注意线程安全性,体系结构和PHP版本),然后从此处,然后再次确保选择正确的一个.

    In case something goes wrong, check the output your phpinfo();, verify that you have the correct Loaders installed (pay attention to thread safety, architecture and PHP version) and get the Loaders manually from here, and again make sure to choose the right one.

    如果仍然无法正常运行,请检查您的error.log(通常在/var/log/apache2/error.log/var/log/httpd/error_log中)以查看是否正在加载装载程序.如果出现任何问题,也可以使用 ionCube支持.

    If it still does not work, check your error.log (typically in /var/log/apache2/error.log or /var/log/httpd/error_log) to see if the Loader is being picked up. The ionCube Support is also available should there be any problems.

    这篇关于ionCube Loader,返回空白屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

    09-02 21:06