Hello Evgeniy,

You can try this how-to, this might work for you:

Solution for ZendOptimizer to work under OpenBSD 4.1/i386
1. Download the file for OpenBSD 3.x as distributed by Zend
currently ZendOptimizer-3.2.8-openbsd3.4-i386.tar.gz

2. Untar (tar -xzf ZendOpt*), and fetch the files
-> ZendOptimizer*/data/ZendExtensionManager.so
-> ZendOptimizer*/data/5_1_x_comp/ZendOptimizer.so
where 5_1_x is the php you have installed

3. Put those file somewhere clean like
-> /var/www/lib/php/ZendExtensionManager.so
-> /var/www/lib/php/ZendOptimizer.so
you NEED to keep the names unchanged

4. Simulate old libs (here's the magic)
type in the console the following command
# ln -s libm.so.2.3 /usr/lib/libm.so.1.0

Alternatively, if you don't like symlinking you can edit the binaries and 
change the
string 'libm.so.1.0' into 'libm.so.2.3' in both of Zend*.so files
- change 0x[31 2E 30] -> 0x[32 2E 33] in ZendExtensionManager.so at offset 
0x0720
- change 0x[31 2E 30] -> 0x[32 2E 33] in ZendOptimizer.so at offset 0xCEAE

5. Edit your /var/www/conf/php.ini and add the section
[Zend]
zend_extension=/var/www/lib/php/ZendExtensionManager.so
zend_extension=/var/www/lib/php/ZendOptimizer.so

6. Test
Reboot your webserver
# apachectl stop
# apachectl start
Write down one php page containing <? phpinfo(); ?> and browse it !



----- Original Message ----- 
From: "Evgeniy Sudyr" <[EMAIL PROTECTED]>
To: <misc@openbsd.org>
Sent: Monday, January 14, 2008 9:25 AM
Subject: Zend Optimizer with apache and php5 on 4.2


Hi all,

I want use Zend optimizer with apache and php5.

I downloaded  ZendOptimizer-3.3.0a-openbsd3.4-i386.tar.gz from Zend
website (latest version is only for 3.4) and unpacked archive and copied PHP 
module from
/data/5_2_x_comp/ZendOptimizer.so to /var/www/lib/ZendOptimizer.so

I put lines below to php.ini

;zend_optimizer.optimization_level=15
zend_extension="/var/www/lib/ZendOptimizer.so"

Module not loading :(


# php -v
Failed loading /var/www/lib/ZendOptimizer.so:  Cannot load specified object
PHP 5.2.3 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 16 2007 02:21:38)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies


Is it possible run Zend optimizer with -current or 4.2 ? Please give a
bit instructions how make it workable.




-- 
Best regards,
 Evgeniy                          mailto:[EMAIL PROTECTED]

Reply via email to