Support / KnowledgeBase

 
Search the KnowledgeBase Search

How can I enable Zend on the (gs) Grid-Service?

  • Applies to: (gs)

  • Difficulty: Hard

  • Time needed: 20 minutes

  • Tools needed: SSH access or FTP and AccountCenter access

 
  • Applies to: (gs)
    • Difficulty: Hard
    • Time Needed: 20
    • Tools Required: SSH access or FTP and AccountCenter access

Overview

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.

NOTE:

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.

Requirements

Before you start, you should have handy or be familiar with:

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.

Instructions

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

  1. Confirm that your domain is using PHP 5.3. For more information, please see: How can I specify the PHP version on the (gs) Grid-Service?
  2. Download Zend Guard Loader (Runtime for PHP 5.3).

    NOTE:

    If you are on Clusters 1-7, download Zend Guard Loader (Runtime for PHP 5.3) (32 bit). For Clusters 8-10, download Zend Guard Loader (Runtime for PHP 5.3) (64 bit). For instructions on how to identify the Cluster your (gs) is on, please see: How to find your Cluster and Storage Segment. Please see Figure 1.


    Figure 1. A screen shot of the download page as a reference.

  3. Upload the tarball to the /data/tmp directory on your (gs) via FTP or SSH.
  4. Connect to your (gs) via SSH.
  5. Navigate to /data/tmp and extract the uploaded tar.gz file. Run each command separately:
    cd data/tmp
    tar xzvf filename.tar.gz
  6. Next, add the following line to your php.ini file 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

    TIP:

    Be sure to replace 00000 with your site number.

    Add an aditional line to your php.ini for enabling ZendGuardLoader:

    ; Enables loading encoded scripts. The default value is On
    zend_loader.enable=1
  7. 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.

Resources


User Comments

No visitor comments posted. Post a comment
Fields marked with an asterisk(*) are required. Comment on this article
Fill out the form below if you would like to comment on this article.
 
 
 

(code is not case-sensitive)
 
Submit
 
 

Continue