Install phpSHIELD/SourceGuardian PHP encoders

Here you can find tutorials and notes for server-side maintenance/configuration

Install phpSHIELD/SourceGuardian PHP encoders

Postby lik » Fri Jul 09, 2010 2:33 pm

Taken from the official phpSHIELD site:
phpSHIELD is a premier php Encoder product, originally developed in 2003. In 2006 phpSHIELD joined forces with Inovica Ltd, developer of the SourceGuardian PHP Encoder and we integrated our system with theirs.


General installation guide can be found on the official SourceGuardian site:

http://www.sourceguardian.com/loaders.html

Script which was written by the developers to check/install:
Code: Select all
wget "http://www.sourceguardian.com/ixeds/sg4-howto-install.zip"


Example installation:

Code: Select all
cd /root/
wget "http://www.sourceguardian.com/ixeds/ixed4.all.tar.gz

Find PHP extension_dir in your current environment:
Code: Select all
php -i| grep php.ini
Loaded Configuration File => /usr/local/lib/php.ini

Code: Select all
grep extension_dir /usr/local/lib/php.ini
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
; extension_dir directive above.

Code: Select all
cd /usr/local/lib/php/extensions/no-debug-non-zts-20060613
mkdir ixed

Unpack required modules which match your current OS/arch into ixed directory.
Code: Select all
cd ixed
ls -1

ixed.4.3.lin
ixed.4.3ts.lin
ixed.4.4.lin
ixed.4.4ts.lin
ixed.5.0.0.lin
ixed.5.0.0ts.lin
ixed.5.0.1.lin
ixed.5.0.1ts.lin
ixed.5.0.2.lin
ixed.5.0.2ts.lin
ixed.5.0.lin
ixed.5.0ts.lin
ixed.5.1.lin
ixed.5.1ts.lin
ixed.5.2.lin
ixed.5.2ts.lin
ixed.5.3.lin
ixed.5.3ts.lin

Having done this you need to edit php.ini to add the extension that is needed. First, you needed to figure out whether Thread Safety on or off.
Code: Select all
php -i | grep "Thread Safety"
Thread Safety => disabled

Find the PHP version:
Code: Select all
php -v
PHP 5.2.8 (cli) (built: Feb 27 2009 09:51:59)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
    with the ionCube PHP Loader v3.3.14, Copyright (c) 2002-2010, by ionCube Ltd., and
    with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
    with Suhosin v0.9.27, Copyright (c) 2007, by SektionEins GmbH
    with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies

Based on the previous information you need the ixed.5.2.lin extension. If you had Thread Safety => enabled you would need to use ixed.5.2ts.lin.

Finally add the "extension=ixed/ixed.5.2.lin" line to php.ini manually through your favorite editor:
Code: Select all
vi +/"extension=" /usr/local/lib/php.ini

Restart the web server and check whether the extension is loaded correctly or not:
Code: Select all
php -i | grep "SourceGuardian"
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to Server Side Actions

 


  • Related topics
    Replies
    Views
    Last post
cron