Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Programming»PHP»How to Install ionCube Loader in CentOS 8

    How to Install ionCube Loader in CentOS 8

    RahulBy RahulMarch 15, 20202 Mins ReadUpdated:March 16, 2020

    The ionCube loader is the library used to load ionCube encoded files on the server. It is required to installed on the webserver to decode any ionCube encoded files before running. The ionCube provides a feature to encrypt your PHP script to keep them secure. It also keeps them secure from unauthorized uses.

    This tutorial will help you to configure the ionCube loader with PHP on CentOS 8.

    • How to Install Ioncube Loader in WHM/cPanel

    Prerequsities

    • Shell access to the CentOS 8 system with sudo privileges account.
    • Complete initial server setup for newly installed systems.
    • Install PHP and Apache on CentOS 8

    Step 1 – Download ionCube Loader

    First of all, download the latest ionCube loaders on your system from ioncube download page. Alternativly, you can also use the following command to download ionCube loaders archive for 64 bit systems.

    wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
    

    After downloading the file, extract it under /usr/local/ioncube directory. You can change this location as suitable for you.

    tar xzf ioncube_loaders_lin_x86-64.tar.gz
    sudo mv ioncube /usr/local/
    

    Step 2 – Enable ionCube Loader in PHP

    Edit the php.ini file and add the following line at the end of the file. To find php.ini file you can use following command.

    php -i | grep php.ini
    
    Configuration File (php.ini) Path => /etc
    Loaded Configuration File => /etc/php.ini
    

    Then find out the active PHP version on your system:

    php -v
    

    As per the above results, edit /etc/php.ini file and add the following line at the end of the file.

     zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.2.so
    

    Replace /usr/local/ioncube/ioncube_loader_lin_7.2.so file with your matching PHP version.

    Step 3 – Verify Ioncube Loader

    Let’s verify the installation and configuration of Ioncube PHP module. Run php -m command on shell.

    php -v
    
    PHP 7.2.11 (cli) (built: Oct  9 2018 15:09:36) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
        with the ionCube PHP Loader + ionCube24 v10.3.9, Copyright (c) 2002-2019, by ionCube Ltd.
    

    Conclusion

    You have successfully configured the ionCube loader with PHP on CentOS 8 operating system.

    CentOS 8 ioncube ioncube loader PHP
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Install Magento2 on Fedora 34/33
    Next Article How to Install Gradle on Ubuntu 18.04

    Related Posts

    How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04

    Updated:May 9, 20223 Mins Read

    How To Install Linux, Nginx, MySQL, & PHP (LEMP Stack) on Ubuntu 22.04

    Updated:April 7, 20227 Mins Read

    How To Install LAMP Stack on Ubuntu 22.04 LTS

    Updated:April 20, 20225 Mins Read

    How To Setup Apache, PHP & MongoDB in Ubuntu & Debian

    Updated:October 8, 20213 Mins Read

    How To Install and Use PHP Composer on Debian 11

    Updated:February 16, 20224 Mins Read

    How To Install PHP (8.1, 7.4 & 5.6) on Debian 11

    Updated:February 16, 20224 Mins Read

    2 Comments

    1. Дмитрий Пальшин on October 2, 2020 3:39 pm

      Failed loading /usr/lib64/php/modules/ioncube_loader_lin_7.4.so: /usr/lib64/php/modules/ioncube_loader_lin_7.4.so: undefined symbol: instanceof_function_ex
      PHP 8.0.0rc1 (cli) (built: Sep 29 2020 22:36:51) ( NTS gcc x86_64 )
      Copyright (c) The PHP Group
      Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies
      with Zend OPcache v8.0.0rc1, Copyright (c), by Zend Technologies

      Reply
      • Rahul on October 3, 2020 2:15 am

        It looks you are trying to load ioncube loader 7.4 with PHP 8.0. Which is not compatible. Ioncube 7.4 can be used only with PHP 7.4.

        Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Enable / disable Firewall in Windows
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.