Trouble shooting

Verifying

There are a few ways to verify that eAccelerator is working. If the command line php binary uses the same configuration file as the php-fastcgi version and/or the mod_php version, you can check it by executing:

php -v 

When eAccelerator is loaded successfully you will see something like:

Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
    with eAccelerator v0.9.5-beta2, Copyright (c) 2004-2006 eAccelerator, by eAccelerator

This will show eAccelerator has been loaded successfully, but this doesn't necessarily show that eAccelerator is working like it should. Load a php script running on your webserver in your browser. Assuming you didn't disable the filecache with shm_only = 1, a cached script should appear in the cache directory.

The final test is putting a php script with these contents somewhere in your webroot so you can execute it on your webserver:

<?php
    phpinfo();
?>

When you execute this script you should see the configuration information from php. eAccelerator will add its own section. It will show the configuration, but also the amount of allocated memory, cached scripts and so on. When this says that eaccelerator is enabled and some scripts are cached, eAccelerator works.

It doesn't work

Settings

If it doesn't work check if you configured eAccelerator properly. Check the Settings page.

Zend Optimizer

eAccelerator has been reported to work with Zend Optimizer's loader. Zend Optimizer must be installed after eAccelerator in php.ini so it's loaded after eAccelerator. If you don't use scripts encoded with Zend Encoder then we do not recommend installing Zend Optimizer with eAccelerator, and it won't give you any extra performance.