Select Category
Sitemap Help Contact
print article

Manually Install Zend Guard Loader

For Linux packages and PHP version 5.4 or higher

Learn how to install Zend Guard Loader on your webspace.

Zend Guard is a PHP encryption tool. The software protects your PHP source code and therefore your website from observation, modification, and theft. With the Zend Guard Loader, you can use Zend Guard encrypted programs on your website.

Please note:
To install the Zend Guard Loader, Secure Shell (SSH) access is necessary. This is available in many webhosting contracts and on all 1&1 Dedicated Server Managed contracts.
Step 1
Open the Zend.com website in order to download the Zend Guard Loader as a ZIP file. To be able to do this, you must first register or log in to the site.

Select Linux as the operating system, then download either the 32-bit or 64-bit version depending on which is appropriate for your needs.
Please note:
Using Secure Shell (SSH), you can find out whether you need the 32-bit or 64-bit Zend Guard Loader by using the command "cat /etc/debian_version".

You will receive the output "x86_64" or "x86_32". The second value indicates the appropriate bit system.
Step 2
Unzip the ZIP file on your computer and open the subdirectory named after your PHP version, e.g. "7.0".
Step 3
Upload the file ZendGuardLoader.so using an FTP client to a subdirectory of your choice in your webspace.
Step 4
Create a file called php.ini with the following content (2 lines):
zend_extension=/homepages/12/d1234567/htdocs/zend/ZendGuardLoader.so
zend_loader.enable=1

Make sure you change the path in the example above accordingly (/homepages/12/d1234567/htdocs/zend/ZendGuardLoader.so).

For the exact path to your root directory, please visit your Domain Center. Alternatively, you can use SSH to retrieve the path of your home directory. To do this, use the pwd command. If necessary, add the appropriate subdirectory to the path.
Please note:
The php.ini file only applies to the directory where it is stored. If you need the Zend Guard Loader in several subdirectories, copy the php.ini file to each appropriate directory. Make sure that you do not overwrite an existing php.ini file. Instead, insert both lines above into the existing file.