Page 1 of 1

php_ioncube_loader problems after zend install from ATR

Posted: Mon Nov 02, 2009 12:02 pm
by philx
hi,


I'm running CentOS 5 / plesk 9 box and recently installed Zend Optimizer from ATR * atomic: http://www.atomicorp.com



my main /var/log/httpd/error_log is saturated with these:

Failed loading /usr/lib/php/modules//php_ioncube_loader_lin_5.1.so: /usr/lib/php/modules//php_ioncube_loader_lin_5.1.so: undefined symbol: zend_unmangle_property_name_ex
Failed loading /usr/lib/php/zend/ZendOptimizer-5.2.so: /usr/lib/php/zend/ZendOptimizer-5.2.so: cannot restore segment prot after reloc: Permission denied



checking out

/etc/php.d/ioncube-loader.ini

there is only this line :

zend_extension=/usr/lib/php/modules//php_ioncube_loader_lin_5.2.so

and no traces of ioncube in the main php.ini


I really don't see why apache complaints about a php_ioncube_loader_lin_5.1.so when I am loading php_ioncube_loader_lin_5.2.so ????



Any guidance would be extremely helpful.


bellow is a list of unix command I did run about this:


[root@MPP002 php.d]# rpm -qa php
php-5.2.11-2.el5.art


[root@MPP002 php.d]# yum list php
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* atomic: http://www.atomicorp.com
* base: centos.mirror.transip.nl
* updates: centos.mirror.transip.nl
* addons: centos.mirror.transip.nl
* extras: centos.mirror.transip.nl
Installed Packages
php.i386 5.2.11-2.el5.art installed




/usr/lib/php/modules

-rw-r--r-- 1 root root 272104 May 17 2007 php_ioncube_loader_lin_5.0.so
-rw-r--r-- 1 root root 996008 May 17 2007 php_ioncube_loader_lin_5.1.so
-rw-r--r-- 1 root root 981988 May 17 2007 php_ioncube_loader_lin_5.2.so


[root@MPP002 modules]# php -v
PHP 5.2.11 (cli) (built: Oct 7 2009 08:32:32)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with the ionCube PHP Loader v3.1.29, Copyright (c) 2002-2007, by ionCube Ltd., and
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies


[root@MPP002 modules]# php -m
[PHP Modules]
bz2
calendar
ctype
curl
date
dbase
dom
exif
filter
ftp
gd
gettext
gmp
hash
iconv
imap
ionCube Loader
json
libxml
mbstring
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend Optimizer
zip
zlib

[Zend Modules]
Zend Optimizer
the ionCube PHP Loader




/usr/lib/php/zend


-rwxr-xr-x 1 root root 1012396 Dec 16 2008 ZendOptimizer-4.3.so
-rwxr-xr-x 1 root root 1028788 Dec 16 2008 ZendOptimizer-4.3-TS.so
-rwxr-xr-x 1 root root 1012396 Dec 16 2008 ZendOptimizer-4.4.so
-rwxr-xr-x 1 root root 1028788 Dec 16 2008 ZendOptimizer-4.4-TS.so
-rwxr-xr-x 1 root root 1075368 Dec 16 2008 ZendOptimizer-5.0.so
-rwxr-xr-x 1 root root 1099536 Dec 16 2008 ZendOptimizer-5.0-TS.so
-rwxr-xr-x 1 root root 1403000 Dec 16 2008 ZendOptimizer-5.1.so
-rwxr-xr-x 1 root root 1448576 Dec 16 2008 ZendOptimizer-5.1-TS.so
-rwxr-xr-x 1 root root 1407660 Dec 16 2008 ZendOptimizer-5.2.so
-rwxr-xr-x 1 root root 1453756 Dec 16 2008 ZendOptimizer-5.2-TS.so



[root@MPP002 php]# whereis php
php: /usr/bin/php /etc/php.ini /etc/php.d /usr/lib/php /usr/include/php /usr/share/php /usr/share/man/man1/php.1.gz



[root@MPP002 php]# locate php.ini
/etc/php.ini
/etc/php.ini.rpmnew
/etc/php.ini.saved_by_psa
/usr/local/psa/admin/conf/php.ini


[root@MPP002 php]# locate ioncube-loader.ini
/etc/php.d/ioncube-loader.ini


