php 5.3.3 and no Zend Optimizer

CrazyLane

Verified User
Joined
Dec 28, 2004
Messages
119
Any one have a time line on Zend Optimizer? Its been over a year! I'm getting tired of waiting and just might drop it all together.
 
Welcome to the club, i tried for a few hours now, script doesnt work etc..

back to 5.2.14 :)
 
Maybe this can help

You will need 7z archiver, so install it
(for Debian-like OS thru apt-get or aptitude)
Code:
# aptitude install p7zip
or use yum (for RHEL OS)
Code:
# yum 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.
 
Last edited:
I not tested with RHEL
but reading zend forum i saw that ppl got error on centos:
Code:
ZendOptimizerPlus.so : undefined symbol: shm_open
 
I followed the example. It shows up in the phpinfo however Apache throwa seg faults for sites
 
on centos ?

tomorrow will setup test-vps and will try to test new zend with centos
 
Work with or without EA

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
 
ah. okay then :)

Did you change setting for zend in php.ini ?
Could you post more info?
This will help to other members setup zend with php 5.3
 
Yes I used the one from above and put at the end of the php.ini file and that seemed to work. Then I added EA after that and I looked in the /tmp and it seems to working.
 
I've upgraded all servers and vps's to 5.3.3 and have opted for EA and dropped supporting Zend Optimizer. I actually have noticed less since doing so.
 
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.

hi Snk, on your code i got an error when i try with 7zip :
...
Extracting zend/bin/watchdog
Extracting zend/etc/zem_order
Extracting zend/bin/zendcontroller
ERROR: E_FAIL


After this ERROR, i cannot find the file ZendOptimizerPlus.so furthermore, where are the zend.extension to let Zend Optimizer work should i use the default one installed with DA?

Thanks in advance for the answer
 
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?
 
Back
Top