Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

How to Install phpRedis for CentOS?

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

Redis is an open-source software used by developers. It is used as a database, and cache broker. Redis is basically an in-memory data store application. Redis is highly used for its speed. As it has high speed, it is preferred by most developers for caching databases queries. It is used for complex computation and API calls also. Redis gives a feature that it has stream data available. High stream data enables high-speed data ingestion. CentOS is a stable, predictable platform. Basically, it is an upstream development platform. Which helps to develop, test, and contribute to a continuously delivered distribution. CentOS is a part of the Linux OS. But it can work independently. Before installing Redis, CentOS should be installed on the machine.


  • It is widely famous for its data structures server and provides support for strings, hashes & other many more.
  • It is used for building custom extensions to Redis in C, C++, etc.
  • The databases are available on the memory so that the execution of memory access will be faster.

Installation of Redis for PHP in CentOS

To install Redis for PHP in CentOS follow the following step:

Step 1: At first, Open the terminal of CentOS and run the following command. This command will check the proper version needed for the particular machine. This command will manage the dependencies according to the configuration of the machine.

sudo yum install epcl-releasr yum-utils



Step 2: The below command is used for downloading purpose of Redis. It will download the Redis in CentOS. It will take a few times. Wait till the downloading is successful.

sudo yum install



Step 3: Now, after downloading Redis, it is time to install it. Just run the below command it will take a few seconds to install it on the machine.

sudo yum install redis



Step 4: After installing Redis, the server of Redis has to be enabled. For this purpose run the below-mentioned command. It will start the server of the Redis.

sudo systemctl enable –now redis



Step 5: Now, the installation and configuration is completed. It is time to check the status of the installed Redis. To check the status following command should be run. It will give the output active (running) status.

sudo systemctl status redis



Hence, the installation is successful.

My Personal Notes arrow_drop_up
Last Updated : 25 Apr, 2022
Like Article
Save Article
Similar Reads