2.8.4.3. PHPRedisAdmin
Requirements: PHP 5.4+
The PHPRedisAdmin application allows you to work with the Redis database in a web interface, having full access to all data.
Installing
To install PHPRedisAdmin, do the following:
- Connect to hosting via SSH.
- Change to the directory where you want to place the Redis manager using the command:
cd ~/example.com/subdomain/dir/
Instead
example.com/subdomain/dir
specify the desired path. - Run the command to install the manager to the current working directory:
git clone https://github.com//erikdubbelboer/phpRedisAdmin . ; git clone https://github.com/nrk/predis.git vendor
- Produce customization connecting to Redis.
Customization
To add a Redis server in the manager, do the following:
- Go to the directory where PHPRedisAdmin was installed and create a file
include/config.inc.php
. - In the file, specify the configuration without 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 );