2.8.5.3. PHPRedisAdmin

The PHPRedisAdmin app allows you to manage a Redis database via a web interface, with full access to all data.

You can configure Redis using the instruction.
  1. Connect to the hosting via SSH.
  2. Go to the directory where you want to install the Redis manager using the following command:
    cd ~/example.com/subdomain/dir/ 

    Replace example.com/subdomain/dir with the correct path.

  3. Run the following command to install the manager in the current working directory:
    git clone https://github.com//erikdubbelboer/phpRedisAdmin . ; git clone https://github.com/nrk/predis.git vendor
  4. Configure the connection to Redis.

To add a Redis server in the manager, follow these steps:

  1. Go to the directory where PHPRedisAdmin was installed and create a file named include/config.inc.php.
  2. In the file, specify the configuration without any changes:
    <?php
    $config = array(
      'servers' => array(
        array(
          'name'   => explode("/",__DIR__)[2], 
          'filter' => '*',
          'scheme' => 'unix', 
          'path'   => '/home/' . explode("/",__DIR__)[2] . '/.system/redis.sock', 
          'hide'   => false, 
        ),
      ),
      'seperator' => ':',
      'showEmptyNamespaceAsKey' => false,
      'hideEmptyDBs' => false,
      'cookie_auth' => false,
      'maxkeylen'           => 100,
      'count_elements_page' => 100,
      'keys' => false,
      'scansize' => 1000
    );
Treść