Find answers to frequently asked questions and read through some tips and tricks related to all Setasign PHP products.

choose category

Warning: No license for this product (...) - make sure zend_optimizer.license_path is properly configured in php.ini!

You will receive such error message if a license file was not loaded or configured correctly.

First of all you should make sure that you are loading the correct file. A license package consists of two files: a INFO file and a license file named .ht<PRODUCT-NAME>.zl.

The license file is prefixed with a dot. Some operating systems may hide such files automatically! So make sure that you see this file and use this in your configuration!

The INFO file simply holds some information in readable form.

To load the license file you have to do this in your php code:

zend_loader_install_license([absolute_path_to_the_licensefile], true);

OR in your php.ini:

zend_optimizer.licence_path = [path_to_the_licensefile(s)]
zend_loader.license_path = [path_to_the_licensefile(s)]
(make sure you restart your webserver)