License File Location

The location of license file must be written into the php.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:


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



Usage example

The following lines specify two license files (UNIX).



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




Related links

Related Links:

Create a License

License Files

Install a License

Enforce a License

Locate your Host ID