Install phpSHIELD Loaders

Installing phpShield Loaders
1) The first thing we need to do is check a couple of PHP settings. The easiest way to do this is with a phpinfo file.
2) You want to find/verify the following in your phpinfo.php file:

* Your PHP version
* Thread Safety is disabled
* enable_dl is set to on
* The path to your extension_dir(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

* Path to your php.ini file

3) Now connect to your webserver using your favorite SSH client and login as root.

4)Create a new working directory then change directories:
# mkdir ~/phpshield

# cd ~/phpshield

5)Download the phpSHIELD loaders:
# wget http://phpshield.com/loadersphpshield.loaders.linux.zip

or if you have a 64 bit OS (most people will have a 32 bit OS so you will most likely use the code above)

# wget http://phpshield.com/loaders/phpshield.loaders.linux-64.zip

6) Extract the loaders:
# unzip phpshield.loaders.linux.zip

7)If you do a directory list:
# ls
you will see a bunch of files named phpshield.4.3.lin to phpshield.5.2.lin. What we want to do here is find the phpshield file with the number that matches your PHP version. You can find your PHP version at the very top of your phpinfo file from earlier.

8)Now we need to copy the appropriate phpshield loader file to your PHP extensions directory.

# cp ~/phpshield/phpshield.x.x.lin /path/to/your/php/extensions/directory

Replace x.x above with your PHP version and use the path to your PHP extensions directory (you should have found this in step 2 above.)

9) Open your php.ini file

#vi /usr/local/lib/php.ini

You should have found the path to your php.ini file in your phpinfo.php file from earlier.

10) Append the following to the Dynamic Extensions section of your php.ini file:

extension=”phpshield.x.x.lin”

Replace x.x with the number on the phpshield file you moved earlier.

# Finally, restart httpd:
# /etc/rc.d/init.d/httpd restart

Advertisements
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: