Knowledge Base » Plesk VPS Hosting

How do I install PHPShield?

Art. Nr: 705  |  Rating: 5/5 from 2 votes  |  Last Updated: Tue, Nov 15, 2011
starstarstarstarstar

PHPShield is an encoding technology that is used to protect web applications. PHPShield works by turning PHP code into unreadable byte code, which is then reassembled on the web server. Below, you will find a tutorial on how to install PHPShield on your cPanel virtual private server.

  • Login to your cPanel virtual private server via SSH
  • Obtain your PHP version by typing the following command "php –v" which should provide you with an output such as the one below:

    PHP 5.3.6 (cli) (built: Sep 12 2011 18:02:42)
    Copyright (c) 1997-2011 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

  • After the above, you may execute the following command:

    # cd /usr/local && mkdir phpshield && cd phpshield && wget http://www.phpshield.com/loaders/phpshield.loaders.linux.zip && unzip phpshield.loaders.linux.zip

  • Once the above has been run, you will then need to edit the php.ini file.
  • Run the following command: vi /usr/local/php.ini
  • Scroll to the bottom of the php.ini file and locate the following block:

    [Zend]
    zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
    zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
    zend_optimizer.version=3.3.3

  • Then replace the above mentioned code with the following:

    [Zend]
    extension=/usr/local/phpshield/phpshield.5.3.lin
    zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
    zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
    zend_optimizer.version=3.3.3

  • Save the changes, and restart your web server by doing the following command within your SSH window: "/etc/init.d/httpd restart"

Having completed the above, PHPShield is now installed on your cPanel VPS, and ready to be used with any of your applications.

If you have any further questions pertaining to PHPShield, please feel free to get in contact with our web hosting support team.

Comments

One liner code for installing something useful like PHPShield. I really like this web hosting KB. Great resource.

Posted by MariaMaria - Tue, Apr 24th, 2012 2:44 PM

For cPanel VPS hosting or Dedicated server just use easyapache and compile it. It is called SourceGuardian there via the compilation process for Apache.

Posted by Danielle - Sat, Apr 7th, 2012 10:43 AM

Post your Comments

Popular Tutorials

RSS Feed
Please see below, some related knowledge base tutorials, which are related to your search query. Please feel free to contact us if you are not able to find what you are looking for.