Today I spent half a day before I realized how to install Zend Optimizer correctly. The question arose after installing Zend Server Community Edition. Description of this process under the cut.
Install Zend Optimizer
Downloading Zend.com with Optimizer version for your platform. The first problem I had was with the fact that I tried to get the x86_32 version to work under the x86_64 platform. But I think you do not repeat my stupidity.
Unpack the archive. It is advisable to do this in / home / username / someFolder. I have a couple of times the installer swore on the wrong path.
Go to the folder and execute sudo ./install.sh In theory, it should have been installed without sudo, but again, in an attempt to find the cause of the installation curve, I ran it through sudo.
Next, the pseudo-gray installer will boot. We accept the terms of the license agreement (Exit, Yes).
Choose a folder for installation. By default, / usr / local / Zend is written there, but for example, I have already installed Zend Studio in this folder, so I chose / usr / local / Zend / Optimizer
Specify the path to the file php.ini (/ etc / php5 / apache2) It should be there, and at the same time be a file, not a symlink (this happens after installing Zend Server, which moves it into its depths :).
Confirm the path to apachectl (/ usr / sbin / apache2ctl)
Next, ask for the location of the Apache binary. Attention! Here you need to write the path to the config (/etc/apache2/apache2.conf).
If the config lies along this path, then a window will appear with a choice of the Apache version. Choosing Apache 2.xx
Then there is a message that php.ini was moved from / etc / php / apache2 to / usr / local / Zend / etc with the creation of a symbolic link, and the original php.ini is saved as /etc/php/apache2/php.ini_zend_optimizer .bak
The installer will ask if we want to restart the server. Refuse!
Restart it yourself (/etc/init.d/apache2 restart).
Everything, after restarting, the server will begin to work adequately with the files that have passed through Zend Encoder.
Zend Server and Zend Optimizer
So it was not possible to achieve collaboration Zend Server with Zend Optimizer. The reason, I think in Zend Debug. For their collaboration, you must first download Debug, then Optimizer. But neither the change of the order of loading zend extensions in Zend Server, nor the attempt to manually write down everything you need in php.ini resulted in nothing. Disabling Debug via the server’s web interface also did nothing. I also tried to connect the optimizer back in php.ini, but after inserting the zend_extension_ts lines in php.ini, no Zend Server module was connected and literally everything fell off (extension manager, debugger, optimizer, zend data cache, etc.). I would also like to note that instead of Optimizer Zend Server includes some kind of Optimizer + but it does not allow running scripts encoded with zend encoder.
My only suggestion is how to make this fraternity work to find somewhere the Guard component from Zend Server, but at the moment I could not find it. ')
If anyone knows a recipe for launching D & O would be grateful for the help. Also in the future I plan to study the principles of operation of Zend Extension Manager, if it is interesting for habrayusers, I'll sprinkle an article.