Installing Zend Optimizer


#1

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


#2

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

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#3

[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


#4

I was hoping it was just an Alt CaPs problem :frowning:

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"

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#5

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


#6

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

Tenstones Gaming Community


#7

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

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#8

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

Tenstones Gaming Community


#9

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.

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#10

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


#11

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 © 1998-2008 Zend Technologies
with eAccelerator v0.9.5.1, Copyright © 2004-2006 eAccelerator, by eAccelerator
with Zend Extension Manager v1.2.2, Copyright © 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright © 1998-2007, by Zend Technologies

Tenstones Gaming Community