# aptitude install p7zip
# yum install p7zip
# wget http://downloads.zend.com/zendserver/5.0.3/ZendServer-CE-php-5.3.3-5.0.3-linux-glibc23-i386.tar.gz
# tar xzvf ZendServer-CE-php-5.3.3-5.0.3-linux-glibc23-i386.tar.gz
# cd ZendServer*
# p7zip -d zend.7z
# wget http://downloads.zend.com/zendserver/5.0.3/ZendServer-CE-php-5.3.3-5.0.3-linux-glibc23-x86_64.tar.gz
mkdir /usr/local/Zend53
cp zend/lib/optimizerplus/php-5.3.x/ZendOptimizerPlus.so /usr/local/Zend53
[zend]
zend_extension=/usr/local/Zend53/ZendOptimizerPlus.so
; Optimizer+ On/Off switch. When set to Off, code is not optimized.
zend_optimizerplus.enable=1
; If set to On, use the current directory as a part of the script key
zend_optimizerplus.use_cwd=1
; If enabled, the Optimizer+ checks the file timestamps and updates the cache accordingly.
zend_optimizerplus.validate_timestamps=1
; How often to check file timestamps for changes to the shared memory storage allocation. (units: seconds)
zend_optimizerplus.revalidate_freq=2
; Enables or disables file search in include_path optimization
zend_optimizerplus.revalidate_path=0
; The verbosity of the Optimizer+ log
zend_optimizerplus.log_verbosity_level=1
; The Optimizer+ shared memory storage size. The amount of memory for storing precompiled PHP code in Mbytes. (units: MBytes)
zend_optimizerplus.memory_consumption=64
; The maximum number of keys (scripts) in the Optimizer+ hash table
zend_optimizerplus.max_accelerated_files=2000
; The maximum percentage of "wasted" memory until a restart is scheduled (units: %)
zend_optimizerplus.max_wasted_percentage=5
; Check the cache checksum each N requests
zend_optimizerplus.consistency_checks=0
; How long to wait (in seconds) for a scheduled restart to begin if the cache is not being accessed (units: seconds)
zend_optimizerplus.force_restart_timeout=180
; The location of the Optimizer+ blacklist file
zend_optimizerplus.blacklist_filename=
; If enabled, a fast shutdown sequence is used for the accelerated code
zend_optimizerplus.fast_shutdown=0
; A bitmask, where each bit enables or disables the appropriate Optimizer+ passes
zend_optimizerplus.optimization_level=0xfffffbbf
; Enables or disables the optimization passes that may take significant time, based on an internal runtime calculation
zend_optimizerplus.enable_slow_optimizations=1
# php -v
PHP 5.3.2-2 with Suhosin-Patch (cli) (built: Jul 18 2010 21:42:32)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v3.3.20, Copyright (c) 2002-2010, by ionCube Ltd., and
[B]with Zend Optimizer+ v4.1, Copyright (c) 1999-2010, by Zend Technologies[/B]
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Zend Optimizer+ v4.1, Copyright (c) 1999-2010, by Zend Technologies
with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
Maybe this can help (for Debian-like OS)
You will need 7z archiver, so install it
Code:# aptitude install p7zip
Download ZendServerCE, untar it and then unpack zend.7z:
Code:# wget http://downloads.zend.com/zendserver/5.0.3/ZendServer-CE-php-5.3.3-5.0.3-linux-glibc23-i386.tar.gz # tar xzvf ZendServer-CE-php-5.3.3-5.0.3-linux-glibc23-i386.tar.gz # cd ZendServer* # p7zip -d zend.7z
for x64 use this file
Code:# wget http://downloads.zend.com/zendserver/5.0.3/ZendServer-CE-php-5.3.3-5.0.3-linux-glibc23-x86_64.tar.gz
Now copy ZendOptimizerPlus.so to somewhere, let's say to /usr/local/Zend53
Code:mkdir /usr/local/Zend53 cp zend/lib/optimizerplus/php-5.3.x/ZendOptimizerPlus.so /usr/local/Zend53
add to php.ini:
Code:[zend] zend_extension=/usr/local/Zend53/ZendOptimizerPlus.so ; Optimizer+ On/Off switch. When set to Off, code is not optimized. zend_optimizerplus.enable=1 ; If set to On, use the current directory as a part of the script key zend_optimizerplus.use_cwd=1 ; If enabled, the Optimizer+ checks the file timestamps and updates the cache accordingly. zend_optimizerplus.validate_timestamps=1 ; How often to check file timestamps for changes to the shared memory storage allocation. (units: seconds) zend_optimizerplus.revalidate_freq=2 ; Enables or disables file search in include_path optimization zend_optimizerplus.revalidate_path=0 ; The verbosity of the Optimizer+ log zend_optimizerplus.log_verbosity_level=1 ; The Optimizer+ shared memory storage size. The amount of memory for storing precompiled PHP code in Mbytes. (units: MBytes) zend_optimizerplus.memory_consumption=64 ; The maximum number of keys (scripts) in the Optimizer+ hash table zend_optimizerplus.max_accelerated_files=2000 ; The maximum percentage of "wasted" memory until a restart is scheduled (units: %) zend_optimizerplus.max_wasted_percentage=5 ; Check the cache checksum each N requests zend_optimizerplus.consistency_checks=0 ; How long to wait (in seconds) for a scheduled restart to begin if the cache is not being accessed (units: seconds) zend_optimizerplus.force_restart_timeout=180 ; The location of the Optimizer+ blacklist file zend_optimizerplus.blacklist_filename= ; If enabled, a fast shutdown sequence is used for the accelerated code zend_optimizerplus.fast_shutdown=0 ; A bitmask, where each bit enables or disables the appropriate Optimizer+ passes zend_optimizerplus.optimization_level=0xfffffbbf ; Enables or disables the optimization passes that may take significant time, based on an internal runtime calculation zend_optimizerplus.enable_slow_optimizations=1
And finally you get Zend Optimizer installed:
Code:# php -v PHP 5.3.2-2 with Suhosin-Patch (cli) (built: Jul 18 2010 21:42:32) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with the ionCube PHP Loader v3.3.20, Copyright (c) 2002-2010, by ionCube Ltd., and [B]with Zend Optimizer+ v4.1, Copyright (c) 1999-2010, by Zend Technologies[/B]
PS. I DO NOT TEST IT on production box.
have same problem. Zend doesnt work after php from 5.2.14 to 5.3.3 updating. Does DA support Zend for 5.3.3?