Path

ez.no / ezpublish / documentation / configuration / optimization / php acceleration


PHP Acceleration

These documentation pages are no longer maintained. Please visit the new documentation site.

PHP Acceleration is caching of the compiled PHP script in memory. This is highly recommended when running eZ publish it will really boost the performance of your eZ publish site.

Collection of documents touching the optimization of eZ publish 3.

Execution speed increases a lot if you use the free Alternativ PHP Cache, ionCube php accelerator or Turck MMCache.

IonCube can improve response times from the server by upto 80%, but make sure you check your php.ini as it requires more memory and if your memory limit is too low this will cause script errors.
A good general setting for ionCude php accelerator is (in php.ini).

zend_extension=/usr/lib/php4/php_accelerator_1.3.3r2.so

phpa.shm_ttl = 6h

phpa.shm_size = 15

Its probably worth checking you /tmp directory to ensure you have enough space for all those files the accelerator creates.

If your memory gets out of control as it does on standard Redhat 7.3 installs then you need the memory workaround

phpa.enable_php_memory_bug_workaround = 1

ionCube is a good solid "free" solution when speeding up php and has been run by some community members for months without problem. It has been known to have problems on PHP 4.1.2 when you host many sites, ensure you test it fully before deploying 10 sites+ on a box with this accelerator.

An even better but expensive option (490+ USD) is the Zend Performance Suite

Other options include compiling PHP to remove unwanted modules, this will reduce the size of the executed code.

You might also consider building your own Apache for the use in combination of eZ publish.

Comments

new link

the Alternative phpCache link above continuously times out for me..

anyhow that link should redirect to this one.. where it is now being hosted.

http://pecl.php.net/package/APC

mmTruck

mmTruck is not longer under development.
eAccelerator is a further development from mmcache PHP Accelerator & Encoder.
Read more at http://eaccelerator.net

I recommend this version for Windows.

Response Times

Hey,

I haven't used an accelerator yet. You write:

> IonCube can increase response times from the server by upto 80%

I hope, the response times don't increase :-) What do you mean? Is it 80 % less then without acceleration - that is: with accelearation 20 % of the time without acceleration?

Thanx

Thomas

Contents

Configuration

Configuration
Security
Optimization
    PHP Acceleration
    Disabling the cache
    Configuration tuning
    Caching for improved speed
    Speeding up acrobat pdf document inde...
Backup & Restore
Troubleshooting


Created

26/03/2003
5:45:49 pm
by Tony Wood

Last updated

16/06/2004
4:16:15 pm
by Guttorm Flatabø

Authors

Tony Wood
Karsten Jennissen
Björn Dieding@xrow.de
Bård Farstad
Harry Oosterveen
Guttorm Flatabø



This page is part of the eZ Publish documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.