PHP Component Zend Guard Loader issues


Running a non-distro install of asterisk 11.2.1 and Freepbx beta 2.11.0 on CentOS6.2

php -v
PHP 5.3.3 (cli) (built: Feb 22 2013 02:51:11)
Copyright © 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright © 1998-2010 Zend Technologies

When attempting to add components via freepbx, getting:
“PHP Component Zend Guard Loader is required but missing from you PHP installation.”


File /usr/sbin/incrond must exist.

Looking for a good place to start to get this resolved. Cannot easily find a repository for these items.


Should work on processors/OS’s supported by Zend, but by no means all. Without it you lose the ability to use “Commercial but free” modules from Schmooze so if you don’t have it working don’t try and install any “Commercial” modules.

Found some ‘google’ content about installing via yum, but no luck there. (I was hoping to keep my packages as yum-based as possible. (see my comment about the repository issue). I’m not one to replace google for a brain, especially when there is a wonderful place like this where there is a higher probability of finding more direct and accurate information.

If anyone else has been able to install this package via yum, and can direct me to the proper current repository, it would be appreciated. I (with and without google) am unable to locate.

Thank you,

You can can install with yum from the schmooze repositories, if your kernel matches one that they use.

If you did not install the the Schmooze distro “for any reason”, you would not have to think and work a little more.

Sorry we are all out of spoons.

I just did this today. I’m sure you’ve figured it out by now, but since this thread came up when I searched for it I thought I would put a more useful answer than “google it”.

First, determine your arch and php version with uname -p and php -v. For me it’s i386 and php 5.3. The instructions will be specifically for 32bit php v5.3 on CentOS 6, but the instructions are the exact same for 64bit and/or 5.4. If you’re running php 5.2 I’d say upgrade. Anywho;

  1. Google zend guard loader download, choose the linux tab, 32bit for 5.3. My server is running headless and this link is https and requires registration, so I had to use a different box and pop it over to the server with scp.
  2. Untar/gz the package, then copy the .so file that’s inside the directory it creates to /usr/lib/php/modules for i386 or /usr/lib64/php/modules for 64bit.
  3. Create an ini in /etc/php.d called zenguard.ini with this inside (note: change /usr/lib to /usr/lib64 if needed):
; Enable ZendGuard loader module zend_extension=/usr/lib/php/modules/ ; Enables loading encoded scripts. The default value is On zend_loader.enable=1 ; Disable license checks (for performance reasons) zend_loader.disable_licensing=0 ; The Obfuscation level supported by Zend Guard Loader. The levels are detailed in the official Zend Guard Documentation. 0 - no obfuscation is enabled zend_loader.obfuscation_level_support=0 ; Path to where licensed Zend products should look for the product license. For more information on how to create a license file, see the Zend Guard User Guide ; zend_loader.license_path=
  1. Restart httpd, run php -v again, should say:
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies


Same with incron, you have to install either 32 or 64 bit. For my 32bit linux:

  1. wget
  2. rpm -Uvh rpmforge-release*rpm
  3. yum install incron

That’s it. After that I could add the packages in the web gui without issue. I didn’t have any problems with the above so YMMV.

Guys please follow our guide here. You need to use the packages we provide for commercial modules to properly work.

Of course if you google search this question and stumble accross this page trying to get Zend working on a Raspberry Pi because your business/home is small enough that you thought you would do the environmental thing. You will be dissappointed to learn that the simple instruction to installing Zend Guard Loader on a pi is that ya dont.
It doesn’t work on architectures other than x86, so no commercial schmooze software for us PBX hippies. And no changing the time zone simply either :frowning:

Sorry we only support EL5 and EL6 stuff for commercial modules.