Thursday, July 22, 2010

How to install phpshield on 32 or 64 bit linux machine?

Guys,

phpSHIELD protects your PHP Source Code with a powerful, easy to use encoder, which creates a native bytecode version of the script and then encrypts it. It's needed to video script enabled sites.


Here are the steps those I have followed :

===========
1. Check the architecture of your machine. like :

root@j [~]# arch
x86_64
root@j [~]#
It's 64bit
or :
root@juggernaut [~]# which ps
/bin/ps
root@j [~]# file /bin/ps |grep bit
/bin/ps: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
root@j [~]#

2. Make sure following parameters has appropriate value in php.ini file like :

# Thread Safety is disabled
# enable_dl is set to on
# The path to your extension_dir
# Path to your php.ini file

php.ini file path :

root@j [~]# php --ini
Configuration File (php.ini) Path: /usr/local/lib
Loaded Configuration File: /usr/local/lib/php.ini
Scan for additional .ini files in: /usr/local/lib/php.ini.d
Additional .ini files parsed: (none)
root@j [~]#

3. Execute following CMD via ssh:
# mkdir ~/phpshield
# cd ~/phpshield

4. Download the phpSHIELD loaders:

# wget http://phpshield.com/loaders/phpshield.loaders.linux.zip //for 32bit machine
# wget http://phpshield.com/loaders/phpshield.loaders.linux-64.zip //for 64 bit

5. #unzip phpshield.loaders.linux.zip
6. #cp phpshield.5.2.lin /usr/lib/php/extensions/no-debug-non-zts-20060613/
7. Add following line in php.ini file and restart webserver :

extension="phpshield.5.2.lin"
echo "extension="phpshield.5.2.lin"" >> /usr/local/lib/php.ini

or

extension="phpshield.5.2ts.lin"
===========

That's it. try :)

No comments:

Post a Comment