Wednesday, March 20, 2013

install php shield in phpmotion

Installing phpShield Loaders
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. If you don't know how to create a phpinfo file, you can
Now that you have a php info file, upload it to your website's public_html directory and view it in your browser by typing http://www.yoursite.com/phpinfo.php in your address bar. 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
Path to your php.ini file
Now connect to your webserver using your favorite SSH client and login as root.
Create a new working directory then change directories:

mkdir ~/phpshield cd ~/phpshield

Download the phpSHIELD loaders:

wget http://phpshield.com/loaders/phpshield.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

Extract the loaders:

unzip phpshield.loaders.linux.zip

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.
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.)

Open your php.ini file

nano /path/to/php/ini/php.ini

 

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

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

extension=phpshield/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

12 comments:

  1. Woah! I'm really digging the template/theme of this
    site. It's simple, yet effective. A lot of times it's very difficult to get
    that "perfect balance" between usability and appearance.
    I must say that you've done a very good job with this. In addition, the blog
    loads very fast for me on Opera. Outstanding Blog!

    ReplyDelete
  2. I need to to thank you for this great read!! I absolutely loved every little bit
    of it. I've got you bookmarked to check out new things
    you post…

    ReplyDelete
  3. What's up to every one, as I am in fact keen of reading this website's post to be updated daily.
    It contains nice data.

    ReplyDelete
  4. I am really impressed with your writing skills as
    well as with the layout on your blog. Is this a paid theme or did you
    modify it yourself? Either way keep up the nice quality writing, it's rare to see a great blog like
    this one today.

    ReplyDelete
  5. I was suggested this website through my cousin. I am not positive whether this publish is written by him
    as nobody else recognize such distinctive approximately my difficulty.
    You're wonderful! Thank you!

    ReplyDelete
  6. I constantly spent my half an hour to read this
    webpage's content every day along with a cup of coffee.

    ReplyDelete
  7. Woah! I'm realkly loving the template/theme of this website.

    It's simple, yet effective. A lot of times it's difficult to get that "perfect balance" between superb usability
    and appearance. I must say you have done a amazing job with this.
    Also,the blog loads super fast for me on Chrome. Outstanding Blog!

    ReplyDelete
  8. Can I just say what a relief to discover somebody who genuinely knows
    what they're talking about online. You certainly realize how
    to bring an issue to light and make it important.
    A lot more people need to check this out and understand this side of the story.
    It's surprising you aren't more popular since you most certainly have the gift.

    ReplyDelete
  9. Heya i am for the first time here. I found this board and I find It truly useful & itt helped me
    out a lot. I hope to give something back and aid others likke you aided me.

    ReplyDelete
  10. I гead this iece of writimg fully about thhe difference of latest and preceding teсhnologies, it's
    aweѕome artiϲle.

    ReplyDelete
  11. Very nice article, exactly what I wanted to find.

    ReplyDelete
  12. This website was... how do I say it? Relevant!! Finally I
    have found something which helped me. Many thanks!

    ReplyDelete