Adrian World Design
  • Services
    • Website Consulting
    • Startup Consulting
    • Zend Development
  • Portfolio
    • My Framework
  • Knowledge
    • Web Standards
    • PHP bare-bones
    • Zend Framework
    • Zend Framework 2
    • Git - Github
    • Search Engine Optimization
    • Web Hosting
    • Linux
    • Microsoft Windows
    • Web Browsers
    • Mobile Devices
  • About
    • Business
    • Professionally
    • Personally
  • Contact
    • Contact Form
    • Phone
    • Email
    • Messaging

Knowledge Base Overview

Verify Zend Guard installation

Knowledge ⇒ Web Hosting ⇒ Zend Guard ⇒ Verify Zend Guard installation
Tweet
Share on Tumblr

Created: Feb 4, 2012, 10:30:50 AM CSTLast updated: Apr 27, 2012, 8:05:01 AM CST

This page is tells you how to test or detect if the Zend Guard Loader is installed and running. We usually need this to sort out things before we go into deeper territory and fix some problems with a Zend Guard installation. Note that you can also test and detect Zend Optimizer this way.

Besides this webpage I have more pages about Zend Guard and if you have any problems please look out for them in this chapter; use the breadcrumbs list above or the Prev/Next links at the end of the document.

Check configuration

So, how do you check if the ZendGuardLoader.so module is loaded properly and maybe even get some additional information what the problem might be?

One simple test to see if the module is even touched or was attempted to load is on the console with the php CLI and as demonstrated in the following.

Note that the example is on Linux and for Windows you might go into the php directory to run it from the command line; it all depends on your setup, i.e. the path environment. The command and result should be the same, though.

First, this is how it should look like
[root@centos ~]# php -v
PHP 5.3.3 (cli) (built: Jan 11 2012 19:53:01)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
This is how it looks if your loader has not been touched, i.e. your configuration is not aware that you want to load
[root@centos ~]# php -v
PHP 5.3.3 (cli) (built: Jan 11 2012 19:53:01)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

If you don't see any information what-so-ever about the Loader in this response message then your configuration for the ZendGuardLoader.so is not properly set in the php.ini or any other php configuration file.

To fix this problem you have to make sure that you are working in the actually php.ini file and not some other copy of the file. Either use phpinfo() or while you have your console use the following commands to learn about the path for the php.ini file(s).

// for Linux users
[root@centos ~]# php -i |grep -i 'php.ini'
Configuration File (php.ini) Path => /etc // the default path
Loaded Configuration File => /etc/php.ini // the actual location
// for Windows users
> php -i | find /i "php.ini"
Configuration File (php.ini) Path => C:WINDOWS // the default path
Loaded Configuration File => E:/xampp/php/php.ini // the actual location

An important note here: The configuration can also be added to additional .ini files. Use grep (find) again but look out for this string: 'additional'; it will tell you if additional files are used and which.

And that's all she wrote. Look out for the other Zend Guard documents if this does not solve your problem.

blog comments powered by Disqus
Prev
Next

Powered by FeedBurner Load our "Knowledge Base" feed in your RSS feeder

Follow us on Twitter
Follow us on Facebook
Follow us on LinkedIn
Follow us on Google+

All rights reserved, Adrian World Design ©2009–2021 Powered by Wejas Framework

Jump to Top