{"id":4388,"date":"2021-07-20T11:56:57","date_gmt":"2021-07-20T11:56:57","guid":{"rendered":"https:\/\/puvox.software\/blog\/?p=4388"},"modified":"2024-02-15T07:43:41","modified_gmt":"2024-02-15T07:43:41","slug":"install-redis-cache-for-php-8","status":"publish","type":"post","link":"https:\/\/puvox.software\/blog\/install-redis-cache-for-php-8\/","title":{"rendered":"Install Redis Cache for PHP-8"},"content":{"rendered":"<div class=\"default-content-clss content_4388 type_post \">\r\n<p class=\"wp-block-paragraph\">There may be some tricky parts involved, and to avoid spending hours, this steps might give you some help, to install Redis Cache for PHP-8 on linux\/ubuntu OS.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Regular Install<\/h2>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li>Install Redis system-wide: <a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-and-secure-redis-on-ubuntu-18-04\">https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-and-secure-redis-on-ubuntu-18-04<\/a><\/li>\r\n<li>Then install <a href=\"https:\/\/github.com\/phpredis\/phpredis\"><code>redis<\/code><\/a> php-extension using (now <a href=\"https:\/\/wiki.php.net\/rfc\/deprecate-pear-include-composer\">industrial-standard<\/a> declared) <a href=\"https:\/\/github.com\/FriendsOfPHP\/pickle\"><code>pickle<\/code><\/a>:<br \/><code>pickle install igbinary<\/code> <br \/>#then add extension=igbinary.so in php.ini<br \/><code>pickle install redis<\/code> <br \/>and read that Github page to read use-case examples.<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Docker<\/h2>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">RUN apt install redis-server<br \/>RUN wget https:\/\/github.com\/FriendsOfPHP\/pickle\/releases\/latest\/download\/pickle.phar &amp;&amp; chmod +x pickle.phar &amp;&amp; mv pickle.phar \/usr\/bin\/pickle<br \/>RUN pickle install igbinary &amp;&amp; docker-php-ext-enable igbinary #or add extension=igbinary.so in php.ini<br \/>RUN pickle install redis &amp;&amp; docker-php-ext-enable redis #or add extension=redis.so in php.ini<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Note: if using docker WSL, you might need &#8220;supervisor auto&#8221; instead of &#8220;systemd&#8221;, or manually start by: <code>sudo service redis-server start<\/code> (or adding in crontab to execute on every reboot: <code>@reboot service redis-server start<\/code> )<\/p>\r\n<\/div>","protected":false},"excerpt":{"rendered":"<div class=\"default-content-clss excerpt_4388 type_post \"><p>There may be some tricky parts involved, and to avoid spending hours, this steps might give you some help, to install Redis Cache for PHP-8 on linux\/ubuntu OS. Regular Install<a class=\"excerpt-read-more\" href=\"https:\/\/puvox.software\/blog\/install-redis-cache-for-php-8\/\">(Continue Reading)<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":5518,"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":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","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":[17,13],"tags":[],"class_list":["post-4388","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-coding","category-website"],"_links":{"self":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/4388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/comments?post=4388"}],"version-history":[{"count":1,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/4388\/revisions"}],"predecessor-version":[{"id":5521,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/4388\/revisions\/5521"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media\/5518"}],"wp:attachment":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media?parent=4388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/categories?post=4388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/tags?post=4388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}