


If you are a web developer, then you must know Redis, which is an open source memory-based key-value database mainly used to store and read data. As a PHP developer, you may use the Pagoda panel as your server management tool. When using Redis, you may encounter problems: Pagoda fails to install the PHP Redis extension. This article explains how to solve this problem.
- Pagoda failed to install the Redis extension
Installing the Redis extension on the Pagoda panel is usually very simple, just search for "Redis" in the "Software Store" and find "PHP Redis extension". Then click "One-click installation" to complete the installation.
However, in some cases, you may encounter installation failure. This may be due to some incompatibility issues or other reasons.
- Solution
After the installation of the Redis extension on the Pagoda panel fails, you can solve it through the following steps.
2.1 Install the Redis extension
Before installing the Redis extension, you need to ensure that Redis has been installed. On the Pagoda panel, you can install Redis through the "Software Store". After the installation is complete, you can add Redis cache in "Website Settings" and start it.
Next, you can follow these steps to install the PHP Redis extension:
- Log in to your server and enter the Pagoda panel. Find your website in "Websites" and click "Settings."
- In the "PHP Version" column, select the PHP version you want to use, and then click "Extend".
- In the extension list, find the "Redis" extension and click "Install".
- Wait for the installation to complete, then restart the website.
2.2 Check whether the Redis extension is enabled
After installation, you need to check whether the Redis extension is enabled.
On the Pagoda panel, you can view enabled extensions in "Extensions" under "PHP Version".
If the Redis extension is not enabled, you need to find the "Redis" extension in "Extensions" and click "Enable".
2.3 Check whether the modules required by Redis are enabled
On the Pagoda panel, you can view the enabled modules in "Modules" under "PHP Version".
The Redis extension requires the following modules:
- json
- igbinary or msgpack
If these modules are not enabled, please select ” and click “Enable”.
2.4 Check if the system libraries are installed
Finally, you need to make sure the system libraries are installed.
In the command line, run the following command to install the system libraries:
sudo apt-get update sudo apt-get install php7.0-dev sudo apt-get install libhiredis-dev libevent-dev libmemcached-dev libssl-dev zlib1g-dev libzip-dev
In the Pagoda panel, you can find these libraries in the "Software Store" and install them.
Once completed, you can go back to "Extensions" under "PHP Version" and reinstall the Redis extension.
- Summary
When using the PHP Redis extension, you may encounter installation failures. In this article, we covered how to install and enable the PHP Redis extension using the Pagoda Panel, as well as how to check whether system libraries and modules are enabled.
If you still can't install the PHP Redis extension, please leave a message in the comments. We will get back to you as soon as possible.
The above is the detailed content of Problems and solutions encountered when installing PHP Redis extension in Pagoda. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

WebStorm Mac version
Useful JavaScript development tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Dreamweaver CS6
Visual web development tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.