{"id":231,"date":"2013-08-05T13:44:48","date_gmt":"2013-08-05T13:44:48","guid":{"rendered":"http:\/\/www.nicovs.be\/?p=231"},"modified":"2015-01-30T08:39:13","modified_gmt":"2015-01-30T08:39:13","slug":"install-zend-optimizer-for-php-5-2-and-earlier","status":"publish","type":"post","link":"https:\/\/www.nicovs.be\/?p=231","title":{"rendered":"Install Zend Optimizer for php 5.2 and earlier"},"content":{"rendered":"<p>Zend Optimizer has been updated and renamed to Zend Guard since PHP 5.3.<\/p>\n<p><span style=\"line-height: 1.5;\">However, you might still have some older projects running PHP 5.2, where Zend Optimizer is still needed.<\/span><\/p>\n<p>Here&#8217;s a small how to install for Ubuntu 12.04 LTS with PHP 5.2.<\/p>\n<p>First of all, download Zend Optimizer 3.3.3 through this link:\u00a0<a title=\"Zend Optimizer\" href=\"http:\/\/www.zend.com\/en\/products\/guard\/downloads-prev\">Zend<\/a><\/p>\n<p>Unpack it on your server with this command:<\/p>\n<pre class=\"lang:default decode:true\">tar -xvf ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz<\/pre>\n<p>Navigate into the data directory, and correct php version, eg:<\/p>\n<pre class=\"lang:default decode:true\">cd ZendOptimizer-3.3.9-linux-glibc23-x86_64\/data\/5_2_x_comp<\/pre>\n<p>copy the so file to the php path:<\/p>\n<pre class=\"lang:default decode:true\">cp ZendOptimizer.so \/usr\/lib\/php5\/20060613\/<\/pre>\n<p>Enable zend optimizer throught \/etc\/php5\/conf.d by typing:<\/p>\n<pre class=\"lang:default decode:true\">echo zend_extension=\/usr\/lib\/php5\/20060613\/ZendOptimizer.so &gt; \/etc\/php5\/conf.d\/zend_optimizer.ini<\/pre>\n<p>Enable Zend optimizer by reloading apache<\/p>\n<pre class=\"lang:default decode:true\">service apache2 reload<\/pre>\n<p>Check if Zend Optimizer is enabled by:<\/p>\n<pre class=\"lang:default decode:true\">php -v\r\nPHP 5.2.4-2ubuntu5 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 27 2008 20:46:51)\r\nCopyright (c) 1997-2007 The PHP Group\r\nZend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies\r\n    with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Zend Optimizer has been updated and renamed to Zend Guard since PHP 5.3. However, you might still have some older projects running PHP 5.2, where Zend Optimizer is still needed. Here&#8217;s a small how to install for Ubuntu 12.04 LTS with PHP 5.2. First of all, download Zend Optimizer 3.3.3 through this link:\u00a0Zend Unpack it [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4,45,44,31,6],"tags":[],"class_list":["post-231","post","type-post","status-publish","format-standard","hentry","category-debian","category-linux","category-php","category-php-fpm-2","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/posts\/231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=231"}],"version-history":[{"count":5,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/posts\/231\/revisions"}],"predecessor-version":[{"id":367,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=\/wp\/v2\/posts\/231\/revisions\/367"}],"wp:attachment":[{"href":"https:\/\/www.nicovs.be\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nicovs.be\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}