Page 1 of 1

[atomic] php-zend-guard-loader 5.5.0-1

Posted: Tue Apr 26, 2011 2:47 pm
by scott
This is the initial release for ZendGuard, the replacement for Zend Optimizer on PHP 5.3.

Description:
Zend Guard is the industry leading solution for PHP IP protection.

Zend Guard provides independent software vendors and IT managers with the ability to safely distribute and manage the distribution of their PHP applications while protecting their source code.

Zend Optimizer is a free application that runs the files encoded using Zend Guard and enhances the overall performance of your PHP applications.

To install:
yum install php-zend-guard-loader

Re: [atomic] php-zend-guard-loader 5.5.0-1

Posted: Tue Apr 26, 2011 5:31 pm
by DarkF@der

Code: Select all

php -v
Failed loading ZendGuardLoader.so:  ZendGuardLoader.so: cannot open shared object file: No such file or directory
No entry for terminal type "unknown";
using dumb terminal settings.
PHP 5.3.6 (cli) (built: Apr 19 2011 12:28:40) 
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
    with the ionCube PHP Loader v4.0.5, Copyright (c) 2002-2011, by ionCube Ltd.

Re: [atomic] php-zend-guard-loader 5.5.0-1

Posted: Tue Apr 26, 2011 7:14 pm
by hostingguy
The new package that they put out not long ago to fix this is still broken - they moved the SO to right place, but the ini file still has it with out a full path, which in my case was needed.

Code: Select all

# php -v
Failed loading ZendGuardLoader.so:  ZendGuardLoader.so: cannot open shared object file: No such file or directory
PHP 5.3.6 (cli) (built: Apr 19 2011 13:21:12)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
    with eAccelerator v0.9.6-svn358-dev, Copyright (c) 2004-2007 eAccelerator, by eAccelerator
    with the ionCube PHP Loader v4.0.5, Copyright (c) 2002-2011, by ionCube Ltd.
    with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH

^^ that is the new package

So run this:

Code: Select all

if [ -f /usr/lib64/php/ZendGuardLoader.so ]; then 
 mv /usr/lib64/php/ZendGuardLoader.so /usr/lib64/php/modules/ZendGuardLoader.so
fi
cat << EOF > /etc/php.d/zendguard.ini
zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so
; Enables loading encoded scripts. The default value is On
zend_loader.enable=1
; Disable license checks (for performance reasons)
zend_loader.disable_licensing=0
; The Obfuscation level supported by Zend Guard Loader. The levels are detailed in the official Zend Guard Documentation. 0 - no obfuscation is enabled
zend_loader.obfuscation_level_support=3
; Path to where licensed Zend products should look for the product license. For more information on how to create a license file, see the Zend Guard User Guide
;zend_loader.license_path=
EOF
and now it works ok

Code: Select all

# php -v
PHP 5.3.6 (cli) (built: Apr 19 2011 13:21:12)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
    with eAccelerator v0.9.6-svn358-dev, Copyright (c) 2004-2007 eAccelerator, by eAccelerator
    with the ionCube PHP Loader v4.0.5, Copyright (c) 2002-2011, by ionCube Ltd., and
    with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
    with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH

** note - this is for the 64 bit version, adjust your paths accordingly if your on the 32 bit version.

Re: [atomic] php-zend-guard-loader 5.5.0-1

Posted: Wed May 04, 2011 1:54 pm
by hostingguy
btw this is still an issue:

The default installation of this module doesnt work

Code: Select all


# yum -y install php-zend-guard-loader
Loaded plugins: allowdowngrade, changelog, downloadonly, fastestmirror, kernel-module, rhnplugin
Loading mirror speeds from cached hostfile
 * atomic: www2.atomicorp.com
Excluding Packages from Atomic Secured Linux 2.0
Finished
Excluding Packages from Plesk Server Administrator
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-zend-guard-loader.x86_64 0:5.5.0-2.el5.art set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================================================================
 Package                                                           Arch                                               Version                                                        Repository                                          Size
==============================================================================================================================================================================================================================================
Installing:
 php-zend-guard-loader                                             x86_64                                             5.5.0-2.el5.art                                                atomic                                             423 k

Transaction Summary
==============================================================================================================================================================================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 423 k
Downloading Packages:
php-zend-guard-loader-5.5.0-2.el5.art.x86_64.rpm                                                                                                                                                                       | 423 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : php-zend-guard-loader                                                                                                                                                                                                  1/1

Installed:
  php-zend-guard-loader.x86_64 0:5.5.0-2.el5.art

Complete!
[root@server231~]# php -v
Failed loading /usr/lib64/php/zend/ZendGuardLoader.so:  /usr/lib64/php/zend/ZendGuardLoader.so: cannot open shared object file: No such file or directory
PHP 5.3.6 (cli) (built: Apr 19 2011 13:21:12)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
    with eAccelerator v0.9.6-svn358-dev, Copyright (c) 2004-2007 eAccelerator, by eAccelerator
    with the ionCube PHP Loader v4.0.5, Copyright (c) 2002-2011, by ionCube Ltd.
    with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH