LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem with Zend Optimizer 3.0.1 Install (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-zend-optimizer-3-0-1-install-479326/)

dthai 09-01-2006 12:26 AM

Problem with Zend Optimizer 3.0.1 Install
 
My system is Fedora Core 5, apache 2.2.3, PHP 5.1.6, MySQL 5.0.24. I have installed Zend Optimizer 3.0.1 but when the installation completed, my info.php page didn't show the information about Zend Optimizer had been installed. But when I check with the command php -v, the system showed me that the Zend Optimizer 3.0.1 has been installed but I can't use my encoded web applications. It's so weird and I don't know how to solve my problem. Please help me to solve it out, thank you very much.

This is my info.php content:

Code:

System        Linux localhost.localdomain 2.6.15-1.2054_FC5 #1 Tue Mar 14 15:48:33 EST 2006 i686
Build Date        Sep 1 2006 11:53:25
Configure Command        './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-config-file-path=/usr/local/Zend/etc/php.ini' '--with-mysql=/usr/' '--with-curl=/usr/local/bin/curl' '--with-gd=/usr/local/' '--with-pear=/usr/local/PEAR-1.4.11/' '--with-openssl=/usr/local/ssl/'
Server API        Apache 2.0 Handler
Virtual Directory Support        disabled
Configuration File (php.ini) Path        /usr/local/Zend/etc/php.ini
PHP API        20041225
PHP Extension        20050922
Zend Extension        220051025
Debug Build        no
Thread Safety        disabled
Zend Memory Manager        enabled
IPv6 Support        enabled
Registered PHP Streams        php, file, http, ftp, https, ftps
Registered Stream Socket Transports        tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters        string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies


bathory 09-02-2006 09:04 AM

This is the output of a standard php installation which provides by default support for the Zend engine. If you had Zend optimization the output should be something like this:
Code:

Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
    with Zend Extension Manager v1.0.8, Copyright (c) 2003-2005, by Zend Technologies
    with Zend Optimizer v2.5.10, Copyright (c) 1998-2005, by Zend Technologies

To see what's wrong check if your working php.ini contains the following [Zend] section:
Code:

[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.5.10
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2.5.10
zend_optimizer.version=2.5.10a
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

Of course the Zend installation path may be different in your case.
Note also that this php.ini is in fact a symlink to /usr/local/Zend/etc/php.ini

dthai 09-02-2006 01:15 PM

My problem has been solved, thanks anyway. I tried to compile a previous version of PHP (in this case is 5.1.2) and the Zend Optimizer 3.0.1 loaded successfully. So I think PHP 5.1.6 doesn't support Zend Optimizer 3.0.1 yet.


All times are GMT -5. The time now is 03:03 PM.