[root@MPP002 php]# locate ioncube
/etc/php.d/ioncube-loader.ini
/root/parallels/PSA_9.2.2/dist-rpm-CentOS-5-i386/contrib/php5-ioncube-loader-3.1-07051711.i386.rpm
/usr/lib/php/modules/php_ioncube_loader_lin_5.0.so
/usr/lib/php/modules/php_ioncube_loader_lin_5.1.so
/usr/lib/php/modules/php_ioncube_loader_lin_5.2.so
/usr/local/psa/var/cgitory/cubecart-4.2.0-2/htdocs/ioncube
/usr/local/psa/var/cgitory/cubecart-4.2.0-2/htdocs/ioncube/index.htm
/usr/local/psa/var/cgitory/mailer-6.3-4/htdocs/ioncube
/usr/local/psa/var/cgitory/mailer-6.3-4/htdocs/ioncubetest.php
/usr/local/psa/var/cgitory/mailer-6.3-4/htdocs/ioncube/LICENSE.txt
/usr/local/psa/var/cgitory/mailer-6.3-4/htdocs/ioncube/README.txt
/usr/local/psa/var/cgitory/mailer-6.3-4/htdocs/ioncube/ioncube-encoded-file.php
/usr/local/psa/var/cgitory/mailer-6.3-4/htdocs/ioncube/ioncube-loader-helper.php
/usr/local/psa/var/cgitory/mailer-6.3-4/htdocs/ioncube/ioncube_loader_win_4.1.dll
/usr/local/psa/var/cgitory/mailer-6.3-4/htdocs/ioncube/ioncube_loader_win_4.2.dll
/usr/local/psa/var/cgitory/mailer-6.3-4/htdocs/ioncube/ioncube_loader_win_4.3.dll
/usr/local/psa/var/cgitory/mailer-6.3-4/htdocs/ioncube/ioncube_loader_win_4.4.dll
/usr/local/psa/var/cgitory/mailer-6.3-4/htdocs/ioncube/ioncube_loader_win_5.0.dll
/usr/local/psa/var/cgitory/mailer-6.3-4/htdocs/ioncube/ioncube_loader_win_5.1.dll
/usr/local/psa/var/cgitory/mailer-6.3-4/htdocs/ioncube/ioncube_loader_win_5.2.dll
/var/www/atmail/install/ioncube-loader-helper.php



[root@MPP002 php]# yum search ioncube
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* atomic: http://www.atomicorp.com
* base: centos.mirror.transip.nl
* updates: centos.mirror.transip.nl
* addons: centos.mirror.transip.nl
* extras: centos.mirror.transip.nl
============================================================================================================= Matched: ioncube ==============================================================================================================
php-ioncube-loader.i386 : Project Gamera is a suite to create an application layer email firewall.
php5-ioncube-loader.i386 : PHP ionCube Loader
[root@MPP002 php]# yum update php5-ioncube-loader.i386
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* atomic: http://www.atomicorp.com
* base: centos.mirror.transip.nl
* updates: centos.mirror.transip.nl
* addons: centos.mirror.transip.nl
* extras: centos.mirror.transip.nl
Setting up Update Process
No Packages marked for Update

Re: php_ioncube_loader problems after zend install from ATR

Posted: Mon Nov 02, 2009 12:52 pm
by scott
Its ART, not ATR. ATR is Axel Thim (one of the godfathers of rpm repos), whose work in this field has been invaluable for late comers like myself.

On to your question, somewhere you are referencing another ioncube package (Im guessing you're running PHp 5.2?). You need to check your php.ini and/or other inis for any reference to it.

Re: php_ioncube_loader problems after zend install from ATR

Posted: Mon Nov 02, 2009 1:04 pm
by philx
hi scott,

> Its ART, not ATR. ATR is Axel Thim (one of the godfathers of rpm repos), whose work in this field has been invaluable for >late comers like myself.
Sorry for the confusion.


> On to your question, somewhere you are referencing another ioncube package (Im guessing you're running PHp 5.2?). >You need to check your php.ini and/or other inis for any reference to it.

Yes I run 5.2

[root@MPP002 modules]# php -v
PHP 5.2.11 (cli) (built: Oct 7 2009 08:32:32)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with the ionCube PHP Loader v3.1.29, Copyright (c) 2002-2007, by ionCube Ltd., and
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies


however I did try to locate other places where it could be referenced, but it's not in the /etc/php.ini

and not in all the ini files located there: /etc/php.d

it's a standard plesk 9.2 box, where else should I look for this ?

thanks
Philippe

Re: php_ioncube_loader problems after zend install from ATR

Posted: Mon Nov 02, 2009 1:07 pm
by philx
also when listing the php modules, I can see 2 references for ionCube Loader

one in [PHP Modules]
ionCube Loader

and another one in [Zend Modules]
the ionCube PHP Loader

could this be related to my problem ?

[root@MPP002 modules]# php -m
[PHP Modules]
bz2
calendar
ctype
curl
date
dbase
dom
exif
filter
ftp
gd
gettext
gmp
hash
iconv
imap
ionCube Loader
json
libxml
mbstring
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend Optimizer
zip
zlib

[Zend Modules]
Zend Optimizer
the ionCube PHP Loader

Re: php_ioncube_loader problems after zend install from ATR

Posted: Tue Nov 03, 2009 5:29 pm
by philx
I think I found the solution:

to restart apache I was doing:
/usr/sbin/apachectl restart

but restarting apache this way seems to ignore my modifications in

/etc/php.d/ioncube-loader.ini

what I did reading a forum on this issue is tried:

/etc/init.d/httpd restart

and this seams to have fixed the problem !!