How do I configure or install this - ioncube_loader_lin_5.2.so

beansbaxter

Verified User
Joined
Mar 17, 2004
Messages
218
Location
WA
When trying to load a page, I am given the following error:
Code:
Site error: index.php requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator.
How do I install or setup this on my server?
When I type in "php -v" I get the following output:
Code:
PHP 5.2.14 (cli) (built: Sep 28 2010 01:55:00) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
Do I need to add a line to my php.ini file? Or do I need to install something else on the server?

I'm running the latest version of DA on Debian 5 if it matters.

Thanks in advance.
 
It is super easy. Find your php.ini, add a line under the [Zend] and locate the loader. It does not matter where you have the loader.

For example
[ZEND]
zend_extension = /usr/ioncube/ioncube_loader_lin_5.2.so
 
You could try a

Code:
locate ioncube

For the location of your ioncube_loader.

An example in php.ini (CentOS 5.5):

Code:
[ZEND]
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so
 
Last edited:
Well, it appears that I do not have ioncube_loader installed on this server. I do not see any directory in /usr or /usr/local and I tried the find and locate command and got nothing.

How do I install this onto my server? And do I have to worry about it affecting DirectAdmin?

Thanks for the help, it is appreciated!
 
Assuming your system is x64_84. If it is i386 use this version and replace

Code:
tar xzvf ioncube_loaders_lin_x86-64.tar.gz

with:

Code:
tar xzvf ioncube_loaders_lin_x86.tar.gz

Commands:

Code:
mkdir /downloads && cd /downloads
wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar xzvf ioncube_loaders_lin_x86-64.tar.gz
mv ioncube /usr/local/
nano -w /usr/local/lib/php.ini

# Add the following:
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so

#Now check
php -v

#If it shows Ioncube without errors:
/etc/init.d/apache2 restart

Just PM me if it doesn't work (:
 
Thanks so much! That worked awesome!

Code:
PHP 5.2.14 (cli) (built: Sep 28 2010 01:55:00) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with the ionCube PHP Loader v4.0.0, Copyright (c) 2002-2010, by ionCube Ltd.
 
Back
Top