Report this

What is the reason for this report?

How to install Zend Guard Loader 6.0

Posted on February 24, 2015

Hello,

I’ve got problem with installing Zend Guard Loader 6.0 after I’ve choosed LAMP server with Ubuntu from automatical droplet instalation.

I’ve do following steps:

I’ve downloaded Zend Guard Loader

wget http://downloads.zend.com/guard/6.0.0/ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64.tar.gz

After I’ve downloaded I unpacked it

tar -zxvf ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64.tar.gz

Then I used:

cp /home/ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64/php-5.4.x/ZendGuardLoader.so /usr/lib/php5/20121212/

I’ve moved into

cd /usr/lib/php5/20121212/

and changed permissions

chmod 644 ZendGuardLoader.so

After that I moved to

cd /etc/php5/mods-available

And created file zend_guard.ini

nano zend_guard.ini

with this inside it

zend_extension = ZendGuardLoader.so
zend_loader.enable = 1

then I moved back to

cd ../apache2/conf.d

and created symbolic link

ln -s ../mods-available/zend_guard.ini ./20-zendguard.ini

and restarted apache

service apache2 restart

unfortunately after using php -v I still don’t have Zend Guard Loader

PHP 5.5.9-1ubuntu4.6 (cli) (built: Feb 13 2015 19:17:11)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

What I’m doing wrong?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I had to do

ln -s ../../mods-available/zend_guard.ini ./20-zendguard.ini

insted of

ln -s ../mods-available/zend_guard.ini ./20-zendguard.ini

emkacf did you get this to work? I followed the instructions you posted but used the 7.0 version of ZendGuard and I’m still not having any luck.

Check php -v it shows your php version 5.5 and you are trying to install for php version 5.4. You need Loader 7.0.0 which you can get for php 5.5 and 5.6, just release a few days ago. Hope this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.