MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: crossing on 2015-04-14, 08:24:12

Title: ioncube install failed ??
Post by: crossing on 2015-04-14, 08:24:12
Hello Mustafa, I have klox mr 7.0

I try to install ioncube using :

yum install php53u-ioncube*

Install is complete and php -v result :

php -v
PHP 5.3.29 (cli) (built: Aug 14 2014 11:50:05)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies
    with the ionCube PHP Loader v4.6.1, Copyright (c) 2002-2014, by ionCube Ltd.


but when I load php file with this content on my website :

<?php
echo var_export(extension_loaded('ionCube Loader') ,true);


when I load this file I get 'false' . I tried on cpanel panel with ioncube installes and I get 'true' with the same test.   I think that's the problem why my I got errror ( PM).

How to fix it ?

Title: Re: ioncube install failed ??
Post by: MRatWork on 2015-04-14, 08:46:51
Make sure ioncube ready for php with 'php -m' and you must see 'ioncube-loader' in listing.
Title: Re: ioncube install failed ??
Post by: crossing on 2015-04-14, 13:04:18
Make sure ioncube ready for php with 'php -m' and you must see 'ioncube-loader' in listing.

Code: [Select]
php -m
[PHP Modules]
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
geoip
gettext
gmp
hash
iconv
imap
intl
ionCube Loader
json
ldap
libxml
mbstring
mcrypt
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
pspell
readline
recode
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zip
zlib

[Zend Modules]
the ionCube PHP Loader

I don't understand why testing fail with this php file showing 'false' :

Code: [Select]

<?php
echo var_export(extension_loaded('ionCube Loader') ,true);
Title: Re: ioncube install failed ??
Post by: MRatWork on 2015-04-14, 13:05:24
Ioncube ready in your php.
Title: Re: ioncube install failed ??
Post by: crossing on 2015-04-14, 13:06:33
Then why 'false' response with php file ? How to fix it ?


Code: [Select]
<?php
echo var_export(extension_loaded('ionCube Loader') ,true);
Title: Re: ioncube install failed ??
Post by: MRatWork on 2015-04-14, 13:11:13
What's php selected in 'php used' in 'webserver configure'?.
Title: Re: ioncube install failed ??
Post by: crossing on 2015-04-14, 13:12:01
php used  53m         PHP Branch  53u_
Title: Re: ioncube install failed ??
Post by: MRatWork on 2015-04-14, 13:19:46
Because using php53m, go to '/opt/php53m/etc/php.d' via 'file manager'. Possible you will see 'ioncube-loader.nonini'. And then copy this file to 'ioncube-loader_used.ini'. After that run 'sh /scrip/restart-web -y' from ssh or 'command center' in panel.
Title: Re: ioncube install failed ??
Post by: crossing on 2015-04-14, 13:45:43
I got 'ioncube-loader.nonini'  in '/opt/php53m/etc/php.d'. What do you mean " And then copy this file to 'ioncube-loader_used.ini'" ? Like to add link to the file inside ? If so the only file called 'ioncube-loader_used.ini' in my server its here :     '/opt/php54m/etc/php.d/ioncube-loader_used.ini' and this is the content :

Code: [Select]
; Configured for PHP
zend_extension=/opt/php54m/usr/lib64/php/modules/ioncube_loader_lin_5.4.so

; For threaded Apache/PHP Implementations comment out the above
; and un-comment the following:
;
; zend_extension=/opt/php54m/usr/lib64/php/modules/ioncube_loader_lin_5.4_ts.so
;

Title: Re: ioncube install failed ??
Post by: MRatWork on 2015-04-14, 13:59:58
It's different between php54m and php53m. Using ini file with content 'zend_extension=/opt/php54m/usr/lib64/php/modules/ioncube_loader_lin_5.4.so' for php53m may trouble. Try change '54m' to 'php53m' and '5.4' to '5.3'.

