Solution for this issue we need to turn off the SourceGuardian loader ixed in php.ini file first and then simply install phpSHIELD using following steps -
- Steps to install phpSHIELD Loader:
cd /usr/src
- Download the appropriate phpSHIELD Loader from 'http://www.phpshield.com/loaders/index.php':
For 64-bit servers, use the following command:
wget http://phpshield.com/loaders/phpshield.loaders.linux-64.zip
In case of 32-bit servers, use the following command:
wget http://phpshield.com/loaders/phpshield.loaders.linux.zip
- Unzip the downloaded file:
unzip phpshield.loaders.linux-64.zip
-
Find the phpshield loader corresponding to php version in the server. In this case phpshield loader will be phpshield.5.2.lin.
-
Copy the loader file to php extension_dir location. Php extension_dir can be obtained from command:
php -i | grep extension_dir
cp /usr/src/phpshield.5.2.lin /path/to/your/php/EXTENSION/directory
- Add the following in php.ini file:
extension=phpshield.5.2.lin
You can obtain php.ini file being used in server using the following command:
php -i | grep php.ini
- Finally restart httpd service.
/etc/init.d/httpd restart
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 successfully installed you will see following phpSHILED information in php info file.