Install Zend Optimizer on Ubuntu 9.04

    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.

    image

    Install Zend Optimizer


    • Download from Zend.com the version of Optimizer for our platform. The first problem I had was that I was trying 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 since I have a couple of times the installer swore on the wrong path.
    • We go into the folder and run sudo ./install.sh. In theory, it should have been installed without sudo, but again, in an attempt to find the reason for the installation curve, I started it through sudo.
    • Next, the pseudo-graysic installer will load. We accept the terms of the license agreement (Exit, Yes).
    • Select the folder to install. By default, / usr / local / Zend is written there. But for example, I already had Zend Studio installed in this folder, so I selected / usr / local / Zend / Optimizer
    • Specify the path to the php.ini file (/ etc / php5 / apache2) It should be there, and at the same time be the file, not the symlink (this happens after installing Zend Server, which moves it to its bowels :).
    • Confirm apachectl path (/ usr / sbin / apache2ctl)
    • Next it will ask you to specify the location of Apache binary. Attention! Here you need to write the path to the config (/etc/apache2/apache2.conf).
    • If the config is on this path, a window with a choice of Apache version will be displayed. Choosing Apache 2.xx
    • Then comes the 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 was saved as /etc/php/apache2/php.ini_zend_optimizer .bak
    • The installer will ask if we want to restart the server. We refuse!
    • We restart it ourselves (/etc/init.d/apache2 restart).

    Everything, after a restart, the server will begin to work adequately with files that have passed through Zend Encoder.

    Zend Server and Zend Optimizer


    It was not possible to achieve collaboration between Zend Server and Zend Optimizer. The reason, as I think in Zend Debug. To work together, you first need to download Debug, then Optimizer. But neither a change in the order of loading zend extensions in Zend Server, nor an attempt to manually write everything that is needed in php.ini led to anything. Disabling Debug through the server’s web interface also failed. I also tried to connect optimizer back in php.ini, but after inserting the zend_extension_ts lines in php.ini, some Zend Server module didn’t connect and literally everything fell off (extension manager, debugger, optimizer, zend data cache, etc.). I would also like to note that instead of Optimizer, some kind of Optimizer + is included in the Zend Server, but it does not allow running scripts encoded by zend encoder.

    My only suggestion on how to make this fraternity work is to find the Guard component from Zend Server somewhere, but at the moment I could not find it.

    If anyone knows the recipe for launching D&O, I would appreciate help. Also in the future I plan to study the principles of the Zend Extension Manager, if it will be interesting for the habrayuzer, I’ll cover the article.

    Links


    forum.ubuntu.ru/index.php?topic=32333.0
    blog.tigeryao.com/2008/how-to-allow-zend-optimizer-and-zend-debugger-coexist.html
    www.zend.com/forums/index. php? goto = 15338 & t = msg

    Also popular now: