ioncube for Softaculous Direct Admin

Discussion in 'Web Hosting' started by digifx, Apr 10, 2010.

  1. #1
    How to install ioncube in Direct Admin ?
    I need it for installing Softaculous
    where is the php.ini ?
    I am using CentOS 5.4 64bit
     
    digifx, Apr 10, 2010 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    It's pretty easy. The toughest part is where to add in the info into the php.ini file. From a shell, do the following:
    
    cd /usr/local/src
    wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
    tar xvf ioncube_loaders_lin_x86-64.tar.gz
    mv ioncube /usr/local
    
    Code (markup):
    Now, the tough part. Default location for the php.ini file in DA is /usr/local/lib/php.ini. So, lets use an editor and we need to add a line.
    
    nano /usr/local/lib/php.ini 
    Code (markup):
    Start looking for the zend_extension section. Add this line in prior to it:
    
    zend_extension = /usr/local/ioncube/ioncube_loader_lin_xxxx
    Code (markup):
    xxxx would be your php version. Once done, save it, and you should be all set.

    Chris
     
    RHS-Chris, Apr 10, 2010 IP