Home >Topics >Pagoda Panel >Problems and solutions encountered when installing PHP Redis extension in Pagoda
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.
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.
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:
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:
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.
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!