Zend Guard & IonCube not working

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
25,033
Location
California
Neither ZendGuard nor IonCube show up in phpinfo.php on a new server, though both are listed properly at the bottom of my php.ini file.

By properly, I mean in the same place, at the bottom, as they are in a working system. Working system runs PHP 5.3.10, non working system runs PHP 5.3.14.

New install. No database existed before running the build. Can't have fun; it didn't work .

CentOS 6.2

PHP version 5.3.14, running as CLI for now (will convert to mod_ruid2 if I can get this to work). working system, running PHP 5.3.10 is currently running mod_ruid2.

Any ideas?

Jeff
 
I had the same problem with you yesterday and I fixed it.

For the Zend Guard:
1. Download the tar file and untar the all files to /usr/local/src/zend
2. Copy the following code and paste it at the bottom of your php.ini
Code:
[Zend Guard Loader]
zend_extension=/usr/local/src/zend/ZendGuardLoader.so
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support=15
zend_loader.license_path=
3. Restart your httpd

For the ionCube Loader, actually when you download ionCube 4.0.10. They were already compiled for all PHP versions including PHP 5.3. Check your ionCube part in your php.ini file, you may see something like this:
Code:
[ionCube Loader]
zend_extension=/usr/local/src/ioncube/ioncube/ioncube_loader_lin_5.2.so
Change it to ioncube_loader_lin_5.3.so and restart the httpd then you are golden.
 
Thanks, akymakr. I'll give it a try. Hopefully it'll solve the problem.

I've upgraded your membership to Verified User so you'll no longer need to go through the captcha process to post.

Jeff
 
Did you install ioncube using custombuild? If not, why don't you use custombuild? Remember to set: ioncube=yes in options.conf

@akymakr, ioncube loaders newest version is now 4.2.2, if you install using custombuild, then you will get the newest version.
 
Did you install ioncube using custombuild? If not, why don't you use custombuild? Remember to set: ioncube=yes in options.conf
I think I did, but it was last night, so I'll look again now.
@akymakr, ioncube loaders newest version is now 4.2.2, if you install using custombuild, then you will get the newest version.
I'll look carefully at this as well.

Thanks.

Jeff
 
I ended up doing this:

I removed all ioncube related files from the server, then ran the following custombuld commands:
Code:
./build update_data
./build update
./build versions
./build clean
./build update_versions
 ./build ioncube d
 ./build apache d

Ended up with this code at the bottom of my php.ini file:
Code:
zend_extension=/usr/local/lib/ioncube_loader_lin_5.3.so
and ioncube appears in phpinfo.php.

Then I ran:
Code:
./build zend d
This line appears at the bottom of php.info, below the ioncube loader line:
Code:
zend_extension=/usr/local/lib/ZendGuardLoader.so
but ZendGuard still not working.

However, after an apache restart both ioncube and ZendGuard are working.

Voila! :)

@akymakr:

Note I only needed the two single reference lines; nothing else. If you know what the other lines do, why I'd use them, or why I might want a special section each for both ZendGuard and for ionCube, please feel free to explain.

Also note that upon thinking about it, I'd never link to working code in a subdirectory of any src directory because I'd expect that I and any admin working on the same server might at any time in the future delete the contents of any and all src directories if necessary to regain usable space.

@ditto,

I did use custombuild, and I don't know why things didn't work the first time around; might have been something simple like restarting apache :( .

How do I know which version of ioncube loader I've got? Yes, I'm using custombuild, but I don't see how I can tell which version.

When I try
Code:
./build versions
I don't see any information at all for ioncube, but I do see these error lines:
Code:
Jul 10 14:44:55.985 [1306] error: Socket version 1.95 required--this is only version 1.82 at /usr/local/share/perl5/IO/Socket/SSL.pm line 71.
Jul 10 14:44:55.985 [1306] error: Can't locate IO/Socket/IP.pm in @INC (@INC contains: /usr/share/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5) at /usr/local/share/perl5/IO/Socket/SSL.pm line 85.
I wonder what else may be broken. Any ideas?

Jeff
 
I don't know about those errors, hopefully someone else does. I only wanted to reply about your comment on Ioncube loaders. To my knowledge there is not any way to use custombuild to see wich version of ioncube you have. All you can do is run ./build options , but there it will display the ioncube version that is available in custombuild, not the version you currently would have. Also when upgrading ioncube in custombuild when there is a new version, it is also needed to delete ioncube_loaders_lin_x86-64.tar.gz before doing ./build ioncube , if not it will not download the new version. I think that problem is because there is no version number in the file name ioncube_loaders_lin_x86-64.tar.gz , so the file name never changes. I think you already know all about these things, but I mention it because it might be useful for someone else.
 
Jeff,

that is spamassassin related:

try:

Code:
perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'

OR
Code:
cpan
fforce install IO::Socket::SSL

perl -MCPAN -e shell
cpan[1]> install IO::Socket::IP

Regards
 
Back
Top