Installing Zend Optimizer

Installing Zend Optimizer

Posted by: Tenstones
Posted on: 2009-02-11 21:47:00

I've followed this guide to get zend optimizer working on my custom php:
http://www.yinfor.com/blog/archives/2008/05/install_zend_optimizer_33_on_c.html

I've done it correctly yet I constantly get errors that zendoptimizer.so is not found.

My php.ini says:
; Zend Optimizer options
zend_optimizer.optimization_level=15
zend_extension=/mnt/local/home/me/etc/php5/lib/php/extensions/zendoptimizer.so

My error.log gets this error every 10-20 seconds:
[error] [client 72.30.142.187] Failed loading /mnt/local/home/me/etc/php5/lib/php/extensions/zendoptimizer.so: /mnt/local/home/me/etc/php5/lib/php/extensions/zendoptimizer.so: cannot open shared object file: No such file or directory

That's the correct directory, I can see the file, and it's chmod 775 just like my apc.so that works perfectly.

Tenstones Gaming Community

Re: Installing Zend Optimizer

Posted by: sXi
Posted on: 2009-02-12 01:20:00

zend_extension="/home/me/etc/php5/lib/php/extensions/ZendOptimizer.so"




How To Install PHP.INI / ionCube on DreamHost

Re: Installing Zend Optimizer

Posted by: Tenstones
Posted on: 2009-02-12 09:37:00

[error] [client 66.249.71.142] Failed loading /home/me/etc/php5/lib/php/extensions/ZendOptimizer.so: /home/me/etc/php5/lib/php/extensions/ZendOptimizer.so: cannot open shared object file: No such file or directory


Tenstones Gaming Community

Re: Installing Zend Optimizer

Posted by: sXi
Posted on: 2009-02-12 09:40:00

I was hoping it was just an Alt CaPs problem frown


DH defaults in a stock account you might play with...

zend_extension="/usr/local/dh/apache/template/phpext/ZendExtensionManager.so"
zend_extension="/usr/local/dh/apache/template/phpext/zend_optimizer5/ZendOptimizer.so"




How To Install PHP.INI / ionCube on DreamHost

Re: Installing Zend Optimizer

Posted by: Tenstones
Posted on: 2009-02-12 09:55:00

zend_extension="/usr/local/dh/apache/template/phpext/zend_optimizer5/ZendOptimizer.so"

Seems to work, it's loaded in my phpinfo now at least.

Tenstones Gaming Community

Re: Installing Zend Optimizer

Posted by: Tenstones
Posted on: 2009-02-12 10:03:00

That loaded but it gave me internal server errors when it was called.

Tenstones Gaming Community

Re: Installing Zend Optimizer

Posted by: sXi
Posted on: 2009-02-12 10:49:00

Did you select the x86 (64 bit) version from Zend?




How To Install PHP.INI / ionCube on DreamHost

Re: Installing Zend Optimizer

Posted by: Tenstones
Posted on: 2009-02-12 13:53:00

How would I do that when I'm using the DH files?

Tenstones Gaming Community

Re: Installing Zend Optimizer

Posted by: sXi
Posted on: 2009-02-12 14:23:00

I meant initially, sorry for any confusion.

The blog link you provided up top indicates to download the 32 bit files. Your website is on a 64 bit machine.




How To Install PHP.INI / ionCube on DreamHost

Re: Installing Zend Optimizer

Posted by: Tenstones
Posted on: 2009-02-12 14:37:00

I will try that now, but I would have thought it would have worked fine with the DH files. Here is the error.log

[error] [client 72.30.142.187] Premature end of script headers: php.cgi
[Thu Feb 12 09:54:11 2009] [error] [client 72.30.142.187] File does not exist: /home/me/tenstones.net/internal_error.html

Tenstones Gaming Community

Re: Installing Zend Optimizer

Posted by: Tenstones
Posted on: 2009-02-12 22:46:00

Getting the 64 bit version got my local version to load.

I figured out that APC and a Zend don't mix so I changed to eAccelerator and according to phpspeed it's faster. Everything is working now.

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with eAccelerator v0.9.5.1, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies

Tenstones Gaming Community

Tags: zend optimizercorrect directoryshared objectgaming communitychmodapcinilib