{"id":1425,"date":"2013-04-17T21:27:41","date_gmt":"2013-04-18T01:27:41","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/blog\/?p=1425"},"modified":"2024-01-23T15:27:49","modified_gmt":"2024-01-23T20:27:49","slug":"how-to-enable-zend-optimizer","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/blog\/how-to-enable-zend-optimizer\/","title":{"rendered":"How To: Enable Zend Optimizer"},"content":{"rendered":"<p><a href=\"https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2013\/04\/zend_logo.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1422 aligncenter skip_lazy\" src=\"\/blog\/wp-content\/uploads\/2013\/04\/zend_logo-248x300.png\" alt=\"zend_logo\" width=\"115\" height=\"139\" srcset=\"https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2013\/04\/zend_logo-248x300.png 248w, https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2013\/04\/zend_logo.png 257w\" sizes=\"auto, (max-width: 115px) 100vw, 115px\" \/><\/a>The Zend Optimizer is a free application that can boost the performance of your <a href=\"https:\/\/www.inmotionhosting.com\/php-hosting\">PHP<\/a> sites. It works by going over your code and optimizing it for faster execution. This means your site can load faster for your users while also utilizing less of the server resources.<\/p>\n<p>Zend Optimizer can be enabled on servers with PHP 5.2 or higher (this includes most of our servers). To enable this feature, first, add the two lines below to your .htaccess file in order to enable the use of custom PHP settings. Be sure to replace [username] with your actual cPanel username.<\/p>\n<p><span style=\"font-family: Courier New,monospace;\"><span style=\"font-size: small;\">suphp_configpath \/home\/[username]\/public_html<br \/>\nAddHandler application\/x-httpd-php52 .php<\/span><\/span><\/p>\n<p>Next, you will need to enable the Zend Optimizer extension by adding the following line to your custom php.ini file. This line can be added anywhere, though we recommend having it at the bottom of the file.<\/p>\n<p><span style=\"font-family: Courier New,monospace;\"><span style=\"font-size: small;\">zend_extension=\/opt\/php52\/lib\/php\/extensions\/no-debug-non-zts-20060613\/ZendOptimizer.so<\/span><\/span><\/p>\n<p>If configured correctly, a phpinfo page will then display &#8220;with Zend Optimizer v3.3.9&#8221; as one of the available Zend modules. More information about creating a phpinfo page is available at <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/general-server-setup\/create-phpinfo-page-to-see-php-settings\">https:\/\/www.inmotionhosting.com\/support\/website\/general-server-setup\/create-phpinfo-page-to-see-php-settings<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Zend Optimizer is a free application that can boost the performance of your PHP sites. It works by going over your code and optimizing it for faster execution. This means your site can load faster for your users while also utilizing less of the server resources. Zend Optimizer can be enabled on servers with<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/blog\/how-to-enable-zend-optimizer\/\"> Read More ><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[358],"tags":[],"class_list":["post-1425","post","type-post","status-publish","format-standard","hentry","category-web-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To: Enable Zend Optimizer | InMotion Hosting<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/blog\/how-to-enable-zend-optimizer\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To: Enable Zend Optimizer | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"The Zend Optimizer is a free application that can boost the performance of your PHP sites. It works by going over your code and optimizing it for faster execution. This means your site can load faster for your users while also utilizing less of the server resources. Zend Optimizer can be enabled on servers with Read More &gt;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/blog\/how-to-enable-zend-optimizer\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\" \/>\n<meta property=\"article:published_time\" content=\"2013-04-18T01:27:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-23T20:27:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2025\/07\/OG-Homepage.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"InMotion Hosting\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@inmotionhosting\" \/>\n<meta name=\"twitter:site\" content=\"@inmotionhosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To: Enable Zend Optimizer | InMotion Hosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/blog\/how-to-enable-zend-optimizer\/","og_locale":"en_US","og_type":"article","og_title":"How To: Enable Zend Optimizer | InMotion Hosting","og_description":"The Zend Optimizer is a free application that can boost the performance of your PHP sites. It works by going over your code and optimizing it for faster execution. This means your site can load faster for your users while also utilizing less of the server resources. Zend Optimizer can be enabled on servers with Read More >","og_url":"https:\/\/www.inmotionhosting.com\/blog\/how-to-enable-zend-optimizer\/","og_site_name":"InMotion Hosting Blog","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting","article_published_time":"2013-04-18T01:27:41+00:00","article_modified_time":"2024-01-23T20:27:49+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2025\/07\/OG-Homepage.png","type":"image\/png"}],"author":"InMotion Hosting","twitter_card":"summary_large_image","twitter_creator":"@inmotionhosting","twitter_site":"@inmotionhosting","twitter_misc":{"Written by":"InMotion Hosting","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.inmotionhosting.com\/blog\/how-to-enable-zend-optimizer\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/blog\/how-to-enable-zend-optimizer\/"},"author":{"name":"InMotion Hosting","@id":"https:\/\/www.inmotionhosting.com\/blog\/#\/schema\/person\/f21a89c83c7697a760c96cfe58e646bc"},"headline":"How To: Enable Zend Optimizer","datePublished":"2013-04-18T01:27:41+00:00","dateModified":"2024-01-23T20:27:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/blog\/how-to-enable-zend-optimizer\/"},"wordCount":199,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/blog\/#organization"},"articleSection":["Web Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/blog\/how-to-enable-zend-optimizer\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/blog\/how-to-enable-zend-optimizer\/","url":"https:\/\/www.inmotionhosting.com\/blog\/how-to-enable-zend-optimizer\/","name":"How To: Enable Zend Optimizer | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/blog\/#website"},"datePublished":"2013-04-18T01:27:41+00:00","dateModified":"2024-01-23T20:27:49+00:00","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/blog\/how-to-enable-zend-optimizer\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/blog\/how-to-enable-zend-optimizer\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/blog\/how-to-enable-zend-optimizer\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Web Development","item":"https:\/\/www.inmotionhosting.com\/blog\/web-development\/"},{"@type":"ListItem","position":3,"name":"How To: Enable Zend Optimizer"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/blog\/#website","url":"https:\/\/www.inmotionhosting.com\/blog\/","name":"InMotion Hosting Blog","description":"Web Hosting Strategy, Trends and Security","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/blog\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2019\/11\/imh-logo-all-colors-big.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2019\/11\/imh-logo-all-colors-big.jpg","width":1630,"height":430,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting","https:\/\/x.com\/inmotionhosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/blog\/#\/schema\/person\/f21a89c83c7697a760c96cfe58e646bc","name":"InMotion Hosting","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/eb965eada0c0513dd2e1976b21fe270fa4f19ac273960fc080f9d46b81b353a4?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/eb965eada0c0513dd2e1976b21fe270fa4f19ac273960fc080f9d46b81b353a4?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eb965eada0c0513dd2e1976b21fe270fa4f19ac273960fc080f9d46b81b353a4?s=96&r=g","caption":"InMotion Hosting"},"url":"https:\/\/www.inmotionhosting.com\/blog\/author\/imhmainadmin\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/posts\/1425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/comments?post=1425"}],"version-history":[{"count":7,"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/posts\/1425\/revisions"}],"predecessor-version":[{"id":73326,"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/posts\/1425\/revisions\/73326"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/media?parent=1425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/categories?post=1425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/tags?post=1425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}