There is no Zend Guard loader available for PHP 5.5

Silvan

Verified User
Joined
Aug 29, 2012
Messages
29
I just upgraded tot PHP 5.5, everything went fine using custom build. But only have one small problem with Zend/Ioncube:

In my error log i get this:
Code:
Zend Guard Loader requires Zend Engine API version 220090626.
The Zend Engine API version 220121212 which is installed, is newer.
Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Guard Loader.

I tried upgrading Zend loader using custom build, but get the message:
"There is no Zend Guard loader available for PHP 5.5"

How can i fix the error? I searched alot but can't figure it out. Thanks in advance!
 
I presume you have zend=yes in your options.conf.

In that case edit your /usr/local/lib/php.ini and remove the Zend Guard Loader line which you had from the previous php version. It should be only 1 line, probably at the bottom of the file. After that do:
Code:
cd /usr/local/directadmin/custombuild
./build zen

It might also be enough to remove that line and restart apache.

If you never changed you php.ini or know what you changed, you can also remove php.ini and build php again, you'll have a new php.ini and then you can also do ./build zen again.

There is no Zend Guard Loader for php 5.5 but normally you should have no issues because Zend Engine is working fine.
 
Thanks for the reply Richard.

I tried that, did remove the line in PHP.ini, and did custombuild ./zend after that i get the message:

Code:
[root@server custombuild]# ./build zend
File already exists:	ZendOptimizer-3.3.3-linux-glibc23-x86_64.tar.gz
There is no Zend Guard loader available for PHP 5.5
 
Thanks for the Help Richard. Unfortunately i get the same message;
- I Removed the line from PHP.ini
- I did build ./build zen
Then i get "There is no Zend Guard loader available for PHP 5.5".

Any other solutions?
 
Last edited:
This is for Ubuntu 12.04, not sure about file locations on other OS:

Download ZendGuardLoader.so to your server:

http://www.zend.com/en/products/loader/downloads#Linux

Rename the original ZendGuardLoader.so if it's still there:

cd /usr/local/lib
mv ZendGuardLoader.so ZendGuardLoader.so.old


Copy newly downloaded ZendGuardLoader.so to /usr/local/lib

chown root:root ZendGuardLoader.so
chmod 755 ZendGuardLoader.so


Add the following line at the bottom of php.ini (if not yet present):

zend_extension=/usr/local/lib/ZendGuardLoader.so

Check for errors:

php -v
 
That's odd because my command was wrong.
It should have been ./build zend instead of ./build zen, but maybe you did that the correct way.
Are you by any chance on custombuild 1.x?
 
That's odd because my command was wrong.
It should have been ./build zend instead of ./build zen, but maybe you did that the correct way.
Are you by any chance on custombuild 1.x?


Yes i did see the mistake, so I did ./build zend

Yes:
/usr/local/directadmin/custombuild# ./build version
1.2.41


Should i get to 2.0 to get zend working?
 
Should i get to 2.0 to get zend working?
Not that I know of, but I was just wondering why a complete removal of php.ini and reinstall of php would not work.
Since I did not encounter this issue in CB 2.0 I thought it might be an issue from CB 1.x. Which should be fixed in that case but I don't know how.
Hopefully one of the users like Zeiter knows an answer to this.

Just to be sure, what is php -v saying now at this moment?

If you don't have any reasons not to, it might be a good idea to upgrade to CB 2.0 anyway.
 
Back
Top