Don't forget restart web with 'sh /script/restart-web -y' after change it.
Title: Re: ioncube install failed ??
Post by: crossing on 2015-04-14, 14:05:09
Meanwhile I switched to PHP 5.4 but I get the same response 'false' on that script...

# php -v
PHP 5.4.39 (cli) (built: Mar 20 2015 08:10:43)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
    with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd.


php file response 'false'

<?php
echo var_export(extension_loaded('ionCube Loader') ,true);
Title: Re: ioncube install failed ??
Post by: crossing on 2015-04-14, 14:07:48
Actually I forgot to switch 'PHP Used ' to php54m. Now the response is 'true'
Title: Re: ioncube install failed ??
Post by: crossing on 2015-04-14, 14:35:25
Thank you Mustafa. Now I need to change mariadb to mysql , the producer asked me to do it due to errors.  How can I achieve that ?
Title: Re: ioncube install failed ??
Post by: MRatWork on 2015-04-14, 14:45:26
What's you mean 'due to errors'. No reason back to use mysql instead mariadb.
Title: Re: ioncube install failed ??
Post by: crossing on 2015-04-14, 15:22:45
The main problem was database switched to 'myisam' , after I switched back to 'innodb' everything is working 99% (you know the PM problem you fixed) . Actually there is only one problem left now, admin panel for my script ( you know PM problem) loads very fast and I think some CSS content fail to load. For example when I switch from list of clients page 1 to page 2 --  initial page 1 looks perfect http://postimg.org/image/3x39h6khx/  while page 2 css is broken http://postimg.org/image/71zufg4nf/.

This is happening only one the server you have fixed, I have installed kloxo-mr 7.0 on another VPS leaving mysql ( so not mariadb) and restoring the files and I got no errors like this. Or maybe you know what you have done in order for me to restore to the old state ? (i.e. have you installed opcache for php and mod-pagespeed for apache ? anything else beside switching to myisam ?).

Title: Re: ioncube install failed ??
Post by: MRatWork on 2015-04-14, 15:59:10
It's not related to use mysql or mariadb but php (version and or their modules) and or apache module (like mod-pagespeed compatibility).

You can try disable opcache with rename their .ini to .nonini. The same way for disable mod-pagespeed where rename their .conf to .nonconf inside /etc/httpd/conf.d. Restart web after rename.
Title: Re: ioncube install failed ??
Post by: crossing on 2015-04-14, 22:08:18
I don't have any of those files there :
Code: [Select]
conf.d]# ls
define.conf           pagespeed.conf            ssl.conf
fastcgi.conf          pagespeed_libraries.conf  ssl.conf.rpmnew
fastcgi.conf.rpmnew   perl.conf                 ssl.conf.rpmsave
fastcgi.conf.rpmsave  php.conf                  suphp2.conf
fcgid.conf            php.conf.rpmnew           suphp.conf
fcgid.conf.rpmnew     php.conf.rpmsave          suphp.conf.rpmnew
fcgid.conf.rpmsave    proxy_ajp.conf            suphp.conf.rpmsave
_inactive_.conf       proxy_fcgi.conf           __version.conf
itk.conf              README                    webalizer.conf
~lxcenter.conf        rpaf.conf                 welcome.conf
mod_ruid2.nonconf     ruid2.conf
Title: Re: ioncube install failed ??
Post by: MRatWork on 2015-04-14, 22:23:10
Rename pagespeed.conf to pagespeed.nonconf and then restart-web.
Title: Re: ioncube install failed ??
Post by: crossing on 2015-04-14, 22:32:04
That fixed the problem, thank you Mustafa ! though with pagespeed.conf website was loading with blazing speed, only on ssd litespeed server I sow similar load speed :), too bad I can't use it.
Title: Re: ioncube install failed ??
Post by: MRatWork on 2015-04-14, 22:42:11
That fixed the problem, thank you Mustafa ! though with pagespeed.conf website was loading with blazing speed, only on ssd litespeed server I sow similar load speed :), too bad I can't use it.
Maybe just need modified pagespeed.conf