Home > Topics > Pagoda Panel > body text

Problems and solutions encountered when installing PHP Redis extension in Pagoda

PHPz
Release: 2023-04-12 09:30:22
Original
3278 people have browsed it

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.

  1. 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.

  1. 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:

  1. Log in to your server and enter the Pagoda panel. Find your website in "Websites" and click "Settings."
  2. In the "PHP Version" column, select the PHP version you want to use, and then click "Extend".
  3. In the extension list, find the "Redis" extension and click "Install".
  4. 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
Copy after login

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.

  1. 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!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template