close

How to install redis extension for php 7

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error How to install redis extension for php 7 in php. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How to install redis extension for php 7 Error Occurs?

Today I get the following error How to install redis extension for php 7 in php.

How To Solve install redis extension for php 7 Error ?

  1. How To Solve install redis extension for php 7 Error ?

    To Solve install redis extension for php 7 Error I found a repository from ubuntu:
    sudo apt-get install php-redis
    Restart apache after installation.

  2. How to install redis extension for php 7

    To Solve install redis extension for php 7 Error I found a repository from ubuntu:
    sudo apt-get install php-redis
    Restart apache after installation.

Solution 1

Yesterday, I installed Redis on my Vagrant box (/etc/php/7.0):

  • sudo pecl install redis
  • sudo service php7.0-fpm restart

(optional: run php -m for listing the php modules).

Now, you can use the Redis class in your php code.

Solution 2

I found a repository from ubuntu:

sudo apt-get install php-redis
  • Restart apache after installation.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read

Leave a Comment