How to install the phpSHIELD Loaders on Linux-Windows server?
The phpSHIELD is a software which is used to encode the php pages, It is an excellent product for encoding php files if you don’t require any time limiting, IP/Domain locking or the powerful licensing features contained within SourceGuardian . phpSHIELD protects your PHP Source Code with a powerful, easy to use encoder, which creates a native byte code version of the script and then encrypts it.
Most of application require the phpSHIELD loaders like the phpmotion …
How to install the phpSHIELD Loaders on Linux server?
• Download the appropriate OS version phpSHIELD Loaders though
http://www.phpshield.com/loaders/index.php URL
#cd /usr/src/ #wget http://www.phpshield.com/loaders/phpshield.loaders.linux.zip
http://www.phpshield.com/loaders/phpshield.loaders.windows.zip
• uncompress the phpSHIELD loader zip file
• You will need to determine the path to your php “extensions library” use a phpinfo() file to check this. It will look something like this /usr/local/lib/php/extensions/no-debug-non-zts-20060613(example only)
Or
you can use following command on ssh shell to check extension library path
#php –i |grep extension_dir
• check the php version then you will then need to copy 1 file to this “extension library” folder. If php 5.2.X version is running on server then copy the phpshield.5.2.lin (for Linux server) OR phpshield.5.2.win (for Windows server) file to the “extensions library” location.
• Open the php.ini configuration file (located in /usr/local/lib/ or you can use php -i |grep php.ini command to find exact running php.ini file location ), and add the following line below extension_dir line
extension="phpshield.5.2.lin" (for Linux server)
OR
extension="phpshield.5.2.win" (for Windows server)
That’s it , phpSHIELD Loaders is successfully installed on your server, You can verify it by creating php info file under your public_html folder,if it is sucessfully installed you will see following phpSHILED information in php info file.
Enjoy: D
Regards
Alex P




















