Install phpSHIELD manually

Posted on 5:03 PM by Bharathvn

So you tried to install phpmotion and got the following message.

PHP script /var/www/html/classes/config.php is protected by phpSHIELD and requires the phpSHIELD loader phpshield.5.1.lin. The phpSHIELD loader has not been installed, or is not installed correctly. Please visit the phpSHIELD php encoder site to download required loader.

There are a number of reasons you are getting this message, but the reason I got it was because the phpshield.5.1.lin file that comes with phpmotion is the 32 bit version. I am running Centos 5.2 64 bit. In order to fix the problem you need to download the 64 bit version of Phpshield and do the following:

Log in as root:

cd /tmp

Now, find your extension_dir in php

php -i|grep extension_dir

Once your figure out where your extension directory is:

cp phpshield.5.1.lin /usr/lib64/php/modules/

You will obviously change the ‘/usr/lib64/php/modules/’ above to reflect your extension directory path

Make sure you insert the following into you php.ini file:


I am running php5.1 so my phpshield files end in 5.1. If you are running php5.2 your phpshield files will end in 5.2.