{"id":3882,"date":"2016-05-11T19:00:55","date_gmt":"2016-05-11T23:00:55","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2016\/05\/11\/installing-zendopcache\/"},"modified":"2021-11-04T16:39:42","modified_gmt":"2021-11-04T20:39:42","slug":"installing-zend-opcache","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/","title":{"rendered":"Installing Zend OpCache"},"content":{"rendered":"<p>This tutorial will quickly explain how to install Zend OpCache on your dedicated server. This guide requires you to be logged into your server with the root user, and the PHP version to be 5.5 or newer.<\/p>\n<div class=\"alert alert-success\" role=\"alert\"><b>Note:<\/b> You must have <a href=\"https:\/\/www.inmotionhosting.com\/support\/amp\/obtain-root-access\/\">root access<\/a> to your server to complete this guide. InMotion allows root access on all <a href=\"https:\/\/www.inmotionhosting.com\/vps-hosting\">VPS Hosting<\/a> and <a href=\"https:\/\/www.inmotionhosting.com\/dedicated-servers\">Dedicated Hosting<\/a> plans.<\/div>\n<h2>Installation<\/h2>\n<ol class=\"article_list\">\n<li>Log into your server as the root user.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li>Run the EasyApache script.\n<div class=\"cli\"><span style=\"color: red;\">\/scripts\/easyapache<\/span><\/div>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li>If you are not installing Mod RUID2 or changing Apache versions select <strong>Customize Profile<\/strong>.<\/li>\n<p><a href=\"\/support\/images\/stories\/product-guides\/dedicated\/zend\/step3.jpg\" rel=\"lightbox-0\">\n<img decoding=\"async\" class=\"std_ss\" title=\"Click here to view the larger image\" src=\"\/support\/images\/stories\/product-guides\/dedicated\/zend\/step3.jpg\" alt=\"Step 3\" width=\"200\"><\/a><\/p>\n<li>Select <strong>Next Step<\/strong> on the Apache section.<\/li>\n<p><a href=\"\/support\/images\/stories\/product-guides\/dedicated\/zend\/step4.jpg\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" title=\"Click here to view the larger image\" src=\"\/support\/images\/stories\/product-guides\/dedicated\/zend\/step4.jpg\" alt=\"Step 4\" width=\"200\"><\/a><\/p>\n<li>Select <strong>Next Step<\/strong> on the PHP section.<\/li>\n<p><a href=\"\/support\/images\/stories\/product-guides\/dedicated\/zend\/step5.jpg\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" title=\"Click here to view the larger image\" src=\"\/support\/images\/stories\/product-guides\/dedicated\/zend\/step5.jpg\" alt=\"Step 5\" width=\"200\"><\/a><\/p>\n<li>Select <strong>Exhaustive Options List<\/strong> when you get to the modules section.<\/li>\n<p><a href=\"\/support\/images\/stories\/product-guides\/dedicated\/zend\/step6.jpg\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" title=\"Click here to view the larger image\" src=\"\/support\/images\/stories\/product-guides\/dedicated\/zend\/step6.jpg\" alt=\"Step 6\" width=\"200\"><\/a><\/p>\n<li>Scroll down below PHP 5.x continued to find <strong>Opcache<\/strong>. Hit your spacebar to select the module and you should see and X in the brackets. After you do this choose <strong>Next Step<\/strong>.<\/li>\n<p><a href=\"\/support\/images\/stories\/product-guides\/dedicated\/zend\/step7.jpg\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" title=\"Click here to view the larger image\" src=\"\/support\/images\/stories\/product-guides\/dedicated\/zend\/step7.jpg\" alt=\"Step 7\" width=\"200\"><\/a><\/p>\n<li>Select <strong>Save and Build<\/strong>.<\/li>\n<p><a href=\"\/support\/images\/stories\/product-guides\/dedicated\/zend\/step8.jpg\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" title=\"Click here to view the larger image\" src=\"\/support\/images\/stories\/product-guides\/dedicated\/zend\/step8.jpg\" alt=\"Step 8\" width=\"200\"><\/a><\/p>\n<li>You will need to confirm what you are doing by selecting <strong>Yes<\/strong> to rebuild apache.<\/li>\n<p><a href=\"\/support\/images\/stories\/product-guides\/dedicated\/zend\/step9.jpg?v2016051301\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" title=\"Click here to view the larger image\" src=\"\/support\/images\/stories\/product-guides\/dedicated\/zend\/step9.jpg?v2016051301\" alt=\"Step 9\" width=\"200\"><\/a><\/p>\n<li>Another prompt will show up asking you to acknowledge you understand the changes being made to the server, you will need to select <strong>I Understand<\/strong> before the program will continue.<\/li>\n<p><a href=\"\/support\/images\/stories\/product-guides\/dedicated\/zend\/step10.jpg\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" title=\"Click here to view the larger image\" src=\"\/support\/images\/stories\/product-guides\/dedicated\/zend\/step10.jpg\" alt=\"Step 10\" width=\"200\"><\/a><\/p>\n<\/ol>\n<h2>Configuration<\/h2>\n<ol class=\"article_list\">\n<li>Run the following red command to confirm Opcache has been installed.<\/li>\n<div class=\"cli\">root@dedicated [~]# <span style=\"color: red;\">php -m|grep cache<\/span><br>\nZend OPcache<\/div>\n<li>Edit your php.ini file to add the following line at the bottom.<br>\n<strong>zend_extension=\u201d\/usr\/local\/lib\/php\/extensions\/no-debug-non-zts-20121212\/opcache.so\u201d<\/strong><p><\/p>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<\/ol>\n<p>Now your PHP scripts will get cached so they can be provided to visitors during the intial page loading. This caching engine can increase your page load speed to to 75% faster.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial will quickly explain how to install Zend OpCache on your dedicated server. This guide requires you to be logged into your server with the root user, and the PHP version to be 5.5 or newer. Note: You must have root access to your server to complete this guide. InMotion allows root access on<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4366],"tags":[],"class_list":["post-3882","post","type-post","status-publish","format-standard","hentry","category-zend"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Installing Zend OpCache | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"This this guide we will explain how to install Zend OPCache and how to enable it in your php.ini file.\" \/>\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\/support\/server\/zend\/installing-zend-opcache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installing Zend OpCache | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"This this guide we will explain how to install Zend OPCache and how to enable it in your php.ini file.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-05-11T23:00:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-04T20:39:42+00:00\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/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 Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"Installing Zend OpCache\",\"datePublished\":\"2016-05-11T23:00:55+00:00\",\"dateModified\":\"2021-11-04T20:39:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/\"},\"wordCount\":273,\"commentCount\":8,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Zend Framework\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/\",\"name\":\"Installing Zend OpCache | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2016-05-11T23:00:55+00:00\",\"dateModified\":\"2021-11-04T20:39:42+00:00\",\"description\":\"This this guide we will explain how to install Zend OPCache and how to enable it in your php.ini file.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installing Zend OpCache\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Installing Zend OpCache | InMotion Hosting","description":"This this guide we will explain how to install Zend OPCache and how to enable it in your php.ini file.","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\/support\/server\/zend\/installing-zend-opcache\/","og_locale":"en_US","og_type":"article","og_title":"Installing Zend OpCache | InMotion Hosting","og_description":"This this guide we will explain how to install Zend OPCache and how to enable it in your php.ini file.","og_url":"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2016-05-11T23:00:55+00:00","article_modified_time":"2021-11-04T20:39:42+00:00","author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"Installing Zend OpCache","datePublished":"2016-05-11T23:00:55+00:00","dateModified":"2021-11-04T20:39:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/"},"wordCount":273,"commentCount":8,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Zend Framework"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/","url":"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/","name":"Installing Zend OpCache | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2016-05-11T23:00:55+00:00","dateModified":"2021-11-04T20:39:42+00:00","description":"This this guide we will explain how to install Zend OPCache and how to enable it in your php.ini file.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/zend\/installing-zend-opcache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Installing Zend OpCache"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3882","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=3882"}],"version-history":[{"count":5,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3882\/revisions"}],"predecessor-version":[{"id":91132,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3882\/revisions\/91132"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=3882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=3882"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=3882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}