Hello Marcos,
Monday, January 14, 2008, 7:18:27 PM, you wrote:
quoted text > Hello Evgeniy,
quoted text > You can try this how-to, this might work for you:
quoted text > 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
quoted text > 2. Untar (tar -xzf ZendOpt*), and fetch the files
->> ZendOptimizer*/data/ZendExtensionManager.so
->> ZendOptimizer*/data/5_1_x_comp/ZendOptimizer.so
quoted text > where 5_1_x is the php you have installed
quoted text > 3. Put those file somewhere clean like
->> /var/www/lib/php/ZendExtensionManager.so
->> /var/www/lib/php/ZendOptimizer.so
quoted text > you NEED to keep the names unchanged
quoted text > 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
quoted text > 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
quoted text > 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
quoted text > 6. Test
> Reboot your webserver
> # apachectl stop
> # apachectl start
> Write down one php page containing <? phpinfo(); ?> and browse it !
quoted text > ----- Original Message -----
> From: "Evgeniy Sudyr" <eject@cdu.edu.ua>
> To: <misc@openbsd.org>
> Sent: Monday, January 14, 2008 9:25 AM
> Subject: Zend Optimizer with apache and php5 on 4.2
quoted text > Hi all,
quoted text > I want use Zend optimizer with apache and php5.
quoted text > 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
quoted text > I put lines below to php.ini
quoted text > ;zend_optimizer.optimization_level=15
> zend_extension="/var/www/lib/ZendOptimizer.so"
quoted text > Module not loading :(
quoted text > # 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
quoted text > Is it possible run Zend optimizer with -current or 4.2 ? Please give a
> bit instructions how make it workable.
Unfortunately I can`t make it working :( nothing helps.
--
Best regards,
Evgeniy
mailto:eject@cdu.edu.ua