{"id":459,"date":"2019-05-19T06:58:35","date_gmt":"2019-05-19T06:58:35","guid":{"rendered":"https:\/\/www.24x7serversupport.com\/24x7serversupport-blog\/?p=459"},"modified":"2021-05-17T19:29:57","modified_gmt":"2021-05-17T13:59:57","slug":"cpanel-easyapache-4-installing-redis-and-redis-php-extension","status":"publish","type":"post","link":"https:\/\/www.24x7serversupport.com\/blog\/cpanel-easyapache-4-installing-redis-and-redis-php-extension\/","title":{"rendered":"cPanel EasyApache 4 Installing Redis and Redis PHP extension"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">cPanel EasyApache 4 Installing Redis and Redis PHP extension<\/h2>\n\n\n\n<p>Installing the Redis daemon:<\/p>\n\n\n\n<p>for&nbsp;<strong>CentOS 6\/RHEL 6<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rpm -ivh https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-6.noarch.rpm\nrpm -ivh http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-6.rpm\nyum -y install redis --enablerepo=remi --disableplugin=priorities\nchkconfig redis on\nservice redis start<\/code><\/pre>\n\n\n\n<p>for&nbsp;<strong>CentOS 7\/RHEL 7<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rpm -ivh https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm\nrpm -ivh http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-7.rpm\nyum -y install redis --enablerepo=remi --disableplugin=priorities\nsystemctl enable redis\nsystemctl start redis<\/code><\/pre>\n\n\n\n<p>Installing the Redis PHP extension for all available versions of PHP.<br><strong>Copy and paste the entire block into SSH, don&#8217;t do line by line.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>for phpver in $(ls -1 \/opt\/cpanel\/ |grep ea-php | sed 's\/ea-php\/\/g') ; do\ncd ~\nwget -O redis.tgz https:\/\/pecl.php.net\/get\/redis\ntar -xvf redis.tgz\ncd ~\/redis* || exit\n\/opt\/cpanel\/ea-php\"$phpver\"\/root\/usr\/bin\/phpize\n.\/configure --with-php-config=\/opt\/cpanel\/ea-php\"$phpver\"\/root\/usr\/bin\/php-config\nmake clean &amp;&amp; make install\necho 'extension=redis.so' > \/opt\/cpanel\/ea-php\"$phpver\"\/root\/etc\/php.d\/redis.ini\nrm -rf ~\/redis*\ndone\n\n\/scripts\/restartsrv_httpd\n\/scripts\/restartsrv_apache_php_fpm<\/code><\/pre>\n\n\n\n<p>All done! Check to make sure the PHP extension is loaded in each version of PHP:<br><strong>Copy and paste the entire block into SSH, don&#8217;t do line by line.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>for phpver in $(ls -1 \/opt\/cpanel\/ |grep php | sed 's\/ea-php\/\/g') ; do\necho \"PHP $phpver\" ; \/opt\/cpanel\/ea-php$phpver\/root\/usr\/bin\/php -i |grep \"Redis Support\"\ndone<\/code><\/pre>\n\n\n\n<p>Output should be:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PHP 55\nRedis Support => enabled\nPHP 56\nRedis Support => enabled\nPHP 70\nRedis Support => enabled\nPHP 71\nRedis Support => enabled<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>cPanel EasyApache 4 Installing Redis and Redis PHP extension Installing the Redis daemon: for&nbsp;CentOS 6\/RHEL 6 for&nbsp;CentOS 7\/RHEL 7 Installing the Redis PHP extension for all available versions of PHP.Copy and paste the entire block into SSH, don&#8217;t do line by line. All done! Check to make sure the PHP extension is loaded in each [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[30,38,33,34],"tags":[32,103,104,105,106],"class_list":["post-459","post","type-post","status-publish","format-standard","hentry","category-centos","category-cloudlinux","category-cpanel","category-linux","tag-cpanel","tag-easyapache","tag-easyapache4","tag-php-extension","tag-redis"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install redis in easyapache4 in cpanel<\/title>\n<meta name=\"description\" content=\"How to install Redis and redis php extension in Cpanel EasyApache4, Command to install redis php extension in cpanel, Command to install redis in EA4\" \/>\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.24x7serversupport.com\/blog\/cpanel-easyapache-4-installing-redis-and-redis-php-extension\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install redis in easyapache4 in cpanel\" \/>\n<meta property=\"og:description\" content=\"How to install Redis and redis php extension in Cpanel EasyApache4, Command to install redis php extension in cpanel, Command to install redis in EA4\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.24x7serversupport.com\/blog\/cpanel-easyapache-4-installing-redis-and-redis-php-extension\/\" \/>\n<meta property=\"og:site_name\" content=\"24x7serversupport Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-19T06:58:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-17T13:59:57+00:00\" \/>\n<meta name=\"author\" content=\"24x7support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:site\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"24x7support\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/cpanel-easyapache-4-installing-redis-and-redis-php-extension\/\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/cpanel-easyapache-4-installing-redis-and-redis-php-extension\/\",\"name\":\"How to install redis in easyapache4 in cpanel\",\"isPartOf\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\"},\"datePublished\":\"2019-05-19T06:58:35+00:00\",\"dateModified\":\"2021-05-17T13:59:57+00:00\",\"author\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\"},\"description\":\"How to install Redis and redis php extension in Cpanel EasyApache4, Command to install redis php extension in cpanel, Command to install redis in EA4\",\"breadcrumb\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/cpanel-easyapache-4-installing-redis-and-redis-php-extension\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.24x7serversupport.com\/blog\/cpanel-easyapache-4-installing-redis-and-redis-php-extension\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/cpanel-easyapache-4-installing-redis-and-redis-php-extension\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.24x7serversupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"cPanel EasyApache 4 Installing Redis and Redis PHP extension\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/\",\"name\":\"24x7serversupport Blog\",\"description\":\"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\",\"name\":\"24x7support\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install redis in easyapache4 in cpanel","description":"How to install Redis and redis php extension in Cpanel EasyApache4, Command to install redis php extension in cpanel, Command to install redis in EA4","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.24x7serversupport.com\/blog\/cpanel-easyapache-4-installing-redis-and-redis-php-extension\/","og_locale":"en_US","og_type":"article","og_title":"How to install redis in easyapache4 in cpanel","og_description":"How to install Redis and redis php extension in Cpanel EasyApache4, Command to install redis php extension in cpanel, Command to install redis in EA4","og_url":"https:\/\/www.24x7serversupport.com\/blog\/cpanel-easyapache-4-installing-redis-and-redis-php-extension\/","og_site_name":"24x7serversupport Blog","article_published_time":"2019-05-19T06:58:35+00:00","article_modified_time":"2021-05-17T13:59:57+00:00","author":"24x7support","twitter_card":"summary_large_image","twitter_creator":"@24x7serversuppo","twitter_site":"@24x7serversuppo","twitter_misc":{"Written by":"24x7support","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.24x7serversupport.com\/blog\/cpanel-easyapache-4-installing-redis-and-redis-php-extension\/","url":"https:\/\/www.24x7serversupport.com\/blog\/cpanel-easyapache-4-installing-redis-and-redis-php-extension\/","name":"How to install redis in easyapache4 in cpanel","isPartOf":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#website"},"datePublished":"2019-05-19T06:58:35+00:00","dateModified":"2021-05-17T13:59:57+00:00","author":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401"},"description":"How to install Redis and redis php extension in Cpanel EasyApache4, Command to install redis php extension in cpanel, Command to install redis in EA4","breadcrumb":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/cpanel-easyapache-4-installing-redis-and-redis-php-extension\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.24x7serversupport.com\/blog\/cpanel-easyapache-4-installing-redis-and-redis-php-extension\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.24x7serversupport.com\/blog\/cpanel-easyapache-4-installing-redis-and-redis-php-extension\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.24x7serversupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"cPanel EasyApache 4 Installing Redis and Redis PHP extension"}]},{"@type":"WebSite","@id":"https:\/\/www.24x7serversupport.com\/blog\/#website","url":"https:\/\/www.24x7serversupport.com\/blog\/","name":"24x7serversupport Blog","description":"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401","name":"24x7support","url":"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/comments?post=459"}],"version-history":[{"count":1,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/459\/revisions"}],"predecessor-version":[{"id":3348,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/459\/revisions\/3348"}],"wp:attachment":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media?parent=459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/categories?post=459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/tags?post=459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}