Thanks a lot mate, been wandering around just to find out this one.
Got one suggestion though,
I’m using Ubuntu Intrepid, the php.ini location is correct, but the added line is changed as this:
extension=phpshield.5.2.lin
(no quote mark)
And, it works
thanks
I am in a server where I can’t access my extension library folder. Any help for me?
Hello Bhopal,
First you will have to find out the working php.ini file,please use “php -i |grep php.ini ” command to search it then search the exntension_dir path in php.ini file and go to that directory.
Hey I just ran my php.info and I can’t find my extensions library. I am running centos and php5.2.6. There is something called an extensions_dir, is this the same thing?
HEllo Richard,
Yes extensions_dir is an “extension library” folder. Please copy the phpshield.5.2.lin (file to the “extensions library” location.
Regards
Alex P
Hello, I was trying to install phpmotion v2 in a sub directory in my host. I followed everything and edited some files to install in a sub directory. But, when I try to install I get that common Phpshield error. So, I asked help from my host provider.
Now, they sent me a reply saying that, they have installed everything that needed for phpmotion, and manually installed phpshield in php.ini. But, still the script could not be installed.
And my host provider asked me to show this to phpmotion support and ask what’s wrong.
http://stats.kuala.arvixe.com/phpinfo.php
*And the phpmotion forum told me to show this to you. And I am now here!
Please, help me.
Thanks
This is the location i have uploaded the setup files:
http://www.lankatalks.com/phpmotion/
Hello Rishoban ,
I have checked phpinfo of your server , it seems that phpSHIELD is not properly installed , I would like to suggest you please contact your Hosting provider and ask him reinstall it, Please forward him following steps to install phpshield
1)Download the source
2)Serach PHP extension dir using following command
You will see output like (extension_dir => /usr/local/lib/php/extensions/no-debug-non-zts-20060613 => /usr/local/lib/php/extensions/no-debug-non-zts-20060613)
Then copy phpshield.5.2.lin file under extension_dir folder ( /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ )
3)Search php.ini file using command
open it in your favorite editor
and added following line
3)then it will be show in phpinfo file.
It is already installed on our server you can check it with http://linuxwindowsmaster.com/phpinfo.php URL.
Regards
Alex P
@admin
Thank you for your quick reply admin. I sent them this answer, And I got a reply email like this;
“Hello Rishoban,
Please post this on that forum. We are very familiar with installing PHP extensions and have done thousands across servers. This is in:
/usr/local/lib/php.ini:
extension_dir = “/usr/local/lib/php/extensions/no-debug-non-zts-20060613″
extension=”phpshield/phpshield.5.2.lin”
And, the file structure is:
root@kuala [/usr/local/lib/php/extensions/no-debug-non-zts-20060613/phpshield]# ls -la
total 1472
drwxr-xr-x 2 root root 4096 Apr 2 03:35 ./
drwxr-xr-x 3 root root 4096 Apr 2 03:36 ../
-rw-r–r– 1 root root 57688 Jan 15 09:13 phpshield.4.3.lin
-rw-r–r– 1 root root 58872 Jan 15 09:13 phpshield.4.3ts.lin
-rw-r–r– 1 root root 57688 Jan 15 09:13 phpshield.4.4.lin
-rw-r–r– 1 root root 58872 Jan 15 09:14 phpshield.4.4ts.lin
-rw-r–r– 1 root root 58200 Jan 15 09:14 phpshield.5.0.0.lin
-rw-r–r– 1 root root 61272 Jan 15 09:14 phpshield.5.0.0ts.lin
-rw-r–r– 1 root root 58200 Jan 15 09:21 phpshield.5.0.1.lin
-rw-r–r– 1 root root 61272 Jan 15 09:21 phpshield.5.0.1ts.lin
-rw-r–r– 1 root root 58200 Jan 15 09:21 phpshield.5.0.2.lin
-rw-r–r– 1 root root 61272 Jan 15 09:21 phpshield.5.0.2ts.lin
-rw-r–r– 1 root root 58200 Jan 15 09:15 phpshield.5.0.lin
-rw-r–r– 1 root root 61272 Jan 15 09:15 phpshield.5.0ts.lin
-rw-r–r– 1 root root 61240 Jan 15 09:15 phpshield.5.1.lin
-rw-r–r– 1 root root 61272 Jan 15 09:15 phpshield.5.1ts.lin
-rw-r–r– 1 root root 61240 Jan 15 09:16 phpshield.5.2.lin
-rw-r–r– 1 root root 61272 Jan 15 09:16 phpshield.5.2ts.lin
-rw-r–r– 1 root root 444873 Jan 20 14:08 phpshield.loaders.linux.zip
And, here is the phpinfo.php file after that -
http://stats.kuala.arvixe.com/phpinfo.php
There is definitely something wrong with phpshield here and a developer at phpshield needs to look at what isn’t working with it.”
Please, help me. What might be the problem?
Hello Rishoban ,
Yes, there are definitely something wrong with your hosting provider server apache or php configuration ,If they has installed it then why it didn’t show in php info file ? If you look phpinfo on our site you will details about phpshield there http://linuxwindowsmaster.com/phpinfo.php.
Regards
Alex P
There is obviously a lot to know about this. I think you made some good points in Features also.
Hi, I can?t understand how to add your site in my rss reader. Can you Help me, please
Same problem here.. I tried everything…
I saw many persons that was not able to use the phpSHIELD.. maybe it simply don’t work with “Apache MPM Worker “… It’s is my only guest, I pass all other solutions…
Any new idea ?
phpShield works with Apache MPM Worker but it can be a pain to get it installed no matter what MPM/Platform you are using.
Thanks a lot buddy..!!! I was testing phpmotion script and your article helped me..
keep it up..!!!
hello
in http://linuxwindowsmaster.com/phpinfo.php you have phpshield version 5.0.1
i don’t understand why you talk about phpshield 5.1 or 5.2 …
also when i downloaded from phpshield there where no 5.1 or 5.2 versions
only 5.0.1 or 5.0.2
now can you tell what’s the difference?
in php.ini i wrote phpshield.5.0.2.lin and didn’t worked, then i’ve renamed the file phpshield.5.2.lin and got the same error …
can you tell what should i do?
Hello,
Thank you for this tutorial.
Worked 100% on cPanel/RHEL server with apache 2/php 5.2
@Marcelo
Hello,
Sorry for delay in response, There is no any big difference in 5.1 or 5.2 . I have added same phpshield.5.2.lin extension in php.ini file but not sure why it show 5.0.1 version.
Protected Script Loaders will be updated periodically and the latest loaders are always freely available
from:
http://www.phpshield.com/loaders/
3.1 Loader filename structure
The following provides an overview of the loader naming conventions:
ixed.X.Y.Zts.os
X.Y – major PHP version number (4.3 for 4.3.x, 5.0 for 5.0.x, 5.1 for 5.1.x, 5.2 for 5.2.x)
Z – minor PHP version number (2 for 5.0.2) This is optional and most loaders DOES NOT have the minor
version number in the file name.
This part may be missed in the loader name which means that this loader is for all higher PHP versions:
ixed.4.3.lin – for all PHP 4.3.x versions
ixed.5.0.0.lin – for PHP 5.0.0 only
ixed.5.0.1.lin – for PHP 5.0.1 only
ixed.5.0.2.lin – for PHP 5.0.2 only
ixed.5.0.lin – for all PHP 5.0.3+ versions and higher
ixed.5.1.lin – for all PHP 5.1 versions and higher
ixed.5.2.lin – for all PHP 5.2 versions and higher
ixed.5.3.lin – for all PHP 5.3 versions and higher
Regards
Alex P
@Dedi Eko
Did you actually figure out how to install the PHP Loader on a Linux Server? If yes, PLEASE call me! I’ve been trying for two days and can’t figure it out. If you respond to this message with text I WILL NOT BE ABLE TO DO IT. Please CALL ME if you know how to do it. I’ll send you money, anything. I just need to figure this out.
Thanks,
Mike
(415)385-8140
@Dedi Eko
@Dedi Eko
Did you actually figure out how to install the PHP Loader on a Linux Server? If yes, PLEASE call me! I’ve been trying for two days and can’t figure it out. If you respond to this message with text I WILL NOT BE ABLE TO DO IT. Please CALL ME if you know how to do it. I’ll send you money, anything. I just need to figure this out.
Thanks,
Mike
(415)385-8140