Notifications from cron come every day: Cannot load the ionCube PHP Loader - it was already loaded

Follow

Comments

2 comments

  • I need more clarification is the PHP.ini to be edited and which lines need to be removed or is the file to be removed.

  • Avatar
    Alexandr Redikultsev (Edited )

    Hello, @Dundee Internet Services, Inc!

    In the example provided in the article, there is a double declaration of ioncube loader in the main php.ini file for a system PHP. How to find out what declaration is a proper one? Here is the list of declarations added by Plesk:

    # egrep -Ri ioncube /opt/plesk/php/*/etc/* | grep -v \;
    /opt/plesk/php/5.3/etc/php.d/00-ioncube-loader.ini:zend_extension=ioncube_loader_lin_5.3.so
    /opt/plesk/php/5.6/etc/php.d/00-ioncube-loader.ini:zend_extension=ioncube_loader_lin_5.6.so
    /opt/plesk/php/7.0/etc/php.d/00-ioncube-loader.ini:zend_extension=ioncube_loader_lin_7.0.so
    /opt/plesk/php/7.1/etc/php.d/00-ioncube-loader.ini:zend_extension=ioncube_loader_lin_7.1.so
    /opt/plesk/php/7.2/etc/php.d/00-ioncube-loader.ini:zend_extension=ioncube_loader_lin_7.2.so

    # egrep -Ri ioncube /etc/php* | grep -v \;
    /etc/php.d/00-ioncube-loader.ini:zend_extension=/usr/lib64/php/modules/ioncube_loader_lin_5.4.so

    As you can see, all proper declarations are in 00-ioncube-loader.ini files. If you will see something like that:

    # egrep -Ri ioncube /opt/plesk/php/*/etc/* | grep -v \;
    /opt/plesk/php/5.3/etc/php.d/00-ioncube-loader.ini:zend_extension=ioncube_loader_lin_5.3.so
    /opt/plesk/php/5.6/etc/php.d/00-ioncube-loader.ini:zend_extension=ioncube_loader_lin_5.6.so
    /opt/plesk/php/7.0/etc/php.d/00-ioncube-loader.ini:zend_extension=ioncube_loader_lin_7.0.so
    /opt/plesk/php/7.1/etc/php.d/00-ioncube-loader.ini:zend_extension=ioncube_loader_lin_7.1.so
    /opt/plesk/php/7.1/etc/php.ini:zend_extension=ioncube_loader_lin_7.1.so
    /opt/plesk/php/7.2/etc/php.d/00-ioncube-loader.ini:zend_extension=ioncube_loader_lin_7.2.so

    Then it is /opt/plesk/php/7.1/etc/php.ini file that should be adjusted. Find the line started from zend_extension=ioncube in this file and just remove the record.

    I hope this will be helpful for you!

Please sign in to leave a comment.

Have more questions? Submit a request