Zend Guard Loader is a free runtime application that enables PHP to run the scripts encoded by Zend Guard. Zend is a trademark of Zend Technologies Ltd.
If your scripts are encoded with a version of Zend Guard that is earlier than 5.5, they will not work with Zend Guard Loader. Please consult the developer of your application to have them re-encode your files to work with Zend Guard Loader.
Before you start, you should have handy or be familiar with:
- SSH login credentials.
- FTP login credentials and your favourite FTP client.
- Your site number and which Cluster upon which your Grid resides. For instructions on how to locate this, please see: How to find your Cluster and Storage Segment.
READ ME FIRST
This article is provided as a courtesy. Installing, configuring, and troubleshooting third-party applications is outside the scope of support provided by (mt) Media Temple. Please take a moment to review the Statement of Support.
(mt) Media Temple does not provide the PHP modules for Zend Guard Loader. You are welcome to compile these yourself. This tutorial has been adapted from: Working with Zend Guard.
Begin by confirming that your domain is using PHP 5.5 or 5.6. Older versions (php 5.3) are provided via link at the bottom of the downloads page. These older versions are no longer supported and it is recommended that you upgrade if possible. For more information, please see: How can I specify the PHP version on the Grid?
- Navigate here and select Linux from the operating system drop-down menu. Download Zend Guard Loader (Runtime for PHP 5.5 or 5.6). Regardless of your PHP version, you must download the 64 bit binaries. This includes downloads for older versions as well.
- Upload the tarball to the
/data/tmpdirectory on your Grid via FTP or SSH.
- Connect to your Grid via SSH.
- Navigate to
/data/tmpand extract the uploaded tar.gz file. Run each command separately:
cd data/tmp tar xzvf filename.tar.gz
- Next, add the following line to your
php.inifile for loading the ZendGuardLoader:
zend_extension=/home/00000/data/tmp/<filename of version you downloaded (see Figure 1 above)>/php-5.3.x/ZendGuardLoader.so
Be sure to replace 00000 with your site number.
Add an aditional line to your
php.inifor enabling ZendGuardLoader:
; Enables loading encoded scripts. The default value is On zend_loader.enable=1
- You can verify that Zend Guard Loader has been successfully installed by creating a
phpinfo()page. For detailed instructions, please see: How can I create a phpinfo.php page? See Figure 2 as an example.
Figure 2. This
phpinfo()page shows Zend Guard Loader.