Thursday, July 22, 2010

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


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
root@j [~]#
It's 64bit
or :
root@juggernaut [~]# which 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 //for 32bit machine
# wget //for 64 bit

5. #unzip
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 :

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



That's it. try :)

No comments:

Post a Comment