View Full Version : Zend Optimizer--no /usr/local/ path
bhogsett
12-11-2008, 06:26 AM
I am trying to use Zend Optimizer and I get a file not found error. I have modified my php.ini file a couple of times trying the suggestions in earlier threads. The error is:
Failed loading /usr/local/Zend/lib/ZendExtensionManager_TS.so: /usr/local/Zend/lib/ZendExtensionManager_TS.so: cannot open shared object file: No such file or directory
When I try to find ZendExtensionManager_TS.so with find it does not find the file.
When I do an ls at /usr/ there is no local directory only:
billhogs@billhogsett.com [~]# ls /usr/
./ X11R6@ include@ kerberos@ lib64@ man@ share@
../ bin@ java@ lib@ libexec@ sbin@ tmp@
But phpinfo shows Zend Optimizer as being enabled
Any suggestions would be greatly appreciated.
Thanks.
Bill
Falcon1986
12-11-2008, 07:43 AM
Have you tried generating a new PHP.ini file using 'PHP Config' from your cPanel? The new PHP.ini file should state the correct location of Zend at the very bottom.
Here is what my root PHP.ini file contains for Zend:
[Zend]
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
zend_optimizer.version=3.3.3
extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
BTW, this is using the single PHP.ini to apply to the root and all subdirectories. If your PHP.ini only affects scripts parallel to it, then you will need a copy of your PHP.ini in every directory where PHP scripts are executed.
bhogsett
12-11-2008, 02:06 PM
Thanks, I am at work and cannot check my php.ini file, but what you show is what I think is in my php.ini file.
The problem is there is no /usr/local directory and certainly no subdirectories to it.
My php.ini is for all directories.
Bill
Falcon1986
12-11-2008, 02:49 PM
Thanks, I am at work and cannot check my php.ini file, but what you show is what I think is in my php.ini file.
The problem is there is no /usr/local directory and certainly no subdirectories to it.
My php.ini is for all directories.
Bill
That folder is not accessible to you or any other user with HostMonster webspace. Because this is a shared server environment higher level directory access and privileges are restricted.
However, Zend should be installed on the server and ~/user/local/ is the common location for all websites on the server to call shared Zend object files.
If you still cannot get Zend to work for you contact Support over LiveChat and get the exact details cleared up. When you find the correct paths, please share it with the rest of the community.
adecold
01-17-2009, 04:45 PM
Did anyone ever get a solution to this?
I'm trying to run a cron job on a php script that requires zend and i get the same error
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.