Link to home
Start Free TrialLog in
Avatar of Sam Panwar
Sam PanwarFlag for India

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.
ASKER CERTIFIED SOLUTION
Avatar of Richard Quadling
Richard Quadling
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sam Panwar

ASKER

Very very thank you for effort ok I will try and can you please also advise about you tell me this

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
Your PHP5 php.ini is in c:\php5\php.ini, so edit that one to include the Zend elements ...

[Zend]
zend_optimizer.enable_loader=0
zend_optimizer.enable_slow=0
zend_optimizer.disable_licensing=1
zend_optimizer.optimization_level=-1
zend_optimizer.obfuscation_level_support=0
zend_extension_manager.optimizer_ts="C:\Program Files\Zend\ZendOptimizer-3.0.1\lib\Optimizer-3.0.1"
zend_extension_manager.verbose=Off
zend_extension_ts="C:\Program Files\Zend\ZendOptimizer-3.0.1\lib\ZendExtensionManager.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).