requires the ionCube PHP Loader ioncube_loader_lin_5.2.so Help needed

SwitchMIA VPS

Verified User
Joined
Feb 10, 2010
Messages
35
I just can't get it to work, I switch to all php's from 4 to 5 cgi to cli. any help will be great

Error: requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator.

[root@main ~]# php -v
PHP 5.2.12 (cli) (built: Feb 10 2010 15:19:17)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

[Zend]
zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.2.so
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
zend_optimizer.version=3.3.3
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
 
That doesnt show that its loaded at all. Are you sure your editing the correct php.ini file.

If it is indeed loaded the output of php -v will say "Zend Optimizer Loaded"

Example like my server:

Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
 
That doesnt show that its loaded at all. Are you sure your editing the correct php.ini file.

If it is indeed loaded the output of php -v will say "Zend Optimizer Loaded"

Example like my server:

Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies

i was thinking the same, but i edit both /usr/local/Zend/etc/php.ini and the main
 
You can find your current config file with the following command:

php -i | grep php.ini

this should give you the following output:

Configuration File (php.ini) Path => /usr/local/etc/php5/cgi
Loaded Configuration File => /usr/local/etc/php5/cgi/php.ini
 
You can find your current config file with the following command:

php -i | grep php.ini

this should give you the following output:

Configuration File (php.ini) Path => /usr/local/etc/php5/cgi
Loaded Configuration File => /usr/local/etc/php5/cgi/php.ini

your correct..

but i don't see zend..

# php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/etc/php5/cgi
Loaded Configuration File => /usr/local/etc/php5/cgi/php.ini

php.ini ends

soap.wsdl_cache_ttl=86400

; Local Variables:
; tab-width: 4
; End:
 
On one of my non DA servers there are 2 php.ini files, you need to edit the cli version also. Not sure if thats your case also.

On Debian in my case it was located in : /etc/php5/cli/php.ini

i added : zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so
 
Last edited:
i swap the php5 to cli

this is the error i now get

# php -i | grep php.ini
Failed loading /usr/local/ioncube/ioncube_loader_lin_5.2.so: /usr/local/ioncube/ioncube_loader_lin_5.2.so: cannot open shared object file: No such file or directory
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/Zend/etc/php.ini
 
# php -v
Failed loading /usr/local/ioncube/ioncube_loader_lin_5.2.so: /usr/local/ioncube/ioncube_loader_lin_5.2.so: cannot open shared object file: No such file or directory
PHP 5.2.12 (cli) (built: Feb 12 2010 12:37:26)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
 
Code:
cd /usr/local
wget -O ioncube_loaders_lin_x86.tar.gz http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
tar xzf ioncube_loaders_lin_x86.tar.gz
rm -f ioncube_loaders_lin_x86.tar.gz
 
Code:
cd /usr/local
wget -O ioncube_loaders_lin_x86.tar.gz http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
tar xzf ioncube_loaders_lin_x86.tar.gz
rm -f ioncube_loaders_lin_x86.tar.gz


yup, that did it.. your the man, thank you so much.
 
Back
Top