You are here: Zend Guard User Guide > Licenses > License File Location

License File Location

The location of license file must be written into thephp.ini file. This enables it to be validated and loaded into the license registry if valid. Depending on your setup you may need to restart the web server. For example: SAPI, ISAPI configurations that run a persistent PHP module require restarting the Web server to apply changes to the PHP engine.

Licenses are either valid or not-valid. The state "No license found" is treated as an invalid license. Therefore, proper license installation is necessary.

You can define specific files or license file directories to contain the license. If you specify a license directory, all files with the file extension zl,are checked for validity. If valid, they are loaded into the license registry, once, at the startup of the PHP server.

Files encoded to check for valid licenses will check the license registry for a license matching its product specification.

After updating the php.ini restart the server to apply changes for SAPI/ISAPI configurations.

The directive in the php.ini file for license paths is zend_optimizer.license_path.
The syntax is as follows:

zend_optimizer.license_path=LicensePath1:LicensePath2

Where: LicensePath is the path to the file or directory holding the correct license file. For UNIX, multiple paths are entered separated by colons (colon delimited.)  For Windows, multiple paths are entered separated by semicolon (semicolon delimited.) 

 

Examples:

Usage example

The following lines specify two license files (UNIX).

zend_optimizer.license_path=/usr/local/Zend/licenses/Lic.zl:/usr/local/Zend/licenses/Lic2.zl

 

The following line specifies one license file and a license folder (Windows).

zend_optimizer.license_path=C:\dir1;C:\dir2;C:\dir3\lic.zl

 

 

Related links

Related Links:
Licenses

Create a License

License Files

Install a License

Enforce a License

Locate your Host ID

 

©1999-2013 Zend Technologies LTD. All rights reserved.