Sam Panwar
asked on
How to install zend optimizer two version on window
Hi-
How to install zend optimizer 2 . X and 3.X both version on window server for php 4 and php5? Can we do this please help.
When I use installer for it then one version automatic uninstall so please help me.
How to install zend optimizer 2 . X and 3.X both version on window server for php 4 and php5? Can we do this please help.
When I use installer for it then one version automatic uninstall so please help me.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Your PHP5 php.ini is in c:\php5\php.ini, so edit that one to include the Zend elements ...
[Zend]
zend_optimizer.enable_load er=0
zend_optimizer.enable_slow =0
zend_optimizer.disable_lic ensing=1
zend_optimizer.optimizatio n_level=-1
zend_optimizer.obfuscation _level_sup port=0
zend_extension_manager.opt imizer_ts= "C:\Progra m Files\Zend\ZendOptimizer-3 .0.1\lib\O ptimizer-3 .0.1"
zend_extension_manager.ver bose=Off
zend_extension_ts="C:\Prog ram Files\Zend\ZendOptimizer-3 .0.1\lib\Z endExtensi onManager. dll"
And then edit your appropriate php.ini file for PHP4.
What SAPI are you using for PHP4 and PHP5?
CLI/CGI/FCGI/ISAPI?
I would use
C:\windows\php-xxxxx.ini where xxxx is the SAPI being used.
So, use CGI for PHP4 and this would use c:\windows\php-cgi.ini or c:\windows\php-fcgi.ini and ISAPI for PHP5 and this would use C:\windows\php-isapi.ini
I'm working on the PHP authors to extend the ini filename to include the PHP major version to allow PHP4/5/6 to all run as ISAPI and use different php.ini files php4-isapi.ini, php5-isapi.ini and php6-isapi.ini, but this is not current or expected anytime soon.
If you are capable of compiling the PHP source, then the patch is ultra simple to incorporate (just 1 .c file to edit).
[Zend]
zend_optimizer.enable_load
zend_optimizer.enable_slow
zend_optimizer.disable_lic
zend_optimizer.optimizatio
zend_optimizer.obfuscation
zend_extension_manager.opt
zend_extension_manager.ver
zend_extension_ts="C:\Prog
And then edit your appropriate php.ini file for PHP4.
What SAPI are you using for PHP4 and PHP5?
CLI/CGI/FCGI/ISAPI?
I would use
C:\windows\php-xxxxx.ini where xxxx is the SAPI being used.
So, use CGI for PHP4 and this would use c:\windows\php-cgi.ini or c:\windows\php-fcgi.ini and ISAPI for PHP5 and this would use C:\windows\php-isapi.ini
I'm working on the PHP authors to extend the ini filename to include the PHP major version to allow PHP4/5/6 to all run as ISAPI and use different php.ini files php4-isapi.ini, php5-isapi.ini and php6-isapi.ini, but this is not current or expected anytime soon.
If you are capable of compiling the PHP source, then the patch is ultra simple to incorporate (just 1 .c file to edit).
ASKER
Having said all of that, is there any reason why you don't want to use ZO3 for both PHP4 and PHP5. I run PHP4 and PHP5 on the same machine with ZO3.
Ok... Then how to configure ZO3 for both php 4 and 5
I am using php.ini which is in c:\php5\php.ini